Forums / Install & configuration / 500 Internal Server Error when installation finishes

500 Internal Server Error when installation finishes

Author Message

Kjell Inge Sandvik

Thursday 10 March 2005 1:37:58 am

Hello all!

I'm completely new to eZpublish, and trying to install it on my WinXP-system with Apache v2.0.53, PHP v4.3.10 and MySQL v3.23.49. Everything works fine until the creation of database finishes at the end of the installation process.

Result: 500 Internal Server Error-page.

In the Apache error-log:
[Thu Mar 10 10:17:33 2005] [error] [client 127.0.0.1] File does not exist: I:/idocs/ezpublish/design/admin/stylesheets/admin.css, referer: http://localhost/ezpublish/index.php
[Thu Mar 10 10:17:33 2005] [error] [client 127.0.0.1] File does not exist: I:/idocs/ezpublish/design/admin/stylesheets/debug.css, referer: http://localhost/ezpublish/index.php
[Thu Mar 10 10:25:16 2005] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/ezpublish/index.php

What is wrong?

Sandvik Web & Data

Łukasz Serwatka

Thursday 10 March 2005 1:51:31 am

Hi Kjell,

Welcome to eZ publish Community!

What PHP info says about your API? Do you use PHP in CGI mode?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Thursday 10 March 2005 2:12:41 am

Hello Lukasz and thank you very much for your quick reply!

When running phpinfo(), the Server API variable is set to CGI/FastCGI

Sandvik Web & Data

Łukasz Serwatka

Thursday 10 March 2005 2:41:40 am

Hi Kjell,

If this possible I recommend to use PHP in Apache API (php module). Try to reconfigure your PHP. This is very easy.

http://pl.php.net/manual/en/install.windows.apache2.php

Then run eZ publish installation once again and please write about the results.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Thursday 10 March 2005 3:33:42 am

Hello again :-)

Finally I got the Apache server to load PHP as a module, and all the extensions is now working fine (I think).

The only problem now, is that installer don't detect my MySQL-server.

Do I have to load the MySQL-server as a module in Apache too?

Sandvik Web & Data

Łukasz Serwatka

Thursday 10 March 2005 3:37:02 am

Perfect, copy dll files to system32 dir.

Note:  Windows users will need to enable php_mysql.dll inside of php.ini and
either copy libmysql.dll into the Windows system directory, or make it available to the PATH.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Thursday 10 March 2005 3:38:10 pm

I have now the php_mysql.dll-file in the php/extensions-directory and copied the libmySQL.dll into windows/system32.

The only problem now is that Apache don't can FIND the php_mysql.dll. I just get a warning when restarting Apache:
Unknown(): Unable to load dynamic library "D:/php4win/extensions/php_mysql.dll" - The specified module could not be found.

The extension-dir in php.ini is correct.

I know this isn't a supportforum for PHP/Apache, but maybe anyone knows what to do? I have never run PHP as a module before :-(

Sandvik Web & Data

Łukasz Serwatka

Thursday 10 March 2005 10:12:07 pm

Hi Kjell,

Try to comment this line with mysql extension and run Apache. If you copied your files to system dir should work.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Friday 11 March 2005 12:18:54 am

Thank you very much for you kind support, but still no luck :-(

At the finetuning-screen at det very start of the installation, just one message is stated: No databasehandler found

BUT

The installation procedure finds that I have MySQL, and are actually creating the tables. Only the content of the tables is not created it seems to me.

On the "Site Registration"-page, I choose not to register my site (just a testsite). When clicking Next, the page loads for about 5 minutes and then I get a time-out. The tables are created as said, but nothing more.

Those are the messages after time-out:

Fatal error: Maximum execution time of 600 seconds exceeded in I:\idocs\ezpublish\lib\ezdb\classes\ezmysqldb.php on line 364

Fatal error: Maximum execution time of 600 seconds exceeded in I:\idocs\ezpublish\lib\ezutils\classes\ezexecution.php on line 158

I remember that yesterday when I ran PHP as CGI, the tables were filled.

Any suggestions?

Sandvik Web & Data

Łukasz Serwatka

Friday 11 March 2005 12:37:32 am

Hi Kjell,

Make this steps,

Download the newes zip PHP package, unzip it. Install PHP as a module
http://pl.php.net/manual/en/install.windows.apache2.php

Remember to copy dll files to system32

Then set max_execution_time to highest value in php.ini.
Create new DB and start with installation wizard.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Friday 11 March 2005 3:55:42 am

I have now reinstalled Apache, PHP and MySQL - copied all the dll's into windows/system32, but still the installation procedure don't generate the data into the tables... All I get is

Fatal error: Maximum execution time of 600 seconds exceeded in I:\idocs\ezpublish\lib\ezdb\classes\ezmysqldb.php on line 364
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

after about 5 minutes...

And still the finetuning-screen at the beginning of the installation-procedure says: No database handlers...

Should I give up?

Sandvik Web & Data

Frederik Holljen

Friday 11 March 2005 4:02:46 am

What kind of hardware are you using?

Kjell Inge Sandvik

Friday 11 March 2005 4:11:28 am

Just an ordanary PC with Athlon 2400+ processor, MSI-motherboard, 1024 Mb ram and 2 x HD

The funny thing is that all seem to work okey (Apache, PHP and MySQL) but EzPublish's installationprocedure :-( (that is: tables are created, but no content in them - and then; fatal error).

Sandvik Web & Data

Frederik Holljen

Friday 11 March 2005 4:19:10 am

Have you tried using the windows installer? I suspect some sort of configuration dependent problem.

Jo Havik

Friday 11 March 2005 5:34:30 am

The Wamp server (contains apache, mysql, php) contains a setup which runs ezpublish nicely.

Wamp is available from http://www.wampserver.com/en/index.php

You will need to download the main package and the PHP 4 plugin. After installing both, click on the Wamp tray icon and select "Switch to PHP 4".

eZ Publish uses a file called .htaccess to redirect most browser requests to index.php. You have to enable the mod_rewrite module in Apache to avoid error messages when after copying .htaccess_root to .htaccess. Enable mod_rewrite by clicking the Wamp tray icon, select "Config Files" -> "httpd.conf" and remove the # before
#LoadModule rewrite_module modules/mod_rewrite.so
and
#AddModule mod_rewrite.c

Remember to restart apache (again, from the Wamp tray icon).

On some setups you might have to remove the first half of your .htaccess file to avoid server errors.

--
Jo Havik / jo.havik at bodonihus.no

Kjell Inge Sandvik

Sunday 13 March 2005 2:15:44 pm

Have downloaded Wamp and the PHP 4 plugin. But when I try to start installation of EzPublish, I get the following fatal error:

Fatal error: Cannot re-assign $this in i:\idocs\ezpublish\lib\ezutils\classes\ezdebug.php on line 198

Sandvik Web & Data

Jo Havik

Monday 14 March 2005 12:01:59 am

Did you remember to switch from PHP 5 to PHP 4 from the wamp tray icon?

PHP 5 will give the error message you describe.

--
Jo Havik / jo.havik at bodonihus.no

Kjell Inge Sandvik

Monday 14 March 2005 5:42:02 am

Aah forgot that, but still I get that timeout-error... The installation script can't find any database-handlers, but creates the tables... Guess I have to return to CGI-mode...

Sandvik Web & Data

Kjell Inge Sandvik

Monday 14 March 2005 9:59:05 am

I have tried to setup EP manually now, and it actually starts!
On the login-screen, I'am presented with

kernel::50
No database connection could be made, the system might not behave properly.

Guess this has something to do with the installscript-error...

BUT: The database works! I can't see anything wrong with it, except that EP don't recognize the connection!

Sandvik Web & Data

Łukasz Serwatka

Monday 14 March 2005 10:22:24 pm

Hi Kjell,

Do you use personal firewall or other software for security? Could you tell us more about your OS?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

eZ debug

Timing: Jan 31 2025 08:20:58
Script start
Timing: Jan 31 2025 08:20:58
Module start 'content'
Timing: Jan 31 2025 08:20:58
Module end 'content'
Timing: Jan 31 2025 08:20:58
Script end

Main resources:

Total runtime0.1850 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.1797180.8047
Module start 'content' 0.00720.0065 768.9844126.1016
Module end 'content' 0.01370.1711 895.0859554.9063
Script end 0.1848  1,449.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.9605200.0002
Check MTime0.00130.7195200.0001
Mysql Total
Database connection0.00080.432910.0008
Mysqli_queries0.135973.46291410.0010
Looping result0.00120.62711390.0000
Template Total0.170892.310.1708
Template load0.00080.441710.0008
Template processing0.169991.861410.1699
Override
Cache load0.00060.317810.0006
Sytem overhead
Fetch class attribute can translate value0.00080.428010.0008
XML
Image XML parsing0.00020.107110.0002
General
dbfile0.00894.8368200.0004
String conversion0.00000.002830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs