Article:
 |
|
Apache Web-Serving with Mac OS X: Part 1
|
| Subject: |
|
Configuring Apache |
| Date: |
|
2003-10-20 06:02:29 |
| From: |
|
anonymous2
|
|
|
|
Hi,
no doubt a stupid question. I can't get Apache to display my index.php file.
I put all my file in a directory "Users/marc/Sites/wwwweb". The main page = index.php. I want to server this through Apache but Apache keeps telling me
"Forbidden
You don't have permission to access / on this server."
I checked te following:
> httpd runs as user www
from httpd.config:
User www
Group www
I did
sudo chown -R www:www /Users/marc/Sites/wwwweb"
httpd is started as root (sudo apachectl start) because using "apachectl start" I got a errmsg "Could not bind to port 80" in the error log.
index.php is added to " DirectoryIndex" in httpd.config;
"addmodule" and "loadmodule" for php are uncommented;
"addtype" for php is added
I have no clue as to what else can be done.
Thanks,
Marc
|
Showing messages 1 through 1 of 1.
-
Configuring Apache
2003-11-01 08:49:41
anonymous2
[View]
I ran into exactly the same problem. I solved it by following the instructions for enabling php in Part III of Configuring Apache:
http://www.macdevcenter.com/pub/a/mac/2002/01/04/apache_macosx_pt3.html
There are several lines in the /private/etc/httdp/httpd.conf file concerning php that need to be un-commented.
Best regards,
Konrad