Forum Moderators: coopster

Message Too Old, No Replies

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

Trying to get old script running.

         

itKiwi

9:59 am on Apr 2, 2011 (gmt 0)

10+ Year Member



I am a beginner with PHP and I am trying to get an old (about 2003) PHP script running with version 5.3.3. on Win 7. However, I am getting a number of errors, which I am trying to work through.

This script was running on Win XP with an older PHP (5.2.9 I think), but now I get the error

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

Other modules within the script do connect with the MySQL database.

What should I be looking for to get rid of this error ?
What has changed in Win XP to Win 7, PHP or MySQL over the last 18 months which could cause this error ?

Thanks for your help.

rocknbil

5:37 pm on Apr 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the script trying to do?

Generally this means it is attempting to write or update a file ar domain root. For most sites, that will be index.html, index.htm, or index.php. It's a rather dangerous proposition to allow the entire domain root to be writable, so I am guessing/hoping it's doing something like updating an index.html file.

If this is the case, you'd set the permissions on that file to be writable by your PHP script. There are a number of ways to do this, google for file permissions to see what works best for you.