Help - Search - Members - Calendar
Full Version: New 4.2 Install, Unable To Create First Blog, 500 Errors
Movable Type Community Forum > Installing and Upgrading > Basic Installation and Setup
Richard Atkinson
Hello.
We are evaluating blog software for company wide use. MT is our first product under eval.

Having eventually installed all dependencies and MT4.21 (open source edition) on a RHEL4 machine I am confounded by a problem which I am unable to resolve without assistance.

Here's what happens.

When GETting : /cgi-bin/mt/mt.cgi am redirected to: /cgi-bin/mt/mt-upgrade.cgi?__mode=install

I then complete the "create an account" form which seems to work OK. My SQlite db file grows in size and I get to the next screen.

'Create your first blog'. Leaving the default suggested values for, 'my first blog', the next screen loads, 'Initializing database'.

It shows the following, and then stops.

* Upgrading table for MT::Entry::Meta records...
* Upgrading table for Entry records...
* Upgrading table for Category Placement records...


It just hangs at this point.

If I go back and try again, I get a Server 500 error.
Inspecting the Apache error.log shows the CGI error message, "Premature end of script headers: mt-upgrade.cgi"

If I go back and try again with a completely different blog name and path, I still get Servlet 500 errors.

If I delete the SQLite db file, I can go back to /cgi-bin/mt/mt.cgi, repeat the steps above and make the 'initializing database' screen hang screen once again.

e.g. it hangs the first time, then on subsequent attempts the CGI breaks with Server 500.

For the purposes of eliminating file permissions, I have tried this with chmod 777 -R /var/www/cgi-bin and /var/www/html and /var/sqlite

No change.

There's nothing useful in /var/log/messages or httpd/error.log except the "premature end of script headers: mt-upgrade.cgi" message.

Please help, what do I look at next?

many thanks

Richard

-----------------------------------------------------------------------

Server setup is as follows:

MT4.21-en/Apache2.0.52/RHEL4
Perl5.85 + DBI + DBD-SQLite + Sendmail.

************** mt-config.cgi ******************

#======== REQUIRED SETTINGS ==========

CGIPath /cgi-bin/mt/
StaticWebPath /mt-static/
StaticFilePath /var/www/html/mt-static

#======== DATABASE SETTINGS ==========

ObjectDriver DBI::sqlite
Database /var/sqlite/mt.db

#======== MAIL =======================

MailTransfer smtp
SMTPServer mail
Su-
I don't have too much to tell you; premature end of script errors aren't especially informative, as you're aware.
But I'm curious if you've tried to do the installation with another database backend. Since it's dying in the middle of making a bunch of db changes, it might give a hint as to whether it's a problem with SQLite, which would at least be something to start with.
Richard Atkinson
QUOTE (Su- @ Aug 26 2008, 07:08 PM) *
I don't have too much to tell you; premature end of script errors aren't especially informative, as you're aware.
But I'm curious if you've tried to do the installation with another database backend. Since it's dying in the middle of making a bunch of db changes, it might give a hint as to whether it's a problem with SQLite, which would at least be something to start with.


Hi Su.

Thank you for the suggestion, it turned out to be a helpful one.

I installed the DBD for SQLite2, and everything worked fine.
For reference, the one that doesn't work is: perl-DBD-SQLite-1.14-1.el4.rf.i386.rpm (obviously on RHEL4)
The one that does work is: perl-DBD-SQLite2-0.33-1.el4.rf.i386.rpm
Thanks for your help!
Richard
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.