Jump to content

Getting Php Scripts To Run In Subdirectories


Recommended Posts

I am trying to get PHP to run on my website. I created a simple PHP script (test_phpinfo.php) that displays phpinfo() and it runs OK in the root (public_html). when trying to run this same script from a subdirectory (public_html/smarty), I get a 404 error although I can see the file, verify its contents and verify the permissions on the file and directory (using CpanelX File Manager).

 

What am I missing?

 

Thanks

Link to comment
Share on other sites

Hey,

 

www.mikeandkathys-greatadventure.com/Smarty/test_phpinfo.php works fine for me!

 

Remember that directory names are case sensitive on Linux servers so you must have called the directory /Smarty, instead of /smarty which is different.

 

Hope that helps!

James

 

(Edited to make more sense!)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...