Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Configure Apache User Document Root |
|
Author |
|
winkylocc
Joined: 01 Nov 2015 Posts: 10 Location: US
|
Posted: Wed 04 Nov '15 1:24 Post subject: Configure Apache User Document Root |
|
|
I'm trying to set up apache on my Mac (El Capitan) but I'm getting a lot of trouble with the user document root. My first question is if the fact that the name of my actual user_name has uppercase letters in it, would that possibly be the cause of the issue? Running a configtest in terminal presents the following: Code: | httpd: Syntax error on line 122 of /private/etc/apache2/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
| The following is lines 122-130: Code: | LoadModule setenvif_module libexec/apache2/mod_setenvif.so LoadModule
version_module libexec/apache2/mod_version.so
#LoadModule remoteip_module libexec/apache2/mod_remoteip.so
LoadModule proxy_module libexec/apache2/mod_proxy.so LoadModule
proxy_connect_module libexec/apache2/mod_proxy_connect.so LoadModule
proxy_ftp_module libexec/apache2/mod_proxy_ftp.so LoadModule
proxy_http_module libexec/apache2/mod_proxy_http.so LoadModule
proxy_fcgi_module libexec/apache2/mod_proxy_fcgi.so LoadModule
proxy_scgi_module libexec/apache2/mod_proxy_scgi.so
| I can't see anything obviously wrong with that line but I'm also new to this so it may be obvious but I'm just not seeing it.
The specific problem I'm running into is, after making a folder called Sites in the directory /Users/MyMacbook/Sites and placing a file there called index.html, then changing the default root to this directory in after many attempts and changes of uncommenting this line and that line (as indicated in various tutorials) I go to http://localhost/~Sites but can't get the webpage to display (This webpage not available). I have tried it with and without the tilde and when I type just the http://localhost I do get the page "It Works" that comes up. Any help would be appreciated.
Last edited by winkylocc on Wed 04 Nov '15 9:19; edited 1 time in total |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 04 Nov '15 4:35 Post subject: |
|
|
LoadModule setenvif_module libexec/apache2/mod_setenvif.so LoadModule
Remove what's in the red. Or does it really belong to the line below? |
|
Back to top |
|
winkylocc
Joined: 01 Nov 2015 Posts: 10 Location: US
|
Posted: Wed 04 Nov '15 9:14 Post subject: |
|
|
Yes, it goes to the line below. |
|
Back to top |
|
|
|
|
|
|