1.Ubuntu環境中安裝LAMP組件
系統->系統管理->新立得軟件包管理器, 打開新立得,編輯 –> 使用任務分組標記軟件包 –> 勾選 LAMP Server。
2.安裝phpmyadmin
系統->系統管理->新立得軟件包管理器,打開新立得搜索phpmyadmin,標記安裝。
3.mysql的啓動:mysql -u root -p,然後根據提示,輸入password即可。
4.重啓apache
sudo /etc/init.d/apache2 restart
如果出現:
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
繼續sudo gedit /etc/apache2/apache2.conf
在文件後面加上:ServerName 127.0.0.1
使用 http://localhost/phpmyadmin可以使用phpmyadmin進行管理。
我在安裝php的商店系統的時候,提示缺少gdlib,在ubuntu中是php5-gd,在新利得中即可找到。