Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Feb 25, 2014 4:45 pm 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
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 :?:


Top
   
PostPosted: Tue Feb 25, 2014 4:50 pm 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
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


Top
   
PostPosted: Tue Feb 25, 2014 4:50 pm 
Offline
Senior Member

Joined: Sun Apr 26, 2009 3:37 am
Posts: 72
Website: http://wiggenhorn.org/
I see "This is a test. Hello World index.html."


Top
   
PostPosted: Tue Feb 25, 2014 4:59 pm 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
dcraig wrote:
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:

Code:
GET /index.php HTTP/1.1" 500 275


Thanks


Top
   
PostPosted: Tue Feb 25, 2014 5:17 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Boomfelled,
Do you have error reporting turned on? You could have errors but not know it because error reporting is turned off.


MSJ


Top
   
PostPosted: Tue Feb 25, 2014 5:26 pm 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
Main Street James wrote:
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:

Code:
/etc/php5/apache2/php.ini


I also restarted apache after making this change.

Thanks again


Top
   
PostPosted: Tue Feb 25, 2014 5:55 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
The html page has code in it, but the php page seems to be completely empty.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Tue Feb 25, 2014 6:07 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
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


Top
   
PostPosted: Tue Feb 25, 2014 6:19 pm 
Offline
Junior Member
User avatar

Joined: Fri Feb 21, 2014 7:26 am
Posts: 34
Website: http://www.alancoleman.co.uk
Location: Bath. UK
Main Street James wrote:
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group