作者xunlu (xunlu)
看板FreeBSD
标题Re: [问题] 使用ports方式安装 Apache MySQL PHP FTP
时间Thu Apr 2 11:54:18 2009
※ 引述《xunlu (xunlu)》之铭言:
: ※ 引述《appleboy46 (小恶魔)》之铭言:
: : 修改 httpd.conf,加入
: : AddType application/x-httpd-php .php
: : AddType application/x-httpd-php-source .phps
: : 测试 php,可以利用
: : <?
: : phpinfo();
: : ?>
: : 用网页看看就知道了
: 谢谢您我已经把那两行加上去了
: 用下面样找到档案加上去了..我加在最後面
: xl# find / -name httpd.conf
: /usr/local/etc/apache22/httpd.conf
: /usr/local/share/examples/apache22/httpd.conf
: ^C
: xl# ee /usr/local/etc/apache22/httpd.conf
: 请问您说的php档案是放在哪个目呢?
: 是httpd.conf里面写的ServerRoot "/usr/local"这个吗?
: # Do not add a slash at the end of the directory path. If you point
: # ServerRoot at a non-local disk, be sure to point the LockFile directive
: # at a local disk. If you wish to share the same ServerRoot for multiple
: # httpd daemons, you will need to change at least LockFile and PidFile.
: #
: ServerRoot "/usr/local"
: 还有再请问.哪哪些安全性的东西要设定的吗?
: 目前 appache mysql 与 ftppro服务已经起来了
: php测试档案还在寻找放档案的位置中
: 方便的话proftp目录权限设定..这样子我才能直接把改好的档案传到http的路径下
: 目前安装好能上下传的路径只有登入後该使用者自己的目录@@
各位好我找到路径了
用 xl# find /usr/local/ -name index.html | more
找到
/usr/local/www/apache22/data/
我将phpMyAdmin上传上去
在网址入 http:/IP/phpMyadmin/index.php
出来的是原始码 > <
==============================
更正重开机後可以执行罗~~︿︿
不过有错误讯息
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
无法读取 mcrypt 模组,<br />请检查 PHP 设定
可以劳烦各位指导一下吗
谢谢!!
※ 编辑: xunlu 来自: 220.133.5.175 (04/02 12:01)