Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-18 14:22:33

L-User
New Member
Registered: 2007-01-18
Posts: 2

PHP problem during server move

Hi, I would really appreciate any help with the following problem, if anybody might know what’s going on. Ok, I’m in the process of moving a textpattern installation from an old server to a new one that will take it’s place. On the new server, I’ve got PHP 5.1.6 and Apache 2.2.0. The Apache currently is setup just on localhost with one virtual host named ‘serverx’, so the new textpattern installation is at /www/html/serverx/. There is also a test installation at /www/html/serverx/test/. Also, I did remember to change the site url to 127.0.0.1 in the site’s admin application. So here’s what’s happening:

- When I enter ‘http://127.0.0.1/’ into the browser, it serves the code of the index.php file as text in the browser window.

- When I enter ‘http://127.0.0.1/index.php’ into the browser, it actually executes the php code and thus displays the site correctly.

- When I enter ‘http://127.0.0.1/textpattern/’ into the browser, the code in the index file is executed and the admin program fires up, so this part is working correctly.

- Then in the textpattern test installation it’s the same as above, ‘http://127.0.0.1/test/’ displays the index.php code; ‘http://127.0.0.1/test/index.php’ executes the index.php code and displays the site; and ‘http://127.0.0.1/test/textpattern/’ fires up the admin program.

I’ve been pretty much stumped on this, so any suggestions would be greatly appreciated. Thanks.

Offline

#2 2007-01-18 15:29:11

L-User
New Member
Registered: 2007-01-18
Posts: 2

Re: PHP problem during server move

I have somehow resolved this problem. I have no idea why this worked, but I changed the permissions on the index.php file in the main installation to 644 and then changed them back to 444, and then everything worked fine in both installations.

Offline

#3 2007-01-19 10:17:56

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: PHP problem during server move

Normally your PHP file permissions should be 644.

Offline

Board footer

Powered by FluxBB