500 – Internal Server Error

Having trouble installing serendipity?
Post Reply
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

500 – Internal Server Error

Post by carlitocabana »

Hi guys.
I moved my site from webhoster A to webshoster B.
So first I downloaded ALL the content from webhoster A and uploaded all to webhoster B.
Also exported the database and created new ones and changed the conf files so all should work well.
Except that i'm getting a 500 internal server error.
I've got the old .htaccess file and is on the new webshoster but the problem must be .htaccess related but i can't find out where.

Mine .htaccess content is:

# BEGIN s9y
DirectoryIndex /carlitocabana/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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 500 – Internal Server Error

Post by Timbalu »

Does the new hoster provide you with the exact full path as the old one?
Is you blog and index.php file in docroot/carlitocabana/ ?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Re: 500 – Internal Server Error

Post by carlitocabana »

path is the same.
all is in correct place i downloaded content and uploaded the same.

i found out if i remove these 2 lines the site works.
as i'm a n00b what did i break :lol: and why does it work now?

php_value session.use_trans_sid 0
php_value register_globals off
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 500 – Internal Server Error

Post by Timbalu »

I'd say, that depends on your servers configs. Some do not allow settings via htaccess files.
Is it something else then Apache?
Make sure your used php.ini setting have these settings (ask your provider)
session.use_trans_sid 0
register_globals off

If they say something else, it is no good and you need to investigate.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Re: 500 – Internal Server Error

Post by carlitocabana »

Thanks for the answers.
I checked the site of my hoster (webfaction) and found the following on their site.
Can you make things clearer for me they are a bit blurry :oops:


The PHP interpreter is installed on all WebFaction machines. The currently installed PHP interpreter is 5.2.11 and it can be run by executing php. PHP 5.3.5 is also available as php53.

Configuring PHP

You may configure PHP settings (also known as php.ini directives), using a configuration file in your Static/CGI/PHP application or PHP 5.2-based applications such as WordPress, Drupal, and Joomla. The method by which these settings may be changed varies depending on the server and the PHP version in use.

Note
List of php.ini directives provides a table of possible php.ini settings. Only settings noted as PHP_INI_PERDIR or PHP_INI_ALL in the Changeable column are available for use with Static/PHP/CGI applications; PHP_INI_SYSTEM settings will not work with the following directions.

PHP-based Applications on your server
On web120 and greater or dweb61 and greater, all PHP and PHP-based applications (such as WordPress, Drupal, and Joomla) use php.ini files to control PHP settings. To use a php.ini file with a Static/CGI/PHP application or PHP-based application:

Create php.ini if it does not already exist.
Open an SSH session to your account.
Enter touch ~/webapps/application/php.ini where application is the name of the application as it appears in the control panel, and press Enter.
Edit php.ini.
Open ~/webapps/application/php.ini in a text editor.
For each setting, add a new line containing name = value, where name is the name of the directive and value is the new value for the setting.
Save and close the file.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 500 – Internal Server Error

Post by Timbalu »

Php 5.2.11 is ok, there is no deadly need to upgrade....

It says, you may have your own php.ini in your application folder, if you need to have one!

If you really need to do this will depend on the main servers php.ini settings.

The best is to drop a file myphpinfo.php with

Code: Select all

<?php
phpinfo();
?>
(see http://php.net/manual/de/function.phpinfo.php)
to your docroot or any other reachabele and/or secured folder, run it it your browser (leave the page opened) and right afterwards erase the file again, as there are informations provided, you do not want anybody else to read.

Now have a look regarding these two values. If they are set (commonly are!) everything is ok, else create a php.ini file, drop it to your docroot or blog folder and include the two settings without the php_value starter.
Thats all.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Re: 500 – Internal Server Error

Post by carlitocabana »

Created the myphpinfo.php
Browsed to it and indeed found those values with the correct settings.

Kudos to you Timbalu!
Thanks a million.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: 500 – Internal Server Error

Post by Timbalu »

carlitocabana wrote:Thanks a million.
Oh yes! Please send them to Julius Baer Bank and Trust Co. Ltd, Cayman Islands, 876....... :lol:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply