Pages

Bài đăng phổ biến

Sunday, December 25, 2011

[solved] Directadmin : Error opening ../data/default_pref

You must update squirrelmail:

cd /usr/local/directadmin/custombuild
./build update
./build squirrelmail

if that doesnt fix it then just try:

touch /var/www/html/squirrelmail/data/default_pref
chown apacheuser:apacheuser /var/www/html/squirrelmail/data/default_pref
chmod 600 /var/www/html/squirrelmail/data/default_pref

replace apacheuser as the actual user your webserver runs as.

(To install custombuild you have to do:

cd /usr/local/directadmin
wget "http://files.directadmin.com/services/custombuild/1.1/custombuild.tar.gz"
tar xvzf custombuild.tar.gz
cd custombuild
)

Directadmin

Friday, December 23, 2011

Thursday, December 22, 2011

[solved] Xenserver : The device name autodetect is invalid

At a nice day when you reboot your vps it return this error:
The device name autodetect is invalid

I solved this problem by copy file vhd  (/var/run/sr-mount/... ) of vps had problem to another xenserver at folder in /var/run/sr-mount/xxx-xxx that you see it have much space ,
   (if you want to know uuid of vhd of vps just type this cmd: xe vdi-list .).


On xenserver that you want to copy file vhd to ,you just create a vps same type with old vps on old xenserver but don't start,after you create a vps xenserver will create a .vhd file on /var/run/sr-mount/... you just copy file .vhd  on vps has problem to dir that file .vhd of new Vps created and rename this file to same name with file .vhd that New Vps created ,that's all.
Good luck

Nguyen Si Nhan