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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.