Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have uploaded a folder with php scripts and they run only when they are in the webroot directory,Everytime i try to execute php script in some internal dir,i get internal server error,even if it works in the parent directory

EDIT:So,i it's apache 2 server,nothing is logged in my error log about the errors in the internal directory , permissions for php file and for the direcory are

-rw-r--r--    drwxrwxr-x

share|improve this question
We need more information. Which Webserver are you using. What gets logged in your webserver's error log when this happens. We could also do with seeing the relevant parts of your webserver config. – Iain Mar 19 '11 at 13:56
File permissions would be nice as well. – TheLQ Mar 19 '11 at 13:59
ok .............................. – a44 Mar 19 '11 at 14:18

Check your vhosts apache confs (if you're using apache) and .htaccess file in the internal directory (may be some syntax error in those .htaccess)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.