登入vsftpd 出現 500 OOPS: vsftpd: refusing to run with writable anonymous root 訊息
原來是目錄的權限不對
修正方法:
chown root:root /var/ftp
chmon 755 /var/ftp
登入vsftpd 出現 500 OOPS: vsftpd: refusing to run with writable anonymous root 訊息
原來是目錄的權限不對
修正方法:
chown root:root /var/ftp
chmon 755 /var/ftp
我試了好幾版本,最後試出來的方法非常簡單。
下載這個檔案,然後解壓縮到wiki安裝目錄的extensions下面
http://mediawiki.fckeditor.net/nightly/svn/mediawiki_fckeditor_ext_N.tar.gz
修改配置文件
编辑LocalSettings.php 最後一行加上
require_once( "extensions/FCKeditor/FCKeditor.php" );
---------------------------------------------------------------------------------------------------------
http://www.mediawiki.org/wiki/Extension:FCKeditor_(Official)
這個網頁抓的我就是無法安裝成功,原因不明。
會顯示內部網頁錯誤。
訊息:
Discuz! info: MySQL Query Error
User: admin
Time: 2011-4-24 8:02am
Script: /admincp.php
SQL: SELECT *, f.fid AS fid FROM [Table]forums f
LEFT JOIN [Table]forumfields ff USING (fid)
WHERE f.fid='86'
Error: SELECT command denied to user 'xxxxxxxx'@'localhost' for column 'fid' in table 'f'
Errno.: 1143
解決方法:
应该是数据没有导入完整,UTF8导入是经常出错的,
最好的恢复数据方式是后台备份再后台导入,弱点:耗时~
目录属性在FTP里设置,linux设置成777,如果已经设置了还是不能上传的话,有可能是服务器限制了数据库的一些动作,一般虚拟主机才会这样。
试试先在后台备份一下,提示失败以后去文件目录里看forumdata里面,有一个backup_******的文件夹,把名字复制下来,然后删除此文件夹,再新建一个同名的文件夹,再设置其属性为777。
然后再回discuz后台备份数据,看看能否成功。
反正我是成功了,虽然有点麻烦。
-------------
上面的步驟有些要修正。
(1) ZendOptimizer.so放哪邊都可以,記得/etc/php.ini加入
zend_optimizer.optimization_level=15
zend_extension=/usr/local/webserver/Zend/lib/ZendOptimizer.so
即可
(2)重啟nginx和php-fpm
/etc/ini.d/nginx restart
/etc/ini.d/php-pfm
剛剛碰到了怪事, 在命令列下無法登入 mysql 
ERROR 1045 (28000): Access denied for user '=root'@'localhost' (using password: YES)
系統是 Ubuntu 8.041 server + MySQL
密碼是安裝 Ubuntu 系統時設定的
但是用 phpMyAdmin - 2.11.3deb1ubuntu1 但可以正確登入 @@
不過問題已解決, 解決方式如下..
# service mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[5523]: started
# mysql -u root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
進去了, 再設定一次密碼..
mysql> UPDATE user SET Password=PASSWORD('xxxxxxxxxxxxxxx') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> \q
# service mysqld restart
# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> \q
這樣就可以正常登入了

到Zend下載Zend Optimizer,(下載時要註冊,就填個e-mail就行了,很容易的)
我發現它的安裝方法和網路上分享的不一樣。大概是新的方法有改過。
但是步驟是挺簡單的,如下
1. Extract the Zend Optimizer package.
2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).
2. Add the following line to your php.ini file:
Linux and Mac OS X: zend_extension=<full_path_to_ZendOptimizer.so>
Windows: zend_extension_ts=<full_path_to_ZendOptimizer.dll>
Windows non-thread safe: zend_extension=<full_path_to_ZendOptimizer.dll>
(*) The Windows non-thread safe binary is only used with Zend Core 2.0.
3. Restart your Web server.
這個問題我找了很多方法,最後google出來的第2篇寫的最簡單好用。
錯誤訊息
治療方法
Firstly in your my.cnf remove '--skip-bdb' Try to start it again /etc/init.d/mysqld start it also seems like you have upgraded to a newer version 5.1 so you will need to run mysql_upgrade once the server is running
]FAILED[ :Starting MySQL
. starttoMySQL Daemon failed
mysqld start /d.init/etc/ #
上網找了方法,這一版滿好用的。
vim /etc/yum.repos.d/utterramblings.repo
輸入
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
最後安裝
yum install httpd php