500 Server Error after installation

Having trouble installing serendipity?
Post Reply
Niclas
Regular
Posts: 61
Joined: Fri Aug 29, 2008 3:54 pm
Location: Frankfurt / Germany

500 Server Error after installation

Post by Niclas »

Hi all,

after my installation of Serendipity version 1.3.1 lite I get an 500 Internal Server error: "The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator..."

Server-type: Apache/2.2.3

At least the installation seems to be succesful since the results-page says (translates from German results):

"- Checking if database and table already exist: Negative
- Creating database: Ready
- Creating main user: Ready
- Setting Standard Template: Ready
- Installing Standard plugins: Ready
- Trying to create .htaccess: Ready

Serendipity has been installed succesfully
Visit your new blog here"

But when I click onto the link or enter the "serendipity_admin.php" manually I only get the 500 Server Errror.

I already checked CHMOD which are set to 775 for the important directories. The rest is set to 755. Also setting the directories also to 755 doesn't solve the problem.
The .htaccess file exists, the "archive"-folder I had to create manually since it hadn't been created during the installation process.

What could be the problem and how can I access the main configuration again (not the plain config-file in my directory) to check or change the settings in hope to solve this ?

**EDIT** PHP-Version: 5.2.0-8+etch11
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 500 Server Error after installation

Post by garvinhicking »

Hi!

This error is caused by your .htaccess - please check and edit this file and put # comment signs before the lines. Usually one of the php_value or other settings can make problem if your server does not allow AllowOverride Config, like s9y needs.

You can operate s9y without .htaccess though, if you do not use URL Rewriting.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Niclas
Regular
Posts: 61
Joined: Fri Aug 29, 2008 3:54 pm
Location: Frankfurt / Germany

Post by Niclas »

Hi und danke für die absolut schnelle Antwort !
Das Problem lag an der Zeile "DirectoryIndex /meinverzeichnis/index.php .
Nach dem Auskommentieren ging's dann.

Danke !

---------------------------------------
The problem war the line "DirectoryIndex /mydirectory/index.php" in the .htacces-file.
After commenting the line it worked.
somor
Regular
Posts: 5
Joined: Sun Sep 07, 2008 3:54 pm

Post by somor »

Hi there!

I've been looking for some help on the documentation files and this forum threads but so far couldn't find any.

The thing is I have relocated my site and blog to a new host. The way I usually do this is copyying all the files to the new location, creating the new database on this new server and importing all the information, the changing the configuration files.

I'm not sure when was the last time I did it butcan't remember any trouble not even on any upgrade.

This time it wasn't me who did this relocation but the process was the same. Right now we no longer have the old place and in this new one all I got is this 500 internal server error.

I have looked for the .htaccess file but couldn't find it. Don't know it it's hidden or doesn't exist at all. So I can't check or change the paths there and I believe it has to do with the new absolute path.

I'm running version 1.0.1 on a server running PHP5 (which I've read it makes no difference). Have also tried different permissions but couldn't solve the problem.
So no front page and no admin.

What can I do right now?
Shall I run a new install ?

Thanking in advanced for your inputs on this,
Sofia
somor
Regular
Posts: 5
Joined: Sun Sep 07, 2008 3:54 pm

Post by somor »

I just checked the errors log and this is what I found concerning the blog:
[Sun Sep 07 05:26:58 2008] [error] [client 66.249.71.201] PHP Fatal error: Call to undefined function input_name_to_filter() in /var/www/vhosts/universodeluz.net/httpdocs/sofiamorgado/blog/include/compat.inc.php on line 99
[Sun Sep 07 05:27:50 2008] [error] [client 66.249.71.200] PHP Fatal error: Call to undefined function input_name_to_filter() in /var/www/vhosts/universodeluz.net/httpdocs/sofiamorgado/blog/include/compat.inc.php on line 99
[Sun Sep 07 05:28:00 2008] [error] [client 66.249.71.201] PHP Fatal error: Call to undefined function input_name_to_filter() in /var/www/vhosts/universodeluz.net/httpdocs/sofiamorgado/blog/include/compat.inc.php on line 99
[Sun Sep 07 05:28:27 2008] [error] [client 66.249.71.200] PHP Fatal error: Call to undefined function input_name_to_filter() in /var/www/vhosts/universodeluz.net/httpdocs/sofiamorgado/blog/include/compat.inc.php on line 99
Any light?

Apreciating your inputs on this,
Sofia
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

s9y 1.0.1 is very old. It does not work with some instances of PHP5. You need to either downgrade PHP5 (;-))) or upgrade your serendipity version, then it will work.

A guide to upgrading s9y can be found in the FAQ on www.s9y.org.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
somor
Regular
Posts: 5
Joined: Sun Sep 07, 2008 3:54 pm

Post by somor »

Thanks, Garvin. I'll do that.

Once again thanking for your fast reply and all the help you give in these forums. :wink:

Sofia
somor
Regular
Posts: 5
Joined: Sun Sep 07, 2008 3:54 pm

Post by somor »

Back again!

Well, I copied all the files of the newest version of serendipity and got to the instalaltion page, whisch you can reach here: http://www.universodeluz.net/sofiamorga ... _admin.php.

It tells me that somefolders and files are nor writable. I have already changed permissions for the folder and file indicated and I still get the same message (after refreshing, of course). I even unthicked the option php safe-mode in my server configuration since I don't know exactly its implications. Still the same. I can't get passed this step. Are there any other folders or files that need permissions changed?

By now, I have changed permissions (to 777) for almost all files and folders and I still get the same message.

Any help? Please?

Thanks!
Sofia
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, when you get an installation screen this means, that s9y does not consider itself installed.

This usually only happens when the serendipity_config_local.inc.php file is missing from your old installation! Did you maybe not copy it over frmo the old host?

If not, you can easily reconstruct that file, it should look like this:

Code: Select all

<?php
        $serendipity['versionInstalled']  = '1.0.1';
        $serendipity['dbName']            = 'serendipity';
        $serendipity['dbPrefix']          = 'serendipity10_';
        $serendipity['dbHost']            = '127.0.0.1';
        $serendipity['dbUser']            = 'root';
        $serendipity['dbPass']            = 'root';
        $serendipity['dbType']            = 'mysql';
        $serendipity['dbPersistent']      = false;
        $serendipity['dbCharset']         = 'utf8';
?>

(You need to replace the databsae name, user, password etc. to match your database!)

Also, it seems you currently have a .htaccess file that mangles with the installer. You should best remove that file, s9y can reconstruct that file if it's missing.

As from your current installation: It seems that you are still missing some uploaded files? Check if your templates/default/admin directory has a file "style.css". Your current stylesheet:

http://www.universodeluz.net/sofiamorgado/blog/index.php?/serendipity_admin.css

doesn't really have proper content, there's something fishy going on.

The permissions tell that the /blog/ directory and /blog/templates_c are NOT 777, so please recheck that you properly set those permissions.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
somor
Regular
Posts: 5
Joined: Sun Sep 07, 2008 3:54 pm

Post by somor »

Hi Garvin!

In the first place I've checked the serendipity_config_local.inc.php file. It's there; it has the right configuration (only didn't have the last line - of charset). I also had localhost instead of the server ip. Although I had already used it, I've changed it again.

Then, I've searched the style.css that you asked for and it's there. so I don't understand. I checked the permissions of the templates_c directory and Core FTP is telling me they are 777. I've already changed it some times to check it.

As for the .htaccess file, I don't have access to that. Probably only the host (?) from my side it's hidden.

Don't know what else to do!? It was always so easy in the other servers/hosts!

If you remember something else, please tell me. I think I'll try a free server just to see if I understand what is going wrong here.

Thanks,
Sofia
Post Reply