Server 500 error - newbie installation

Having trouble installing serendipity?
Thorin

Server 500 error - newbie installation

Post by Thorin »

I've gone through the configuration, had the screen that tells me it's a success, and then gives me a link to my new blog. When I click the link I get a Server 500 error, with the following message:

" The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script."

I'm running PHP 4.3.4, Apache 2.0.49 on SuSE Linux.

Any suggestions?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Server 500 error - newbie installation

Post by garvinhicking »

Which Serendipity version? Please try the latest snapshot.

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/
Thorin
Regular
Posts: 8
Joined: Wed Mar 02, 2005 6:40 pm
Location: Coventry, UK

Post by Thorin »

Sorry, I should have mentioned which version. It's 0.7.1, I'll have a go with a snapshot now, thanks :).
Thorin
Regular
Posts: 8
Joined: Wed Mar 02, 2005 6:40 pm
Location: Coventry, UK

Post by Thorin »

Hmmm... Exact same problem with todays snapshot.

Any bright ideas?
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

did they enable PHP suexec on your server?
My Blog, powered by s9y is http://oxygenws.com/blog/
Thorin
Regular
Posts: 8
Joined: Wed Mar 02, 2005 6:40 pm
Location: Coventry, UK

Post by Thorin »

It's a default Apache installation that came bundled with SuSE 9.1.

From what I can tell suEXEC is loaded, but I'm not sure if it's configured properley. Any suggestions?
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

if you have shell access, run this code from shell ("filename.php" is your index.php of your s9y program)

Code: Select all

php -q filename.php
if you get any error, please paste that here.
else if you get the HTML generated code of S9Y run:
I:

Code: Select all

whereis php
II:
create a file with the following contents

Code: Select all

<?php
phpinfo();
?>
and call it from your browser (eg. http://127.0.0.1/phpinfo.php)
then attach the generated HTML file to your next message OR upload that and give us the URL.

and please copy/paste here, the premission and owner of your s9y DIRECTORY and FILES here.

regards, omid
My Blog, powered by s9y is http://oxygenws.com/blog/
Guest

Post by Guest »

oxygenws wrote:if you have shell access, run this code from shell ("filename.php" is your index.php of your s9y program)

Code: Select all

php -q filename.php
if you get any error, please paste that here.
else if you get the HTML generated code of S9Y run:
I:

Code: Select all

whereis php
II:
create a file with the following contents

Code: Select all

<?php
phpinfo();
?>
and call it from your browser (eg. http://127.0.0.1/phpinfo.php)
then attach the generated HTML file to your next message OR upload that and give us the URL.

and please copy/paste here, the premission and owner of your s9y DIRECTORY and FILES here.

regards, omid
im the same problem too ... snapshot:20050301
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Guest, when installing, try to use "NONE" as value for "URL Rewriting" dropdown
# 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/
Guest

Post by Guest »

garvinhicking wrote:Guest, when installing, try to use "NONE" as value for "URL Rewriting" dropdown
i tried that, but there's no result...
meanwhile i updated the snapshot,but the problem is exists :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Then please have a log at your webserver's error_log, there should be a complete note why the internal server error occured...

If you used 'none' as rewriting I don't know what it causes. Edit your .htaccess file and remove the "DirectoryIndex" directive, maybe that helps...

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/
Guest

Post by Guest »

ok... if delete the. htaccess file, the problem solves ... but it writes the sql commands so its not the good way.. :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Guest: See http://www.s9y.org/forums/viewtopic.php?t=1183 for the SQL-output.

If without .htaccess it works for you this may be because your apache does not meet the requirements we have in our INSTALL file ("AllowOverride All").

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/
Thorin
Regular
Posts: 8
Joined: Wed Mar 02, 2005 6:40 pm
Location: Coventry, UK

Post by Thorin »

oxygenws wrote:if you have shell access, run this code from shell ("filename.php" is your index.php of your s9y program)

Code: Select all

php -q filename.php
if you get any error, please paste that here.
else if you get the HTML generated code of S9Y run:

and please copy/paste here, the premission and owner of your s9y DIRECTORY and FILES here.
I got the following error when I ran the first command:

Code: Select all

Warning: main(./serendipity_config_local.inc.php): failed to open stream: Permission denied in /home/[myusername]/public_html/serendipity/serendipity_config.inc.php on line 177

Warning: main(): Failed opening './serendipity_config_local.inc.php' for inclusion (include_path='.:/usr/share/php') in /home/[myusername]/public_html/serendipity/serendipity_config.inc.php on line 177

Fatal error: Call to undefined function:  serendipity_db_connect() in /home/[myusername]/public_html/serendipity/serendipity_config.inc.php on line 198
permissions haven't been altered after the installation:

Code: Select all

drwxrwxr-x   2 wwwrun www      48 2005-03-02 17:48 archives
drwxr-xr-x  12 me     users   352 2005-03-02 12:38 bundled-libs
-rw-r--r--   1 me     users  6690 2005-01-26 16:03 comment.php
drwxr-xr-x   2 me     users   128 2005-03-02 12:38 CVS
drwxr-xr-x   3 me     users   528 2005-03-02 12:38 deployment
drwxr-xr-x   3 me     users   344 2005-03-02 12:37 docs
-rw-r--r--   1 me     users  1480 2005-01-26 14:15 exit.php
drwxr-xr-x   8 me     users   520 2005-03-02 12:37 htmlarea
drwxr-xr-x   6 me     users   672 2005-03-02 12:37 include
-rw-r--r--   1 me     users 11626 2005-03-02 09:58 index.php
drwxr-xr-x   3 me     users  1080 2005-03-02 12:37 lang
drwxr-xr-x  35 me     users  1632 2005-03-02 12:38 plugins
-rw-r--r--   1 me     users 10109 2005-02-14 16:23 rss.php
-rw-r--r--   1 me     users 11163 2005-03-01 12:32 serendipity_admin_image_selector.php
-rw-r--r--   1 me     users 12429 2005-03-02 09:23 serendipity_admin.php
-rw-r--r--   1 me     users 11390 2005-03-02 09:23 serendipity_config.inc.php
-rwx------   1 wwwrun www     585 2005-03-02 17:48 serendipity_config_local.inc.php
-rw-r--r--   1 me     users  1690 2005-03-02 09:23 serendipity.css.php
-rw-r--r--   1 me     users   599 2005-01-26 14:15 serendipity_define.js.php
-rw-r--r--   1 me     users  7481 2005-01-28 11:06 serendipity_editor.js
-rw-r--r--   1 me     users 19398 2005-01-26 16:03 serendipity_xmlrpc.php
drwxr-xr-x   3 me     users  2416 2005-03-02 12:37 sql
drwxr-xr-x  21 me     users   624 2005-03-02 12:38 templates
drwxrwxrwx   3 me     users   104 2005-03-02 12:38 templates_c
drwxrwxr-x   2 wwwrun www      48 2005-03-02 17:48 uploads
-rw-r--r--   1 me     users  1478 2005-01-27 12:46 wfwcomment.php
The server is my own linux server, but I'm a bit of a linux newb as well! Appreciating the assistance though.

The snapshot was 200503021338
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

I got the following error when I ran the first command:
this is PHP error, HTTP 500 (mostly) is Apache error. so there isn't any problem... and please do all things that i want.

and do these step too....
1- go to your installed serendipity directory
2- do:

Code: Select all

cat .htaccess
3- paste the result here.
4- go to parent directory of current directory.
5- if (this is not your apache ROOT directory) then go to step "1" (do all steps) ELSE finish :>

regards, omid
My Blog, powered by s9y is http://oxygenws.com/blog/
Post Reply