Could somebody please tell me how to install and configure LAMP on ubuntu 12.04 ? Is there a package similar to WAMP Server that is all-in-one ? I have tried to install from command line ,PHP,MySQL work but apache gives me this after sudo service apache2 restart * Restarting web server apache2<br /> no listening sockets available, shutting down Unable to open logs Action 'start' failed.
And I think probably I did something wrong when installing !
Thank you !Answer1:
You can follow tutorial from below link to setup LAMP on your Ubuntu 12,
<a href="http://technarco.com/ubuntu-linux/how-install-lamp-ubuntu-12" rel="nofollow">http://technarco.com/ubuntu-linux/how-install-lamp-ubuntu-12</a>
From <a href="http://howtoubuntu.org/how-to-install-lamp-on-ubuntu" rel="nofollow">this tutorial</a>,
Run this commands in Ubuntu Terminal-
sudo apt-get install apache2 sudo apt-get install mysql-server sudo apt-get install php5 libapache2-mod-php5 sudo /etc/init.d/apache2 restart
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'
If u get-
<strong>Your PHP installation is working fine.</strong>
Then you are done.Answer3:
To resolve this error, you need to stop other process using this port. In some of cases it is nginx. you can stop it
sudo /etc/init.d/nginx stopAnswer4:
you can install lamp server using Tasksel (Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system. This program is used during the installation process, but users can also use tasksel at any time)
check this post <a href="http://wiki.workassis.com/ubuntu-install-lamp-using-tasksel/" rel="nofollow">http://wiki.workassis.com/ubuntu-install-lamp-using-tasksel/</a>