Ubuntu下的LAMP(Linux+Apache+MySQL+PHP) 开发环境架设
时间:2022-03-10 17:48
LAMP在业界是一个非常流行的词语,这4个字母分别代表Linux,Apache,MySQL和PHP。LAMP以其高效、灵活的特性已经成为中小企业的首选。
以前介绍一种迅速搭建LAMP的方式。
1 在Ubuntu上打开终端,输入
我的主目录是 /homt/timothy/workspace/web
5 访问http://localhost/test.php 或者 http://127.0.0.1/test.php
如果在页面上出现
Forbidden
You don‘t have permission to access
的字样,则可以查看apache2.conf文件
sudo gedit /etc/apache2/apache2.conf
确保一下配置正确
<Directory /home/timothy/workspace/web>
Options FollowSymLinks
AllowOverride None
</Directory>
Ubuntu下的LAMP(Linux+Apache+MySQL+PHP) 开发环境架设,布布扣,bubuko.com