Install PHP5 and Apache on Ubuntu
sudo apt-get install apache2
(Note that if apache is already installed you can omit the first line. Your web files will now be found in /var/www/)
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
(這會讓/etc/apache2/mods-enabled 新增php5的link)
sudo apt-get install mysql
sudo apt-get install php5-mysql
sudo /etc/init.d/apache2 restart
沒有留言:
張貼留言