sudo apt-get update
sudo apt-get install apache2
curl http://localhost
install MySql
apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
mysql_install_db
/usr/bin/mysql_secure_installation
install PHP
apt-get install php5 libapache2-mod-php5 php5-mcryp
sudo nano /etc/apache2/mods-enabled/dir.conf
<?php phpinfo(); ?>
from: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
How to Find your Server’s IP address
You can run the following command to reveal your server’s IP address.
ifconfig eth0 | grep inet | awk '{ print $2 }'
沒有留言:
張貼留言