我是通过Ubuntu 下的新立得软件源管理器安装了 Apache2+MySQL5+php5,另外自行安装了phpmyadmin 虽然网上有各种配置方法,但是我现在不但无法通过火狐打开PHP,而且连localhost访问现在内容也是空的。网上的配置方法似乎对我的环境不太适合,/etc/apache2/ 目录如下:
apache2.conf envvars magic mods-enabled sites-available
conf.d httpd.conf mods-available ports.conf sites-enabled
有人说要配置httpd.conf,但是我的httpd.conf从一开始就是空空如也,这是怎么回事?虽然自己加进去了
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
然后使用 apache2ctl restart重启服务,依旧未能解决。
还有phpmyadmin,我把它作为一个目录加入到Apache2的sites-available中,昨晚还可以访问可以登录,但是今天就出问题了!
apache2.conf envvars magic mods-enabled sites-available
conf.d httpd.conf mods-available ports.conf sites-enabled
有人说要配置httpd.conf,但是我的httpd.conf从一开始就是空空如也,这是怎么回事?虽然自己加进去了
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
然后使用 apache2ctl restart重启服务,依旧未能解决。
还有phpmyadmin,我把它作为一个目录加入到Apache2的sites-available中,昨晚还可以访问可以登录,但是今天就出问题了!
确认你的PHP放对了路径,这个目录(htdocs)的权限还是很高的,需要sudo提权。
www
apache已经启动,输入 localhost后什么都没有,不提示错误