WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Still Nothing to See... (43 posts)

  1. GRIZDOG
    Member
    Posted 6 years ago #

    I've been trying to get WordPress to run on my Apache2 server. I've installed php and I know it works, because it functions as expected for other files that were set up to test php.

    This is running on a Window XP machine.

    I also checked the php.ini file to make sure that the memory was 16M.

    I still get nothing but a blank screen when I try to run the install.php.

    I've been through these forum and they only address the memory issue. I've also reviewed all the tutorials for installing WordPress, but they all show the process as proceeding flawlessly. Nothing addresses this issue.

    Why doesn't this work?

  2. Root
    Member
    Posted 6 years ago #

    This might not help but this is more likely an Apache issue. Not a WP issue.

  3. GRIZDOG
    Member
    Posted 6 years ago #

    If it is Apache, then what would be causing it?

  4. Jeremy Clark
    Moderator
    Posted 6 years ago #

    It sounds like Apache isn't loading the php module. Read over the Apache docs and see if you can find anything about that.

  5. GRIZDOG
    Member
    Posted 6 years ago #

    php functions when I run the simple test for it (the "hello world" type document).

    Would this make any difference?

  6. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Yes that proves that php is correctly loaded as a php module. One thing you might want to try is typing index.php on the end of you web address.

  7. GRIZDOG
    Member
    Posted 6 years ago #

    Do you mean "http://localhost/wordpress/wp-admin/index.php"?

    I still get a blank page. For some reason, none of the WP php files seem to be working.

  8. GRIZDOG
    Member
    Posted 6 years ago #

    I just tested the php files again and they are still working. I thought I'd check, just to be sure nothing had changed.

    The only difference I see in the php files that work as opposed to the ones that don't is their location. The files that work are in the root directory "htdocs" of the Apache server, while the wordpress files are, of course, in the subdirectory "wordpress".

    Would/should this have any affect on this issue?

  9. Samuel B
    moderator
    Posted 6 years ago #

    Try using the actual ip address instead of localhost.

  10. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Does your apache error log state anything?

  11. GRIZDOG
    Member
    Posted 6 years ago #

    Let me check both of those posts. Give me a sec.

  12. GRIZDOG
    Member
    Posted 6 years ago #

    I tried this address: "http://127.0.0.1/wordpress/wp-admin/install.php", but it still just gave me a blank page.

    I'm going to check the error logs now.

  13. GRIZDOG
    Member
    Posted 6 years ago #

    The error logs are packed, but I can't tell which are the most recent/relavant. How do I clear the error logs so I can run the install.php and check for all the errors?

  14. Jeremy Clark
    Moderator
    Posted 6 years ago #

    I'm not entirely sure how to clear the logs in Apache for windows. If wordpress is the only thing running then all the errors should be from wordpress.

    One thing you can look for to narrow it down is the time when you try to run the install script.

  15. GRIZDOG
    Member
    Posted 6 years ago #

    I believe I've narrowed it down to these errors:

    [client 127.0.0.1] PHP Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-config.php on line 3

    [client 127.0.0.1] PHP Notice: Use of undefined constant ABSPATH - assumed 'ABSPATH' in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-admin\upgrade-functions.php on line 3

    [client 127.0.0.1] PHP Notice: Use of undefined constant ABSPATH - assumed 'ABSPATH' in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-admin\upgrade-functions.php on line 5

    [client 127.0.0.1] PHP Warning: main(ABSPATH/wp-admin/admin-functions.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-admin\upgrade-functions.php on line 5

    [client 127.0.0.1] PHP Fatal error: main(): Failed opening required 'ABSPATH/wp-admin/admin-functions.php' (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-admin\upgrade-functions.php on line 5

  16. Jeremy Clark
    Moderator
    Posted 6 years ago #

    what version of php are you using? Does it meet the minimum requirements.

  17. GRIZDOG
    Member
    Posted 6 years ago #

    Yes. It's version 4.

  18. GRIZDOG
    Member
    Posted 6 years ago #

    I'll double check it to be sure.

  19. GRIZDOG
    Member
    Posted 6 years ago #

    It is version 4.3.3

  20. GRIZDOG
    Member
    Posted 6 years ago #

    This is line 3 of the wp-config.php file:

    define('DB_NAME', 'wordpress'); // The name of the database

    These are lines 3 and 5 from the upgrade-functions.php:

    if ( file_exists(ABSPATH . 'wp-content/install.php') )
    require_once(ABSPATH . '/wp-admin/admin-functions.php');

  21. GRIZDOG
    Member
    Posted 6 years ago #

    I did create a database with the name "wordpress" in mysql. I am able to view it with "mysqlshow", so I know it is there. I also gave its user all privilages.

    How does WP find the database? I see that it has access details in the wp-config file, but how does it know "where" to find it? I don't see any paths noted anywhere.

  22. GRIZDOG
    Member
    Posted 6 years ago #

    These lines also exist at the bottom of my wp-config file:

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');?>

    Are they related to the errors I found?

  23. Jeremy Clark
    Moderator
    Posted 6 years ago #

    [client 127.0.0.1] PHP Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\wordpress\wp-config.php on line 3

    Double check your wp-config.php file. Is there a missing quote anywhere.

  24. Jeremy Clark
    Moderator
    Posted 6 years ago #

    You beat me too it. Everything you've posted seemed correct. My only other guess would be to get the orginal wp-config file from the archive and copy it back over and edit it again. Microsoft line breaks do funny things to some code.

  25. GRIZDOG
    Member
    Posted 6 years ago #

    There does not appear to be any missing quotes. I did check it several times to be sure.

  26. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Also did this line
    if ( file_exists(ABSPATH . 'wp-content/install.php') ) have a semicolon on the end of it in the upgrade-functions.php

  27. GRIZDOG
    Member
    Posted 6 years ago #

    The first lines of that file (which come directly after the one we are discussing) look like this:

    if ( file_exists(ABSPATH . 'wp-content/install.php') )
    require (ABSPATH . 'wp-content/install.php');
    require_once(ABSPATH . '/wp-admin/admin-functions.php');
    require_once(ABSPATH . '/wp-admin/admin-db.php');
    require_once(ABSPATH . '/wp-admin/upgrade-schema.php');
    require_once(ABSPATH . WPINC . '/registration.php');

    It appears that the second line is the completion of the first, which does contain the semicolon.

  28. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Try adding the wp-config file again and see if that helps.

    My only other guess would be to get the orginal wp-config file from the archive and copy it back over and edit it again. Microsoft line breaks do funny things to some code

  29. GRIZDOG
    Member
    Posted 6 years ago #

    I have noticed that in the original files there are these little rectangles where there should be a carriage return, but this is all in the original php files that I got from WP.

    What do you make of that?

  30. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Those are unix style carriage returns. Microsoft doesn't understand them. When you were editing your wp-config file did you hit enter at the end of the lines or just edit in between the quotes.

Topic Closed

This topic has been closed to new replies.

About this Topic