WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] The source of install.php is dumping out (8 posts)

  1. velkin
    Member
    Posted 1 year ago #

    I'm running apache, and php is enabled....i successfully went through the config file generation process where it connected to my database and stuff....so PHP does in fact appear to be running fine.

    However...the install.php file does not actually run...it just shows me all the soucecode. What's more, is any other admin file redirects me there...so php does still appear to be fine. i.e. i go to "wordpress/wp-admin/install.php" and i get:

    <?php
    /**
     * WordPress Installer
     *
     * @package WordPress
     * @subpackage Administration
     */
    
    // Sanity check.
    if ( false ) {
    ?>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<title>Error: PHP is not running</title>
    </head>
    <body class="wp-core-ui">
    	<h1 id="logo"><a href="http://wordpress.org/">WordPress</a></h1>
    	<h2>Error: PHP is not running</h2>
    	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
    </body>
    </html>
    <?php
    }
    
    /**
     * We are installing WordPress.
     *
     * @since 1.5.1
     * @var 
    
    etc.
    etc.
    etc.

    Any ideas would be greatly appreciated.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    All we can say is that PHP does not appear to be running on your server.

  3. velkin
    Member
    Posted 1 year ago #

    I created a phpinfo page and everything dumped out fine. PHP is running. I have no idea what's wrong with this install file.

    ....and every page with wordpress sends me straight to the install file....which means that checks and redirects are working.

    Is there some config somewhere in apache that could be stopping only install.php from being interpretted?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Not that I can recall off the top of my head. Are you actually seeing the code on the page? Or are you just being redirected to wp--admin/install.php

  5. velkin
    Member
    Posted 1 year ago #

    For the install.php page, it writes the code out into the browser, as if it was a text file...i.e. it is not interpretted.

    If i go to wp-admin/setup-config.php i get as properly spit-out html:

    The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

    Navigating to wp-admin/index.php or pretty much any other page will just redirect me to wp-admin/install.php where it spits out the uniterpretted php....indicates to me that php is working on all pages except this one...which is whacked. Note...this is a clean 3.5 install.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    it writes the code out into the browser

    Have you tried re-uploading a copy of that file from a fresh download? The only thing I can think of that would stop just 1 file from being parsed is some kind of file corruption.

    In fact try re-uploading everything from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones but leave the wp-config.php file intact for now.

  7. velkin
    Member
    Posted 1 year ago #

    GAAAAAHHHHHH!? After an hour of screwing with it with the the same results it started working. I think i must have hit the page before i had php enabled, and was seeing a cached version.

    Thanks for the help anyway. Turns out i'm just an idiot. :)

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    We all have had days like that :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.