1339

How to install and configure LAMP on ubuntu 12.04

Question:

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>

Enjoy, :)

Answer2:

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

For Checking-

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 stop

Answer4:

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>

Recommend

  • What is the proper namespace for IPHostEntry and DNS?
  • Error : “Transport endpoint is already connected”
  • Sample TCP Client/Server Application
  • Find the interface used by a connected socket
  • Sent file has some corrupted data TCP sockets .. how to fix it?
  • Transfer data from Windows Service to Console Application repeatedly
  • NServiceBus endpoints looking for RavenDB for timeouts after upgrading 3.0.3 -> 3.2.2
  • Does Java's TCP Socket class block when sending data
  • Persist Sockets over page refresh and page changes
  • RabbitMq and “Fatal error: handshake failure - handshake_decode_error”
  • UDP datagram code for server client application in C#
  • Node.js - Socket.io - Issue with “maximum concurrent connections”
  • Java Socket Reuse
  • Write JSON data from front-end to back-end in nodejs
  • Socket.io takes a long time before triggering the disconnect event
  • Why don't we register broadcast receiver for BOOT_COMPLETED events
  • How WinForm and uwp communicate in two directions
  • Erlang raise number of opened sockets, MacOS and CentOs
  • Including data files with setup.py
  • Creating new docker-machine instance always fails validating certs using openstack driver
  • Is it possible to disable esc/F11 key during full screen mode of webpage, programmatically?
  • How do `pass` and `listen` work in WriterT?
  • Merge Module leaving files during uninstall
  • Installing Perl6 and Panda on Ubuntu 15.10. Problems with bootstrap.pl
  • Problems installing Yesod for Haskell
  • Unable to install Git-core+svn by MacPorts
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • Meteor: Do Something On Email Verification Confirmation
  • ilmerge with a PFX file
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • Where to put my custom functions in Wordpress?
  • Can I make an Android app that runs a web view in Chrome 39?
  • RestKit - RKRequestDelegate does not exist
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • WPF Applying a trigger on binding failure
  • python regex in pyparsing
  • Android Google Maps API OnLocationChanged only called once
  • LevelDB C iterator
  • Linking SubReports Without LinkChild/LinkMaster
  • How can I use threading to 'tick' a timer to be accessed by other threads?