Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Feb 26, 2015 11:40 pm 
Offline
Newbie

Joined: Thu Feb 26, 2015 11:35 pm
Posts: 3
I have added the files to /var/www/html/ but when I open http://45.56.112.34/ the testing page for Apache is keep showing up.

Anyone know why? Where is my web root path?

Thanks


Top
   
PostPosted: Fri Feb 27, 2015 12:00 am 
Offline
Senior Newbie

Joined: Mon Aug 12, 2013 8:58 am
Posts: 14
Hi ruike,

You might want to provide a bit more information... what distribution are you using (debian, ubuntu, centos?), what files have you uploaded (directories/filenames might be handy).

Also, have you followed any guides to get this setup?

With more information, we should be able to help you figure this out. :)


Top
   
PostPosted: Fri Feb 27, 2015 11:37 pm 
Offline
Newbie

Joined: Thu Feb 26, 2015 11:35 pm
Posts: 3
Thanks virtualsid. I figured this out.

I have the new problem now. It seems like I can't run php files on my server.

I followed these guides and finished all the steps with not issues.
https://www.linode.com/docs/websites/la ... n-centos-7

But when I run http://45.56.112.34/index.php, it didn't work.

Please help.

Thanks


Top
   
PostPosted: Fri Feb 27, 2015 11:59 pm 
Offline
Senior Newbie

Joined: Mon Aug 12, 2013 8:58 am
Posts: 14
Hi,

I don't use CentOS, so not sure why this wouldn't just work out of the box if you definitely followed those instructions on the guide.

Did you definitely restart your web server? 'sudo /bin/systemctl reload httpd', and did you definitely install PHP? 'sudo yum install php php-pear'? There should be no harm typing it again and restarting your web server if it did need installing.

The other thing to check is if this line is somewhere in your apache config:

Code:
 AddType application/x-httpd-php .php


And see if there is something similar to this too:

Code:
LoadModule php5_module /path/to/your/libphp5.so


I hope this gives you a pointer, and enough to help fix it.

Good luck!


Top
   
PostPosted: Sat Feb 28, 2015 12:08 am 
Offline
Newbie

Joined: Thu Feb 26, 2015 11:35 pm
Posts: 3
Thank you very much virtualsid.

After I added AddType application/x-httpd-php .php in my apache config file. It works.


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


Who is online

Users browsing this forum: No registered users and 2 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