| | |
403 Forbidden error
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2004
Posts: 2
Reputation:
Solved Threads: 0
Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message that says: You don't have permission to access /C:/Program Files /Apache Group/Apache/htdocs/test.php on this server. I'm running XP pro under an Admin account that has complete access to everything, so I'm more inclined to believe that this is an Apache config problem. I've been all around the web searching, but I haven't found a thread that has given me a solution. Does anybody out there have any suggestions?
Check the default htaccess permissions in your httpd.conf file first to make sure everyone has global access to .php files.
Then it might be worth checking that there is a guest internet user in windows .. to be able to view the pages.
I'm assuming you have php set to parse all .php files on your server.
Another little note is that its a bad idea to run windows using an administrator account. Its advisable to setup another 'super user' account and use that and disable the admin account. (active administrator accounts is half a hacking job already done for them. Dont make it easy). Its also a good idea just incase someone exploits your webserver untill its properly setup and secured/checked.
Then it might be worth checking that there is a guest internet user in windows .. to be able to view the pages.
I'm assuming you have php set to parse all .php files on your server.
Another little note is that its a bad idea to run windows using an administrator account. Its advisable to setup another 'super user' account and use that and disable the admin account. (active administrator accounts is half a hacking job already done for them. Dont make it easy). Its also a good idea just incase someone exploits your webserver untill its properly setup and secured/checked.
I'm pink, therefore, im spam.
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
•
•
•
•
Another little note is that its a bad idea to run windows using an administrator account. Its advisable to setup another 'super user' account and use that and disable the admin account. (active administrator accounts is half a hacking job already done for them. Dont make it easy). Its also a good idea just incase someone exploits your webserver untill its properly setup and secured/checked.
Another meathod is checking the permission on the Folders and start pages files. Start pages like index.htm, index.html, start.php, index.php...those kinds of apges that people first see when viewing or trying to see your site or even accessing your site. I know this is alot to check, and even if it isent, those that I and htaccess have pointed out, you should consider checking on them. I personally hate those pages myself, its like the blue screen we Comp Techies hate so much as well as the X. GRR!!!
dynastyCODERS#1 when it comes to Programming Tutorials, Database designs and discussions, Operating Systems, you name it, check us out and drop us a line to tell us your opinions on any and everything in mind!;)
•
•
Join Date: Feb 2007
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message that says: You don't have permission to access /C:/Program Files /Apache Group/Apache/htdocs/test.php on this server. I'm running XP pro under an Admin account that has complete access to everything, so I'm more inclined to believe that this is an Apache config problem. I've been all around the web searching, but I haven't found a thread that has given me a solution. Does anybody out there have any suggestions?
•
•
Join Date: Feb 2007
Posts: 2
Reputation:
Solved Threads: 0
Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message that says: You don't have permission to access /C:/Program Files /Apache Group/Apache/htdocs/test.php on this server. I'm running XP pro under an Admin account that has complete access to everything, so I'm more inclined to believe that this is an Apache config problem. I've been all around the web searching, but I haven't found a thread that has given me a solution. Does anybody out there have any suggestions
•
•
Join Date: Jun 2009
Posts: 1
Reputation:
Solved Threads: 0
I spent about 2 hours getting Apache2 and Php5 running and was stuck with this problem for about 15 minutes of that time.
The fix, and best way to install, was in this post:
http://blogcms.com/?item=install-apa...php-on-windows
Specifically, everything under the "Allow .htaccess" section of changes to the apache httpd.conf file.
Although, my Apache complained at the first "<Directory>" until I reverted it to the original "<Directory />"
The fix, and best way to install, was in this post:
http://blogcms.com/?item=install-apa...php-on-windows
Specifically, everything under the "Allow .htaccess" section of changes to the apache httpd.conf file.
Although, my Apache complained at the first "<Directory>" until I reverted it to the original "<Directory />"
![]() |
Similar Threads
- HTTP Error 403 - Forbidden error for accessing html and asp page (ASP)
- forbidden 403 (Windows NT / 2000 / XP)
- HTTP Error 403 - Forbidden (Windows NT / 2000 / XP)
- Firefox: 403 Forbidden (Web Browsers)
- Error 403...forbidden (ASP.NET)
- XML Parsing Error: junk after document element (XML, XSLT and XPATH)
- 403 error (Web Browsers)
- Forbidden | You don't have permission to access /~username on this server. (Linux Servers and Apache)
- Google 403 Forbidden error (Search Engine Optimization)
- 403 Forbidden You don't have permission to access /index.htm on this server. (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: Extracting from XML using PHP
- Next Thread: php login with username and password
Views: 19131 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





