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.
Help! Server move didn't go very smoothly :(
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.
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.
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.
I'll ask them about the php.ini file and where to find it.
Yes, it is in the /test/ directory. Currently the .htaccess looks like this:
The one on the old site looks like this:
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?
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 s9yCode: 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
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.
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.