Failed to initialize storage module: files解决

将phpmyadmin从centos移植到bsd下,php从5.2.9升级为了5.2.10,打开phpmyadmin 报错
Failed to initialize storage module: files
网上的解决方法有:
打开你的php.ini文件
找到这一段
Copy code[Session]; Handler used to store/retrieve data.session.save_handler = files
如果你的session.save_handler = user
就有可能出现这个问题
改为files即可
Copy code[Session]; Handler used to store/retrieve data.session.save_handler = files
而我的则是files。怪了。怪异临时目录的问题。取消
;session.save_path = “/tmp”

FreeBSD 下mount ISO

在FB5.0以前是采用vnconfig来实现的, 5.x的版本中改用mdconfig (’md’ stands for ‘memory disks’)。
1、首先确保你的内核配置文件中包含:
代码:device md
一般来说默认的GENERIC配置中已经有该项目了,如果不幸没有,请修改后再重新编译内核。
2、mdconfig的使用:可以从man那里得到足够的信息。对于mount一个iso文件,常见的做法是:
代码:
#mdconfig -a -t vnode -f ./myisofile.iso -u 1
参数 a 表示 attach一个memory disk ; -t vnode表示memory disk type为vnode; -f 表示使用该vn...

apxs: Command not found.

在apache的bin目录运行apxs出错
./apxs: Command not found
# vi apxs
#!/replace/with/path/to/perl/interpreter -w
换成 perl 的位置(我的/usr/bin/perl)
最终变成
#!/usr/bin/perl -w
可以
which perl
查看perl的位置

...

error: previous definition of ap_hack_apr_version_string was here

环境:freebsd 7 x64
编译apache2.2.11在make时出错:
exports.c:1653: error: redefinition of ‘ap_hack_apr_version_string’exports.c:1022: error: previous definition of ‘ap_hack_apr_version_string’ was heremake[2]: *** [exports.lo] Error 1make[2]: Leaving directory `/usr/local/apache2.2.11/server’make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/apache2.2.11/server’make: *** [all-recursive] Error 1
解决办法:
在configure后加上
–with-included-apr
即可
编译通过

...

500 OOPS: vsftpd: cannot locate user specified in ftp_username:ftp

在freebsd下装完vsftpd后,客户端连接出现错误:
500 OOPS: vsftpd: cannot locate user specified in ‘ftp_username’:ftpConnection closed by remote host.
原因:
配置文件在调用默认匿名用户,但是配置文件又没有相关设置。
解决:
取消匿名模式。
在vsftpd.conf 加入
listen=YESbackground=YESlocal_enable=YESwrite_enable=YES
重新启动vsftpd,问题解决。

...
|