Getting a blank page with FuelCMS

edited August 2012 in Installation
Hey,

I've been struggling to get this up and running for a couple of hours now and I'm hoping that you guys can help me out. I'm using PHP 5.3 with Apache 2.2 and trying to set up FuelCMS on it.

When I try to navigate to the admin page http://localhost:8080/fuel rewrites to http://localhost:8080/fuel/login/5a6e566c6243396b59584e6f596d3968636d513d and displays a blank page. If I set $config['admin_enabled'] to false, http://localhost:8080/fuel rewrites to http://localhost:8080/fuel/dashboard gives me a 404 error.

When I tried the url http://localhost:8080/index.php/fuel, it rewrites to http://localhost:8080/fuel/login/5a6e566c62413d3d and gives me a blank page.

When I check the apache logs the access.log shows:

127.0.0.1 - - [21/Aug/2012:00:47:51 -0700] "GET /fuel/dashboard HTTP/1.1" 302 -
127.0.0.1 - - [21/Aug/2012:00:47:51 -0700] "GET /fuel/login/5a6e566c6243396b59584e6f596d3968636d513d HTTP/1.1" 200 -
127.0.0.1 - - [21/Aug/2012:00:47:51 -0700] "GET /favicon.ico HTTP/1.1" 404 1916

The logs seem normal to me; I don't know why I'm getting a blank page.

Thanks in advance for your help.

Comments

  • edited August 2012
    Have you a mod rewrite base in your htaccess file?

    You may not need it. I usually set them up under localhost/projectx and need a rewrite base of projectx. Don't use the port.
  • edited August 2012
    In my httpd.conf file, I have uncommented LoadModule rewrite_module modules/mod_rewrite.so and I checked the loaded modules using phpinfo()

    I'm using the default .htaccess file that comes with the fuel zip package.
  • edited 9:15PM
    Are you able to see:
    http://localhost:8080/index.php/fuel/login
  • edited August 2012
    Tried: http://localhost:8080/index.php/fuel/login

    But it also gives me a blank page.

    127.0.0.1 - - [21/Aug/2012:09:48:41 -0700] "GET /index.php/fuel/login HTTP/1.1" 200 -

    I just tried the exact same setup of php, apache, and fuelcms on another computer and I get the same blank pages.

    I noticed another thing that's strange. When $config['fuel_mode'] = 'views'; I can navigate to http://localhost:8080 and get the "Welcome to Fuel CMS" page. However, when I change the value to $config['fuel_mode'] = 'AUTO'; even http://localhost:8080 gives me a blank page.

    I wonder if an issue with the database configuration could cause the problem I'm seeing.
  • edited August 2012
    Great News! I've got everything up and running now.

    It turned out to be a connection issue with the mysql database. For some reason, those blank pages didn't show any database connection errors which made this problem difficult to troubleshoot.

    If you read my previous post, I had a suspicion that there might have been a database connection problem. To test my suspicion, I modified the home page in /application/views/home.php by adding the following line:

    <?php
    mysql_connect("localhost", "root", "secretpassword") or die(mysql_error());
    echo "Connected to MySQL<br />";
    ?>

    So when I navigated to http://localhost:8080/, it displayed an mysql_connect error message which confirmed my suspicion of the database connection issue.

    I decided to check my php.ini and I found out that I needed to change:

    ;extension=php_mysql.dll

    to:

    extension=C:/php/ext/php_mysql.dll

    Restarted httpd and everything works great.

    Thanks for your time and assistance guys.
Sign In or Register to comment.