How to Setup LAMP on Debian/Ubuntu VPS

LAMP  is a webserver software stack common on Linux servers (LAMP stands for Linux – Apache – MySQL – PHP). To install the basic components of a LAMP server on a Debian or Ubuntu VPS, simply access your server via SSH and run the following commands:

# apt-get update

# apt-get install apache2

# apt-get install mysql-server

# apt-get install php5 php-pear php5-suhosin

# apt-get install php5-mysql

Finally, restart Apache, and everything should be functional:

# /etc/init.d/apache2 restart

  • payment
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install and Setup LAMP on CentOS VPS

LAMP (Linux - Apache - MySQL - PHP) is a common webserver software stack for Linux. Installing...

How to Import/Export MySQL Databases with SSH

 export a MySQL database, access your VPS via SSH and run:   # mysqldump -u username -p...

How to Change MySQL Root/User Password

If you have installed MySQL yourself and have never set a root password, you can do so by running...

Powered by WHMCompleteSolution