freebsd7.0下安装mysql,apache,php,phpmyadmin记录
在AddType application/x-gzip .gz .tgz后面加上下面3行: #php supportAddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
随后设置网站默认启动页允许为index.php。同样在httpd.conf里编辑,不必退出。找到
DirectoryIndex index.html index.html.var
添加index.php进去,为:
DirectoryIndex index.php index.html index.html.var
还有其它设置,根据需要自行处理
最后:
在/etc/rc.conf
添加:
apache22_enable = "YES"
这样服务器启动时,apache就会启动
要注意的:
(在FreeBSD下使用ports安装apache22会出现类似的warming:
No such file or directory: Failed to enable the 'httpready' Accept Filter
解决方法是:
#kldload accf_http
页:
[1]