Forums

[resolved] Installation hangs on Step 2 (15 posts)

  1. darrendavid
    Member
    Posted 5 years ago #

    Hey all-

    Seems like I'm hit with a familiar problem. My fresh install hangs on Step 2 at:

    "Second Step

    Now we’re going to create the database tables and fill them with some default data."

    The system correctly generates the tables in mysql, but never responds with the admin password, et al.

    I've followed every thread I can find on the subject, to no avail. SMTP is working from this machine, database connectivity/permissions are fine, other PHP/MySQL apps working fine on this machine (MediaWiki, et al). Software:

    FreeBSD 6.2-STABLE
    Lighttpd 1.4.11
    Mysql 5.0.22
    PHP 4.4.4

    any and all help is appreciated here. If there were only a way to hack in a new admin password, I think I'd be golden. FWIW, if i do jump to the admin pagae and try to retrieve my password, the system hangs again, so maybe it /is/ email related, but i can send email from that box...

    Thanks,
    darren

  2. spencerp
    Member
    Posted 5 years ago #

    Is SEND MAIL enabled on the account? Domain? Whatever... Usually it's because it's trying to send out an email to let you know what your username, password and other informations are...but it can't send them... *Usually* that's what it is...if I remember right...LOL!

  3. darrendavid
    Member
    Posted 5 years ago #

    Indeed it is. I've got other apps successfully using sendmail on this machine.

    Any other thoughts?

  4. darrendavid
    Member
    Posted 5 years ago #

    Solved it!

    For some reason, PHP's mail() function was hanging. I changed line 189 of wp-includes/pluggable.php from:

    $phpmailer->IsMail(); // set mailer to use php mail()

    to

    $phpmailer->IsSendmail(); // set mailer to use sendmail

    Of course, I made sure I had a working sendmail first. All good, thanks to everyone that pointed me towards email as the culprit...

  5. darrendavid
    Member
    Posted 5 years ago #

    Oh, I should mention that I did this on the trunk out of SVN, YMMV.

  6. Otto
    Tech Ninja
    Posted 5 years ago #

    If php's mail function doesn't work, then the most likely problem is a php misconfiguration. Check your php.ini settings to make sure that it references sendmail and such correctly. You may want to look at the documentation as well: http://php.net/mail

  7. MichaelH
    Volunteer
    Posted 5 years ago #

    Also note that the Testers email list or the WordPress Trac might benefit from reports of problems with the 'bleeding edge' versions of WordPress.

  8. l3roken
    Member
    Posted 5 years ago #

    I have same issue. Mine maybe a little different since the first instance I installed worked fine. But from there out it won't. I'm configured to use IIS and I have my smpt server, port and send from defined in php.ini. Also I wrote a test email.php page to make sure it was working and it is. Any other clues?

  9. l3roken
    Member
    Posted 5 years ago #

    Putting in breakpoints looks like its hanging on this function:

    File: upgrade_functions.php
    Line: 28
    make_db_current_silent();

    I'm investigating more.

    I have control of my server and its PHP 5.0, IIS 6 using CGI.

  10. l3roken
    Member
    Posted 5 years ago #

    after further review it looks like its getting to different break points at different times. which leads me to believe my connection is timing out to MySQL. I'm lookging at increasing my timeout times in My.ini for mysql.

  11. l3roken
    Member
    Posted 5 years ago #

    Still no lovin. I wish it PHP would throw back some sort of connection error or something like that. Any clues would be appreciated.

  12. Ahmad Bagadood
    Member
    Posted 4 years ago #

    I'm facing same issue with WP2.2. See my thread: http://wordpress.org/support/topic/122343

    The Sendmail didn't work 4 me :(

  13. iDope
    Member
    Posted 4 years ago #

    This is realated to the following MySQL Bug (http://bugs.mysql.com/bug.php?id=29480):

    To repeat this bug the value of the global sql_mode variable
    should be set to STRICT_TRANS_TABLES. Also some of table fields
    have to be defined as NOT NULL without the default values.
    After the first successful INSERT into that table, next statement
    should be INSERT or INSERT SELECT with an implicit assignment
    to some field defined without default value.
    The last statement hung instead of the error reporting.

  14. idezmax
    Member
    Posted 4 years ago #

    ok. thanks.

    -----------------------
    http://www.idezmax.com/

  15. pixelace
    Member
    Posted 4 years ago #

    I had this problem, I am running Wamp 1.7.0 with WordPress 2.2, so if you're not setting up a blog on your local machine but using a proper webhost instead the following fix may not be much use to you.

    Anyway, I found that the wait after submitting step 1 was just over 30 seconds, so in the php.ini file I found a likely culprit, doubling the 'max_execution_time' setting from 30 to 60. Then I restarted Wamp, created a new database, and tried the WordPress install.php again.

    That works for me, ie I get the full page with the admin and password details without altering core WordPress files or MySQL bugs.

Topic Closed

This topic has been closed to new replies.

About this Topic