How to install and configure LAMP on ubuntu 12.04

不打扰是莪最后的温柔 提交于 2019-12-12 04:46:58

问题


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
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 !


回答1:


You can follow tutorial from below link to setup LAMP on your Ubuntu 12,

http://technarco.com/ubuntu-linux/how-install-lamp-ubuntu-12

Enjoy, :)




回答2:


From this tutorial,

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

For Checking-

php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'

If u get-

Your PHP installation is working fine.

Then you are done.




回答3:


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 stop



回答4:


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 http://wiki.workassis.com/ubuntu-install-lamp-using-tasksel/



来源:https://stackoverflow.com/questions/22744221/how-to-install-and-configure-lamp-on-ubuntu-12-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!