You don't have permission to access /< on this ser

mark (2004-09-30 04:05:01)
2615 views
1 replies
Hi,
I keep getting this error whenever I try to submit form data on this form I put on my site. I'm a real newbie when it comes to php/Mysql, but I got it to work when I had separate pages for everything. I inserted the code etc. into appropriate places on my page ....see http://markosmusic.kicks-ass.net ....and now it keeps giving me this error. I saw your other post on the similar error "...permission to access / on this server...." but for some reason I think this is different.

Any help would be great!!
Thanks,
Mark
comment
chris
2004-09-30 09:06:08

Probably need to see your source

I just tested your form and noticed that the query string in the address bar looks like this once the form is submitted:

http://markosmusic.kicks-ass.net/%3C?php%20echo%20$editFormAction;%20?%3E

I looked at the html sources of your site and there I could see all your php code too, which means that your webserver isn't interpreting the php and compiling it - in fact your server doesn't appear to have any notion of what php is, and all your code is going up as plain text (with a text/html content-type header).

So assuming you are running your own webserver, you need to be sure that you have the following in your httpd.conf

AddType application/x-httpd-php .php .phtml

This tells your webserver what to do with files which have a .php and .phtml extension

LoadModule php4_module modules/libphp4.so

This tells the webserver to load the php module, which is the thing which actually interprets, compiles and runs your php code.

Once you have those two lines added to your httpd.conf, restarat your webserver and see what happens :)

christo
reply icon