Jump to content

PHP Script not working under different paths


ruyho

Recommended Posts

Hi all,

 

A newbie with php and is stuck with this problem:

 

I have 2 domain names say

www.example.com

www.sample.com

 

these domain is pointing to a subdirectory from my hosting

 

www.example.com => www.example.com/dir1

www.sample.com => www.example.com/dir2

 

Now i just have a simple php script to run phpinfo(),

it works under www.example.com but i get a 500 error when running the same script under www.sample.com

 

Do i need to setup some path variable here?

 

Many thanks

Ruy

Link to comment
Share on other sites

Thanks for your reply WolfRage

I have no .htaccess file in my root directory, checked no hidden files anywhere.

 

The problem was fixed by the tech support guy changed my directories to permission 755.

 

Just trying to learn from this, since I have no idea how that would have fixed the issue. Any ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.