December 29th, 2005, 02:11 PM
PHP & Apache help
I've added a PHP upload script to my server but as I am using Windows I cannot CHMOD the uploads directory to 777 so I cannot upload stuff, what can I do?
I want to be able to show the index of one of my directrys on my server but if I do www.mywebs/blah I get an error 403 Access forbidden, how do I fix this?
December 29th, 2005, 02:24 PM
Are you uploading the files with a FTP client?
is so then click on the folder or file, and choose properties/CHMOD
And just change the permissions that way.
December 29th, 2005, 02:46 PM
Not using anf FTP client, just droping the files into my servers root folder. Tried an FTP client and when I try to CHMOD I get an error saying "500 Syntax error, command unrecognized". I assumed I got this error as Windows doesn't allow the use of the CHMOD command.
December 29th, 2005, 04:22 PM
Use the windows file security, make sure the useraccount the webservers runs on has atleast read access.. (For IIS that's usually IUSR_MYMACHINE).. chmod 777 means writeable by everyone..
A 403 Error is usually because there's no default page (like index.htm or default.asp) and you've turned off directory browsing..
Experience is something you don't get until just after you need it.
December 31st, 2005, 04:45 PM
Which file do I need to edit in order to enable directory browsing?
December 31st, 2005, 07:18 PM
I think you need to give us more information and be a little more clear about your question.
Here's what I'm assumming & understand, correct me if I am wrong, you are trying to get run a webserver locally with apache & php, however you cannot access the index because you get a 403 error?
If that in fact IS your problem, here are my suggestions:
1.) Are you sure you ran Apache prior to trying to connect
2.) Did you try to connect to your local IP (127.0.0.1)
3.) Are you sure you have an index file in the directory specified in the configuration file of Apache
4.) If all above fail, revise you're configuration file (I haven't used Apache in ages so I forgot the name of this file and the directory it is located in)
EDIT: The config file is called httpd.conf you can edit it in notepad.
WARNING: THIS SIGNATURE IS SHAREWARE PLEASE REGISTER THIS SIGNATURE BY SENDING ME MONEY TO SEE THE COMPLETE SIGNATURE!
January 1st, 2006, 10:38 AM
The 403 shows the apache is running, but probably is the indexing off.
Try to set apache to show you the dirlistings.
You can do that by inserting the following in your httpd.conf. I know in linux that file resides in /etc, but i have no idea on windows.
Hope that helps.