Help! Server move didn't go very smoothly :(

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
kbmiller
Regular
Posts: 8
Joined: Wed Jan 17, 2007 2:05 am

Help! Server move didn't go very smoothly :(

Post by kbmiller »

I decided to change web hosts for a number of reasons, and the guys at the new web host helped me copy everything over with permissions intact.

The problem is that on the new host, PHP is operating differently (I don't know a whole lot about this yet, so bear with me). When I try and load the site I get a general 500 internal error generated by my browser and in the error logs on the server it indicates that in my .htaccess file the 'php_value' command is invalid. I did some searching and I think that is because my new host is running PHP in CGI mode and not as an apache module.

The two lines using the invalid 'php_value' command are:

php_value session.use_trans_sid 0
php_value register_globals off

I tried deleting those lines from the .htaccess file but then I get a forbidden error, and deleting the .htaccess didn't solve anything either.

What changes do I need to make to my configuration to get my site working again? I tried searching the forums and documentation and didn't find anything that seemed obvious, so I apologize if this is a stupid question.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

A URL might help us debug a little more quickly. (What exactly is forbidden?)

You can set those deleted values in your php.ini file (your provider will have to tell you where it is). In particular, the register_globals sounds like something that would be quite important. Not to mention the trouble we've seen with resetting to the front page when sessions aren't working.
Judebert
---
Website | Wishlist | PayPal
kbmiller
Regular
Posts: 8
Joined: Wed Jan 17, 2007 2:05 am

Post by kbmiller »

The two sites are http://www.cavepimp.com/test/ and http://www.horriblybrilliant.com. The 403 forbidden error has happened with every edit I've tried to make to the .htaccess file (deleting it, removing those 2 lines, trying other stuff).

I'll ask them about the php.ini file and where to find it.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I see. So what does the .htaccess on cavepimp look like now? I'm assuming Serendipity is installed in test/, incidentally.
Judebert
---
Website | Wishlist | PayPal
kbmiller
Regular
Posts: 8
Joined: Wed Jan 17, 2007 2:05 am

Post by kbmiller »

Yes, it is in the /test/ directory. Currently the .htaccess looks like this:

Code: Select all

# BEGIN s9y
DirectoryIndex /index.php

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
The one on the old site looks like this:

Code: Select all

# BEGIN s9y
DirectoryIndex /index.php
php_value session.use_trans_sid 0
php_value register_globals off

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
I'm still waiting to hear back from my web host about the php.ini thing. Do you think that might fix it once I get those 2 lines entered?
kbmiller
Regular
Posts: 8
Joined: Wed Jan 17, 2007 2:05 am

Post by kbmiller »

Odd...I just did a totally fresh install of serendipity in a new directory (cavepimp.com/test2/) and it didn't work either.

It appears the permissions are much more strict on my new host, and by tweaking some things on the /test2/ install I was able to get it going.

I think I'm just going to reinstall serendipity and re-do everything rather than try and fix this.
Post Reply