WordPress.org

Ready to get started?Download WordPress

Forums

Blank index.php page (34 posts)

  1. Eugentuk
    Member
    Posted 2 years ago #

    I upload teh entire WorPress on the server.

    If i go the home page of my site i have the index.php page with the code :

    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    My wordpress folder is located in http://www.kigali-guide.com/Kigaliguide.

    Help me.

    Thanks.

  2. Tim S
    Member
    Posted 2 years ago #

    You need to make sure your server is set up to execute the PHP file. Typically, this is done by a handler usually within your httpd.conf file. If you're not comfortable working in your server environment, I would suggest contacting your hosting provider.

  3. Eugentuk
    Member
    Posted 2 years ago #

    Yes server is set up to execute the PHP file.
    How is about httpd.conf file ?

  4. Tim S
    Member
    Posted 2 years ago #

    Every PHP page I've visited on your server displays the code and does not execute it. I would suggest you call GoDaddy. Especially, since right now your wp-config file is exposed and displaying your database name and username.

  5. Tim S
    Member
    Posted 2 years ago #

  6. Eugentuk
    Member
    Posted 2 years ago #

    I see the link but I am not using Godaddy

  7. Tim S
    Member
    Posted 2 years ago #

    When I dig your domain I see it's on a server that is securenet server. My apologies, I thought securenet servers were Godaddys.

    I still would contact your host to see why your server is not serving PHP pages.

  8. Tim S
    Member
    Posted 2 years ago #

    Did you ever get it fixed Eugentuk?

  9. Eugentuk
    Member
    Posted 2 years ago #

    No

  10. Tim S
    Member
    Posted 2 years ago #

    To see if php is installed correctly, make a new file called test.php and place it in your root web dir, inside that file put this:

    PHP Code:

    <?
    phpinfo();
    ?>

    Then visit the test.php page via a web browser. If it displays your php settings then it's installed correctly. If it shows the code, then PHP is not set up correctly on the server.

  11. Eugentuk
    Member
    Posted 2 years ago #

    If I upload the file test.php ,there is the same problem because WordPress is located in Kigaliguide folder.

    But with this link http://www.kigali-guide.com/test.php it displays my php settings .

  12. Tim S
    Member
    Posted 2 years ago #

    Do you have an .htaccess file in the wordpress folder? If you do, try renaming the .htaccess file and loading the wordpress install.

  13. Eugentuk
    Member
    Posted 2 years ago #

    I do it but no changes

  14. jbryl
    Member
    Posted 2 years ago #

    Please can any one help me with this

    [Code moderated as per the Forum Rules. Please use the pastebin]

    [Please don't post any passwords or private info here or in the pastebin]

    I try to instal wordpress on my local host bit is still showing me the errors

  15. Tim S
    Member
    Posted 2 years ago #

    Hi Eugentuk,

    Have you contacted your hosting provider? At this point, it sounds more of a server issue and they should be able to help you.

  16. web-bart
    Member
    Posted 2 years ago #

    I'm sorry, but I dont quite get what the problem is. First I think its strange that it shows the php tagg, and the comments...

    Now I'll ask you to try this:

    Its to look if the php is executed. Please put this code in a new document, and execute it (dont execute in wordpress, just in another direction. If this works, try in wordpress)).

    <body>
    <?php
    
    echo "hello world"; 
    
    /*test comment, if showed, and there is not 'hello world' on the screen, your host doesn't support php, or there are other problems with the hosting, and contact them.
    
    ?>
    
    <h1><p>Byebye world</p></h1>
    
    <!--If this is showed on the site, even html doesn't work. contact your host anyway... -->
    </body>

    I hope this helps.

    kind regards,

    Webbart

  17. Eugentuk
    Member
    Posted 2 years ago #

    @ Tim , I contact them but no answer...
    @ web-bart, If i execute the new php document with the code , I get this:

    Warning: Unterminated comment starting line 6 in /home/kigaligu/public_html/hello.php on line 6
    hello world

  18. web-bart
    Member
    Posted 2 years ago #

    pretty strange, it is a php comment, isn't it? But 1 thing is sure, it executes php, becouse if it didn't, you wouldn't get the error.

    I have no idea whats the problem on this. Maybe someoneelk?

    Lets wait for an response from the hosting.

    Kind regards,

    Webbart

  19. Eugentuk
    Member
    Posted 2 years ago #

    If I put it in WordPress folder...it's ok

    Bye bye World is displayed ..

  20. web-bart
    Member
    Posted 2 years ago #

    okay, so its clearly sure that the error is found in 1 of the wordpress codes. You can try to download a new wordpress from the website, instal it again, and upload what you wanna load in the wp-content/themes/your_theme_map

    Hopefully this works.

    Kind regards,

    Webbart

  21. Eugentuk
    Member
    Posted 2 years ago #

    I already installed a new wordpress and configure my databases .
    The code
    <?
    phpinfo();
    ?>
    display The version of Php but in the installation there is a error message :
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/kigaligu/public_html/Kigaliguide/wp-config.php on line 25

  22. Tim S
    Member
    Posted 2 years ago #


  23. Tim S
    Member
    Posted 2 years ago #

    Hi Eugentuk,

    Line 25 if I'm not mistaken is your password line for the database. You'll need to make sure that the syntax is correct. Here's the correct syntax:

    /** MySQL database password */
    define('DB_PASSWORD', '*****');

    Replace the ***** with your actual password for the database. I hope this helps!

  24. Eugentuk
    Member
    Posted 2 years ago #

    I correct all but the problem persist in the line 28 of :
    /** MySQL hostname */
    define('DB_HOST', '******');

  25. Tim S
    Member
    Posted 2 years ago #

    I would re-type it. Sometimes spaces can cause the issue. Make sure you don't have any spaces in there. If that doesn't work - I'd download a fresh copy of the wp-config file and use that.

  26. web-bart
    Member
    Posted 2 years ago #

    the host should be http://www.kigali-guide.com

  27. Eugentuk
    Member
    Posted 2 years ago #

    this hostname is not working

  28. web-bart
    Member
    Posted 2 years ago #

    I don't know how to fix this, but I even don't wanna give up...

  29. Tim S
    Member
    Posted 2 years ago #

    Your DB host, should not be your domain name, it should be 'localhost'

    I hope this helps!

  30. Eugentuk
    Member
    Posted 2 years ago #

    How to find my Hostname ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.