Forums

[resolved] running install.php displays contents of wp-config.php (5 posts)

  1. Jonas Grumby
    Member
    Posted 3 years ago #

    Hi everyone,

    I have a client who tried to upload and install wordpress. When I try to run the install.php script, what I get on the screen is the contents of wp-config.php.

    I have already set the folder permissions to 775 recursively. I also noticed that although he gave a database name and password in wp-config.php, the database didn't exist. So, I created it but the results are the same.

    He says he was getting this message, but I have not gotten this message:

    message: Fatal error: Call to undefined function: is_admin() in
    /usr/local/4admin/apache/vhosts/XXX.com/wordpress/wp-admin/includes/comment.php on line 159

    Thanks for any ideas.

  2. whooami
    Member
    Posted 3 years ago #

    upload the files, all of them.

  3. Grandslambert
    Member
    Posted 3 years ago #

    Also make sure that PHP is installed and turned on, and NOT running in Safe Mode. If it is displaying the contents of the file, it's likely the file isn't being parsed by PHP due to one or more of the above not being done.

  4. whooami
    Member
    Posted 3 years ago #

    this:

    Fatal error: Call to undefined function: is_admin() in
    /usr/local/4admin/apache/vhosts/XXX.com/wordpress/wp-admin/includes/comment.php on line 159

    is clear evidence that PHP is installed.

  5. Jonas Grumby
    Member
    Posted 3 years ago #

    I just deleted everything he did and started over, and it's fine now. Up and running. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic