Comments on Installing Apache2 With PHP5 And MySQL Support On Ubuntu 14.04LTS (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on anUbuntu 13.04 server with PHP5 support (mod_php) and MySQL support.
22 Comment(s)
Comments
I am not able to see mysql in phpinfo() though I can see .ini file loaded. can someone guide me. I checked some of the blogs and did steps mentioned here as well. no luck :(
"Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!): "
no it doesn't work
you have to use http://127.0.1.1/
i have just standard instalation of ubu 14
i try to install and install again phpMyAdmin.
i try to edit json.ini
now i dont know what i can i do to make that this work? thanks alot
great tutorial. Thanks for sharing :-) If any one get page not found for phpmyadmin please follow this thread it will help:
http://askubuntu.com/questions/387062/how-to-solve-the-phpmyadmin-not-found-issue-after-upgrading-php-and-apache
run this camand if phpmyadmin is not working : sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
Followed this Tut. But found it not working.
Had to add an A record type to my zone records to my domain.
server1 A TTL 3600 IP ??.??.??.??
Did following in postfix config:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version# Debian specific: Specifying a file name will cause the first# line of that file to be used as the name. The Debian default# is /etc/mailname.#myorigin = /etc/mailnamesmtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)biff = no# appending .domain is the MUA's job.append_dot_mydomain = no# Uncomment the next line to generate "delayed mail" warnings#delay_warning_time = 4hreadme_directory = /usr/share/doc/postfix# TLS parameterssmtpd_tls_cert_file = /etc/postfix/smtpd.certsmtpd_tls_key_file = /etc/postfix/smtpd.keysmtpd_use_tls = yessmtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scachesmtp_tls_session_cache_database = btree:${data_directory}/smtp_scache# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for# information on enabling SSL in the smtp client.# smtpd_relay_restrictions = myhostname = server1.example.comalias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesmyorigin = /etc/mailnamemydestination = server1.example.com.au, localhost, localhost.localdomain# mynetworks = 127.0.0.0/32mailbox_size_limit = 0recipient_delimiter = +inet_protocols = allhtml_directory = /usr/share/doc/postfix/htmlvirtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cfvirtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cfvirtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cfvirtual_mailbox_base = /home/vmailvirtual_uid_maps = static:5000virtual_gid_maps = static:5000smtpd_sasl_auth_enable = yesbroken_sasl_auth_clients = yessmtpd_sasl_authenticated_header = yessmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destinationtransport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cfvirtual_maildir_extended = yesvirtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cfvirtual_mailbox_limit_override = yesvirtual_maildir_limit_message = "The user you are trying to reach is over quota."virtual_overquota_bounce = yesproxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_mapscontent_filter = amavis:[127.0.0.1]:10024receive_override_options = no_address_mappingsinet_interfaces = all
May need to setup a reverse DNS with my ISP to send to some providers like gmail, google etc.
Thanks.. works well...
Thank you, awesome tutorial.
192.168.0.100/phpmyadmin/ was not found on this server.
How I can to fix it
See there
https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Phpmyadmin_.26_mysql-workbench
Great tutorial. Thanks!
vi /var/www/html/info.php doesn't work for me. I used sudo nano /var/www/html/info.php
am not able to see phpmyadmin page in my browser........it shows list php scripting code ....... it doesn't dispaly any error message. So i couldn't get idea for solving this issue...
Thank you so so much!!Work with addr 127.0.0.1 and if add the Include /etc/phpmyadmin/apache.conf to apache2.conf as says Rahul Sharma
Thanks and It works...!
This is perfect. Thank you for taking the time to write it up.
Thanks for taking time to write up an excellent tutorial. I used Localhost in the browser instead of an IP and all went well. The only issue was phpMyadmin not appearing but the answer is here:
http://askubuntu.com/questions/387062/how-to-solve-the-phpmyadmin-not-found-issue-after-upgrading-php-and-apache
Great work.
out dated
The tutorial is not outdated, it is just for Ubuntu 14.04 as stated in the headline. Why do you think that the first line of the tutorial is a link to the updated version for Ubuntu 16.04? "There is a new revision of this tutorial available for Ubuntu 16.04 (Xenial Xerus)." You should read first before you post a comment *lol*
worked well!
Funcionou perfeitamente!
very good post ubuntu
super guide, after trying 3 others finally here everything got workin' with one small exception which is phpmyadmin, anyway after suplementing it with the following (thx to: https://dev.to/xeroxism/how-to-install-phpmyadmin-on-linux-ubuntu-4mdn) managed to make it runnin':
-"after installation is complete, configure phpMyAdmin to be recognised by the local web server. Open the apache configuration file in your favourite text editor;
sudo gedit /etc/apache2/apache2.conf
and add the following line at the bottom of the file (you can add it anywhere in the file, I just choose the bottom here so that you can easily access it for modification):
Include /etc/phpmyadmin/apache.conf
then restart the web server;
sudo service apache2 restart
and then: https://localhost/phpmyadmin"-