Comments on Installing Apache2 With PHP5 And MySQL Support On Debian Wheezy
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a Debian Wheezy server with PHP5 support (mod_php) and MySQL support.
14 Comment(s)
Comments
Helped me out a lot. Thanks!
I just did this on my Raspberry under Raspbian, works fine! Thanks!
well written and works well. Many thanks!
everything worked, but when I installed phpmyadmin with the given commands and using the exact steps. I went to my IP where apache runs and where /info.php worked, but when i did /phpmyadmin it couldn't be found
One last step that finished the setup for me...
1. cd /srv/www/example.org/public_html (Location of the web home dir)
2. ln -s /usr/share/phpmyadmin (Creates the link to location of myadmin home dir)
Something seem to be broken with Jessie.
info.php and phpmyadmin.php report 404 not found.
Any suggestions?
Thanks
vi /var/www/info.php
Had to change that to vi /var/www/html/info.php.
Debian set the default CONTEXT_DOCUMENT_ROOT constant to /var/www/html
all worked except to use phpMy admin had to create Symbolic link
ln -s /usr/share/phpmyadmin /var/www/
thank you man
On the PHPMyAdmin (7), must add line to /etc/apache2/apache2.conf
Add everywhere on the config apache2.conf: Include /etc/phpmyadmin/apache.conf
Or http://0.0.0.0/phpmyadmin not working ;)
Thanks for help!
That's not needed when you select "Web server to reconfigure automatically: <-- apache2" as described in the tutorial. Same with all other posts above that claim that the creation of a symlink is required. You have to create that symlink only in case you missed to select the apache2 option with the tab key and then activate the option with the space key (as usual in apt).
phpmyadmin application/x-httpd-php ?????
I am on Debian and cannot seem to get PHP to install
apt-get install php5 libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php5' has no installation candidate
E: Package 'libapache2-mod-php5' has no installation candidate
This tutorial is for Debian 7 (Wheezy) only as shown in the headline, are you sure that you use Debian 7 and not a different version?