Blank browser window after initial set up.

Hello everyone,

I've set my first distro (Ubuntu 12.04 LTS) and installed all the packages required to host a web site including: Apache2, PHP, MySQL and a firewall.

I've pointed my domain name at my new IP Address and am able to ping successfully.

I've added a DNS record and set the reverse DNS.

A simple index page has been uploaded with a line of PHP and a line of HTML.

The domain name seems to resolve (http://www.alancoleman.me.uk/) however I'm just seeing a blank white page with no content or errors.

Can anyone think of a reason for this?

Many thanks :?:

8 Replies

Okay, It's a PHP issue because I've just created an html file via ssh and it's working fine.

Thoughts on what could be wrong with my PHP config?

Thanks

I see "This is a test. Hello World index.html."

@dcraig:

I see "This is a test. Hello World index.html."

Thanks for looking, this is an html page which would suggest my issue is with PHP.

http://www.alancoleman.me.uk/index.html :)

http://www.alancoleman.me.uk/index.php :(

My access log is returning what looks like a 500 error:

GET /index.php HTTP/1.1" 500 275

Thanks

Boomfelled,

Do you have error reporting turned on? You could have errors but not know it because error reporting is turned off.

MSJ

@Main Street James:

Boomfelled,

Do you have error reporting turned on? You could have errors but not know it because error reporting is turned off.

MSJ

Thanks for replying. Yes I have display_errors turned on in:

/etc/php5/apache2/php.ini

I also restarted apache after making this change.

Thanks again

The html page has code in it, but the php page seems to be completely empty.

Boomfelled,

Do you happen to have an htaccess file in the root directory of the site? If so it may be overriding the settings in php.ini

MSJ

@Main Street James:

Boomfelled,

Do you happen to have an htaccess file in the root directory of the site? If so it may be overriding the settings in php.ini

MSJ
Thanks MSJ,

No I have no .htaccess in my root. However I don't recall editing a .htaccess file during the setup process.

Thanks again.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct