Comments on Installing Apache2 With PHP5 And MySQL Support On Ubuntu 9.10 (LAMP)
Installing Apache2 With PHP5 And MySQL Support On Ubuntu 9.10 (LAMP) LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on an Ubuntu 9.10 server with PHP5 support (mod_php) and MySQL support.
30 Comment(s)
Comments
"sudo su" is NEVER necessary, use "sudo -i" to setup the environment properly. Telling people to use "sudo su" is just bad practice.
well i cant say much for this guy but i think it is grate what you guys are doing for the new linux guy that knows a lot on windows but trying to find his way to the lite
I suggest to add in FTP installation guide.
When I installed and started apache2 I got this message * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name. Using 127.0.1.1 for ServerName The rest of the installation went fine (substituting 127.0.1.1 instead of 192.168.0.100) until I installed phpmyadmin. Then when I browsed to 127.0.1.1/phpmyadmin I got a 404-not found message. I searched for phpmyadmin but could not locate it. For folk (read 'idiots') like me it might be a good idea to include some guidance on what to do when things don't work out the way they should :)
This is one of the serious omissions in this article/tutorial. One should never leave the Apache directive ServerName at its default value. This default is useless. It should always be explicitly set to something useful.
It is a good idea, for example, to include the port in ServerName.
The name has to resolve, so unless you want to share only the IP address, it should be a name that will resolve under DNS.
To make PhpMyAdmin work try to configure apache2.conf to use PHPMyAdmin via browser:
$ sudo gedit /etc/apache2/apache2.conf
Then insert the line below into apache2.conf:
Include /etc/phpmyadmin/apache.conf
Dasha
Maybe you also could add how to get ruby, ruby on rails to this.
Thanks for the great information. This really made it simple to install :)
very nice summary. saves a lot of work. THANKS !!!!
thanks a lot.. very nice tutorial.
Step 7.
sudo ln -s /usr/share/phpmyadmin/ /var/www
"sudo ln -s /usr/share/phpmyadmin/ /var/www "
That made my day!
I can not thank you enough! Excellent tutorial , brief and to-the-point !!
Best regards,
-Deb
:-) thks
What if you already transfer the webroot to /user/public_html?
Anyway its still the same you just have to change its directory... :) Thanks for the contribution.. :)
Big help!!
If you want to install it all in one go, just use:
sudo tasksel install lamp-server
You'll have to do phpmyadmin yourself if you want it, but that command will set up all the rest for you.
Thank you very much))
Great tutorial, thank you very much.
Great tutorial, thanks !!
Yes, great tutorial.
Worked just as advertised.
One note however. If you install PhpMyAdmin the default user name is "root" and the associated password. Took me a moment to figure out how to create a new user until I realized what it had defaulted to.
Great tutorial...
I couldn't move forward from the following step
vi /var/www/info.php this command opens editor but do nothing and i have to exit from terminal
where to write the following code
<?php
phpinfo();
?>
aptitude search php5 this works fine gives a list of options
aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear
php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming
php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy
php5-xmlrpc php5-xsl php5-json
/etc/init.d/apache2 restart this command fails and displays the following information
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
aptitude install phpmyadmin this also fails and displays following msg
shahzad@shahzad-desktop:~$ aptitude install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
shahzad@shahzad-desktop:~$
now please suggest me what to do
Thanks & Regards
Shahzad
Hey guys tx fr de tutorial...it was nice....
hi Shahzad,
if you are using vi editor, you have to use Esc+i (press Escape and i keys) to insert or enter values in a file. to save the file use Esc+wq!, Esc+q! for exit without modifications.
i hope this helps u....
have a nice day....
frist become a super userver
$sudo su
tell put the install commond
# aptitude install phpmyadmin
this is an amazing tutorial. been trying to get this stuff setup on mac and scratching my head. such a quick setup process on ubuntu.
HI, this artical is great.... i used this ... its very easy to learn... thanks for this ..............
Thanks
Jatin
Thank you for the simple and clear walk-through--it was very easy and is very much appreciated!
Minor gripe:
I can't escape the feeling you should have added one more step to your GREAT tutorial -- I logged into phpMyAdmin and it seems you me you might have included some advice about what to do with this page.
Thanks.
Great Howto! Thanks a million...
Thanks. I did everything you showed except for the MySQL (I would like to use Oracle). I was trying to place the same php test file under a webapps directory without success. It looks like if the webapp is set up for JSP, then I guess it does not know about php.
Thanks again, Mark L.
This is good, I'll be applying this to my system and see if it really work and helps. This look so helpful and convenient to use.