Webserver not displaying PHP page












1















I have provisioned an apache webserver with a custom user for content management, created a http-docs root directory in /var/, and assigned ownership to the user with the usual chown stuff, yada yada yada, and basically the basic stuff works.



I've uploaded some content and it displays when accessing via HTTP & HTTPS.



What totally confuses me is that the PHP pages for managing my CMS do not display, whereas a web-shell does.



In case it is relevant I am using the Armadillo CMS that is available as a RapidWeaver plugin. It depends on Apache, PHP, and MySQL and all these requirements are (apparently) met. Furthermore I can exclude MySQL as being at fault since I need to access the admin/setup page in order to provision the system, and insofar as it keeps turning up blank, I have not been able to even attempt to configure it.



While inspecting the relevant .php file from within the server's filesystem the file is populated with valid PHP code.



What am I doing wrong? What have I forgotten to do?



Thanks.










share|improve this question























  • Check the apache logs, then check the php/cms logs.

    – Captain Giraffe
    Dec 27 '14 at 20:38











  • Uhm, just by cat-ing them? Which files exactly? I'm quite new to web-admin stuff (as I am sure you have fathomed).

    – qubex
    Dec 27 '14 at 20:39











  • root@lamp files/armadillo# tail -100 /var/log/apache2/access.log root@lamp files/armadillo# Empty httpd logs. But it works. Maybe I don't have logging enabled or something like that?

    – qubex
    Dec 27 '14 at 20:43













  • Ah, error.log contains many entries of the rough form [Sat Dec 27 20:42:30 2014] [error] [client 192.168.111.21] PHP Warning: Unknown: open(/var/taleoftwotowns/files/armadillo/.tmp/sess_ev1b0qajjrh965b9qnbhsfho04, O_RDWR) failed: No such file o r directory (2) in Unknown on line 0, referer: http://www.taleoftwotowns.com/ Might this be because I haven't correctly set up VirtualHosts or some sort of DNS mishap?

    – qubex
    Dec 27 '14 at 20:46








  • 1





    @qubex, copy-paste it to terminal tail -f /var/log/apache2/error.log. After, just access to your webpage from web-browser. Please show result, which will be displayed in Terminal. Sometimes this problem can be resolved by installing php5-mysql

    – Vitaliy Krushelnitsky
    Dec 29 '14 at 15:37
















1















I have provisioned an apache webserver with a custom user for content management, created a http-docs root directory in /var/, and assigned ownership to the user with the usual chown stuff, yada yada yada, and basically the basic stuff works.



I've uploaded some content and it displays when accessing via HTTP & HTTPS.



What totally confuses me is that the PHP pages for managing my CMS do not display, whereas a web-shell does.



In case it is relevant I am using the Armadillo CMS that is available as a RapidWeaver plugin. It depends on Apache, PHP, and MySQL and all these requirements are (apparently) met. Furthermore I can exclude MySQL as being at fault since I need to access the admin/setup page in order to provision the system, and insofar as it keeps turning up blank, I have not been able to even attempt to configure it.



While inspecting the relevant .php file from within the server's filesystem the file is populated with valid PHP code.



What am I doing wrong? What have I forgotten to do?



Thanks.










share|improve this question























  • Check the apache logs, then check the php/cms logs.

    – Captain Giraffe
    Dec 27 '14 at 20:38











  • Uhm, just by cat-ing them? Which files exactly? I'm quite new to web-admin stuff (as I am sure you have fathomed).

    – qubex
    Dec 27 '14 at 20:39











  • root@lamp files/armadillo# tail -100 /var/log/apache2/access.log root@lamp files/armadillo# Empty httpd logs. But it works. Maybe I don't have logging enabled or something like that?

    – qubex
    Dec 27 '14 at 20:43













  • Ah, error.log contains many entries of the rough form [Sat Dec 27 20:42:30 2014] [error] [client 192.168.111.21] PHP Warning: Unknown: open(/var/taleoftwotowns/files/armadillo/.tmp/sess_ev1b0qajjrh965b9qnbhsfho04, O_RDWR) failed: No such file o r directory (2) in Unknown on line 0, referer: http://www.taleoftwotowns.com/ Might this be because I haven't correctly set up VirtualHosts or some sort of DNS mishap?

    – qubex
    Dec 27 '14 at 20:46








  • 1





    @qubex, copy-paste it to terminal tail -f /var/log/apache2/error.log. After, just access to your webpage from web-browser. Please show result, which will be displayed in Terminal. Sometimes this problem can be resolved by installing php5-mysql

    – Vitaliy Krushelnitsky
    Dec 29 '14 at 15:37














1












1








1








I have provisioned an apache webserver with a custom user for content management, created a http-docs root directory in /var/, and assigned ownership to the user with the usual chown stuff, yada yada yada, and basically the basic stuff works.



I've uploaded some content and it displays when accessing via HTTP & HTTPS.



What totally confuses me is that the PHP pages for managing my CMS do not display, whereas a web-shell does.



In case it is relevant I am using the Armadillo CMS that is available as a RapidWeaver plugin. It depends on Apache, PHP, and MySQL and all these requirements are (apparently) met. Furthermore I can exclude MySQL as being at fault since I need to access the admin/setup page in order to provision the system, and insofar as it keeps turning up blank, I have not been able to even attempt to configure it.



While inspecting the relevant .php file from within the server's filesystem the file is populated with valid PHP code.



What am I doing wrong? What have I forgotten to do?



Thanks.










share|improve this question














I have provisioned an apache webserver with a custom user for content management, created a http-docs root directory in /var/, and assigned ownership to the user with the usual chown stuff, yada yada yada, and basically the basic stuff works.



I've uploaded some content and it displays when accessing via HTTP & HTTPS.



What totally confuses me is that the PHP pages for managing my CMS do not display, whereas a web-shell does.



In case it is relevant I am using the Armadillo CMS that is available as a RapidWeaver plugin. It depends on Apache, PHP, and MySQL and all these requirements are (apparently) met. Furthermore I can exclude MySQL as being at fault since I need to access the admin/setup page in order to provision the system, and insofar as it keeps turning up blank, I have not been able to even attempt to configure it.



While inspecting the relevant .php file from within the server's filesystem the file is populated with valid PHP code.



What am I doing wrong? What have I forgotten to do?



Thanks.







14.04 php apache2.4






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 27 '14 at 20:29









qubexqubex

180520




180520













  • Check the apache logs, then check the php/cms logs.

    – Captain Giraffe
    Dec 27 '14 at 20:38











  • Uhm, just by cat-ing them? Which files exactly? I'm quite new to web-admin stuff (as I am sure you have fathomed).

    – qubex
    Dec 27 '14 at 20:39











  • root@lamp files/armadillo# tail -100 /var/log/apache2/access.log root@lamp files/armadillo# Empty httpd logs. But it works. Maybe I don't have logging enabled or something like that?

    – qubex
    Dec 27 '14 at 20:43













  • Ah, error.log contains many entries of the rough form [Sat Dec 27 20:42:30 2014] [error] [client 192.168.111.21] PHP Warning: Unknown: open(/var/taleoftwotowns/files/armadillo/.tmp/sess_ev1b0qajjrh965b9qnbhsfho04, O_RDWR) failed: No such file o r directory (2) in Unknown on line 0, referer: http://www.taleoftwotowns.com/ Might this be because I haven't correctly set up VirtualHosts or some sort of DNS mishap?

    – qubex
    Dec 27 '14 at 20:46








  • 1





    @qubex, copy-paste it to terminal tail -f /var/log/apache2/error.log. After, just access to your webpage from web-browser. Please show result, which will be displayed in Terminal. Sometimes this problem can be resolved by installing php5-mysql

    – Vitaliy Krushelnitsky
    Dec 29 '14 at 15:37



















  • Check the apache logs, then check the php/cms logs.

    – Captain Giraffe
    Dec 27 '14 at 20:38











  • Uhm, just by cat-ing them? Which files exactly? I'm quite new to web-admin stuff (as I am sure you have fathomed).

    – qubex
    Dec 27 '14 at 20:39











  • root@lamp files/armadillo# tail -100 /var/log/apache2/access.log root@lamp files/armadillo# Empty httpd logs. But it works. Maybe I don't have logging enabled or something like that?

    – qubex
    Dec 27 '14 at 20:43













  • Ah, error.log contains many entries of the rough form [Sat Dec 27 20:42:30 2014] [error] [client 192.168.111.21] PHP Warning: Unknown: open(/var/taleoftwotowns/files/armadillo/.tmp/sess_ev1b0qajjrh965b9qnbhsfho04, O_RDWR) failed: No such file o r directory (2) in Unknown on line 0, referer: http://www.taleoftwotowns.com/ Might this be because I haven't correctly set up VirtualHosts or some sort of DNS mishap?

    – qubex
    Dec 27 '14 at 20:46








  • 1





    @qubex, copy-paste it to terminal tail -f /var/log/apache2/error.log. After, just access to your webpage from web-browser. Please show result, which will be displayed in Terminal. Sometimes this problem can be resolved by installing php5-mysql

    – Vitaliy Krushelnitsky
    Dec 29 '14 at 15:37

















Check the apache logs, then check the php/cms logs.

– Captain Giraffe
Dec 27 '14 at 20:38





Check the apache logs, then check the php/cms logs.

– Captain Giraffe
Dec 27 '14 at 20:38













Uhm, just by cat-ing them? Which files exactly? I'm quite new to web-admin stuff (as I am sure you have fathomed).

– qubex
Dec 27 '14 at 20:39





Uhm, just by cat-ing them? Which files exactly? I'm quite new to web-admin stuff (as I am sure you have fathomed).

– qubex
Dec 27 '14 at 20:39













root@lamp files/armadillo# tail -100 /var/log/apache2/access.log root@lamp files/armadillo# Empty httpd logs. But it works. Maybe I don't have logging enabled or something like that?

– qubex
Dec 27 '14 at 20:43







root@lamp files/armadillo# tail -100 /var/log/apache2/access.log root@lamp files/armadillo# Empty httpd logs. But it works. Maybe I don't have logging enabled or something like that?

– qubex
Dec 27 '14 at 20:43















Ah, error.log contains many entries of the rough form [Sat Dec 27 20:42:30 2014] [error] [client 192.168.111.21] PHP Warning: Unknown: open(/var/taleoftwotowns/files/armadillo/.tmp/sess_ev1b0qajjrh965b9qnbhsfho04, O_RDWR) failed: No such file o r directory (2) in Unknown on line 0, referer: http://www.taleoftwotowns.com/ Might this be because I haven't correctly set up VirtualHosts or some sort of DNS mishap?

– qubex
Dec 27 '14 at 20:46







Ah, error.log contains many entries of the rough form [Sat Dec 27 20:42:30 2014] [error] [client 192.168.111.21] PHP Warning: Unknown: open(/var/taleoftwotowns/files/armadillo/.tmp/sess_ev1b0qajjrh965b9qnbhsfho04, O_RDWR) failed: No such file o r directory (2) in Unknown on line 0, referer: http://www.taleoftwotowns.com/ Might this be because I haven't correctly set up VirtualHosts or some sort of DNS mishap?

– qubex
Dec 27 '14 at 20:46






1




1





@qubex, copy-paste it to terminal tail -f /var/log/apache2/error.log. After, just access to your webpage from web-browser. Please show result, which will be displayed in Terminal. Sometimes this problem can be resolved by installing php5-mysql

– Vitaliy Krushelnitsky
Dec 29 '14 at 15:37





@qubex, copy-paste it to terminal tail -f /var/log/apache2/error.log. After, just access to your webpage from web-browser. Please show result, which will be displayed in Terminal. Sometimes this problem can be resolved by installing php5-mysql

– Vitaliy Krushelnitsky
Dec 29 '14 at 15:37










1 Answer
1






active

oldest

votes


















0














I assume when you installed php you used something like



sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt


Did you remember to modify Apache so it looks for .php before .html?



 sudo nano /etc/apache2/mods-enabled/dir.conf


It should look something like this:



 <IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>


Note that index.php should be the first.



Once change has been made you just need to restart the server



 sudo service apache2 restart





share|improve this answer
























  • Did this help you?

    – geoffmcc
    Dec 28 '14 at 19:40











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f566028%2fwebserver-not-displaying-php-page%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I assume when you installed php you used something like



sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt


Did you remember to modify Apache so it looks for .php before .html?



 sudo nano /etc/apache2/mods-enabled/dir.conf


It should look something like this:



 <IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>


Note that index.php should be the first.



Once change has been made you just need to restart the server



 sudo service apache2 restart





share|improve this answer
























  • Did this help you?

    – geoffmcc
    Dec 28 '14 at 19:40
















0














I assume when you installed php you used something like



sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt


Did you remember to modify Apache so it looks for .php before .html?



 sudo nano /etc/apache2/mods-enabled/dir.conf


It should look something like this:



 <IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>


Note that index.php should be the first.



Once change has been made you just need to restart the server



 sudo service apache2 restart





share|improve this answer
























  • Did this help you?

    – geoffmcc
    Dec 28 '14 at 19:40














0












0








0







I assume when you installed php you used something like



sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt


Did you remember to modify Apache so it looks for .php before .html?



 sudo nano /etc/apache2/mods-enabled/dir.conf


It should look something like this:



 <IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>


Note that index.php should be the first.



Once change has been made you just need to restart the server



 sudo service apache2 restart





share|improve this answer













I assume when you installed php you used something like



sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt


Did you remember to modify Apache so it looks for .php before .html?



 sudo nano /etc/apache2/mods-enabled/dir.conf


It should look something like this:



 <IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>


Note that index.php should be the first.



Once change has been made you just need to restart the server



 sudo service apache2 restart






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 27 '14 at 21:28









geoffmccgeoffmcc

1,249612




1,249612













  • Did this help you?

    – geoffmcc
    Dec 28 '14 at 19:40



















  • Did this help you?

    – geoffmcc
    Dec 28 '14 at 19:40

















Did this help you?

– geoffmcc
Dec 28 '14 at 19:40





Did this help you?

– geoffmcc
Dec 28 '14 at 19:40


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f566028%2fwebserver-not-displaying-php-page%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕