Forum Moderators: phranque
I tested some PEAR stuff on my localhost, when I FTP'd to test it on the server I ran this script...
ini_set("include_path", "/var/www/html/pear/");
It appears that php "/" has taken the script to the root of the server (or someit) and I've now messed up the path to the .htaccess files. well that's what I think after reading the error log....
[error log]
(13)Permission denied: /home/virtual/site120/fst/var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[/error log]
I'm getting 403 forbidden on everything on my site, I'm curious if that is the case for other people who are sharing the hosting.
Help!
If I point my browser to a .php file, I get an "Internal Server Error" page, if I place php code in a .html page it isn't parsed.
Question, is it normal to be able to access (and edit) the php.ini file via FTP on a shared host?
But if you and anyone else have access to the php.ini (the very same php.ini) I suggest you strongly to change your ISP. AS SOON AS POSSIBLE.
Of course if you have access to any file above your DocumentRoot or FTPRoot (ftp and php are not chrooted) -> the same advice...
500 Internal Server Error is caused mainly by bad PHP configuration (lack of modules, error in php.ini, etc.)