sudo apt-get update
sudo apt-get install apache2 php5-mysql mysql-server libapache2-mod-php5 php5-mcrypt
This will install and configure the LAMP stack (Linux Apache MySQL and PHP) on your Ubuntu Desktop/Server. During installation MySQL will ask for root password. Do not leave it empty, you should provide a password. After the installation your web server with PHP and MySQL is up and running. Type
http://localhost/
on you web browser to see your web server homepage. Your web server home directory will be
/var/www
by default.
http://localhost/
on you web browser to see your web server homepage. Your web server home directory will be
/var/www
by default.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.