Page not found: Running a php file on an Apache sever
I get page not found error when I try to run my php file running on the root folder of my apache. Other php files run fine(anyway this is a magento b开发者_开发知识库ased site). Is it because i transferred the file through FTP? Can a server be configured not to run some specific files? How can i get round this? has is got something to do with .htacess?
Be sure you uploaded your file into the /www or /httpdocs subdirectory. If so, check the permissions of your file.
Does the fiel have the same extension as the other php files that work.
ie. myfile.php or myfile.php4
The default config for apache specifies that php files have the extension "php4" as php version 3.0 and before are not compatible with the current versions. Usually the plain "php" extension is re-enabled but maybe not in your case.
精彩评论