Quote:
Originally Posted by yancek
To install php with apache modules, take a look at step 3 at the link below. I don't know if you are using or have mysql but that is also expalined if needed. If you changed your Document Root back to /var/www/html, do you have an info.php file there and if so, what happens when you point to it from your web browser.
https://www.digitalocean.com/communi...n-ubuntu-14-04
|
Hi,
Thanks for your advice.
Performed following steps;
DocumentRoot /var/www/html
$ sudo ln -s /var/www/info.php /var/www/html/info.php
$ sudo ln -s /var/www/xys /var/www/html/xyz
On browser
http://localhost/xyz/info.php
Code:
Not Found
The requested URL /xyz/info.php was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
http://localhost/hymn/index.php
A blank page displayed
I couldn't recall exactly the steps performed previously to install LAMP. But I can confirm this VM was working properly before upgrade from Mint 16 to Mint 17. Same as other VMs running on Mint 16 are now working without problem.
$ apt-cache policy libapache2-mod-php5
Code:
libapache2-mod-php5:
Installed: (none)
Candidate: 5.5.9+dfsg-1ubuntu4.7
Version table:
5.5.9+dfsg-1ubuntu4.7 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
5.5.9+dfsg-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
$ apt-cache policy php5-mcrypt
Code:
php5-mcrypt:
Installed: 5.4.6-0ubuntu5
Candidate: 5.4.6-0ubuntu5
Version table:
*** 5.4.6-0ubuntu5 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
# /etc/init.d/mysql status
Code:
* /usr/bin/mysqladmin Ver 8.42 Distrib 5.5.41, for debian-linux-gnu on x86_64
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.5.41-0ubuntu0.14.04.1
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 21 min 55 sec
Threads: 1 Questions: 174 Slow queries: 0 Opens: 303 Flush tables: 1 Open tables: 74 Queries per second avg: 0.132
MySQL is working
Other VM running Mint 16 for comparison:-
$ apt-cache policy php5
Code:
php5:
Installed: (none)
Candidate: 5.5.3+dfsg-1ubuntu2.6
Version table:
5.5.3+dfsg-1ubuntu2.6 0
500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
5.5.3+dfsg-1ubuntu2 0
500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
$ apt-cache policy libapache2-mod-php5
Code:
libapache2-mod-php5:
Installed: 5.5.3+dfsg-1ubuntu2.3
Candidate: 5.5.3+dfsg-1ubuntu2.6
Version table:
5.5.3+dfsg-1ubuntu2.6 0
500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
*** 5.5.3+dfsg-1ubuntu2.3 0
100 /var/lib/dpkg/status
5.5.3+dfsg-1ubuntu2 0
500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
$ apt-cache policy php5-mcrypt
Code:
php5-mcrypt:
Installed: 5.4.6-0ubuntu3
Candidate: 5.4.6-0ubuntu3
Version table:
*** 5.4.6-0ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
100 /var/lib/dpkg/status
# /etc/init.d/mysql status
Code:
* /usr/bin/mysqladmin Ver 8.42 Distrib 5.5.35, for debian-linux-gnu on x86_64
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.5.35-0ubuntu0.13.10.2
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 16 min 44 sec
Threads: 1 Questions: 560 Slow queries: 0 Opens: 475 Flush tables: 1 Open tables: 117 Queries per second avg: 0.557
Regards
satimis