# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -Ns -e"select s.login, a.password, s.home, s.shell from sys_users s, accounts a where a.id = s.account_id" | awk '' | sh -x Restore Parallels Plesk Panel system users: # rsync -av /old/var/www/vhosts/ /var/www/vhosts/Ĩ. # cp -rpf /old/etc/psa/private/secret_key /etc/psa/private/secret_keyĦ.Alter table IP_Addresses if the set of IP addresses assigned to the new server has changed. # cp /etc/psa/private/secret_key /etc/psa/private/secret_key.save (For Plesk 11.x) Copy encryption key to new server: # cp -rpf /old/etc/psa/.psa.shadow /etc/psa/.psa.shadowĥ. Zcat /old/var/lib/psa/dumps/.0.gz | mysql -uadmin -p`cat /etc/psa/.psa.shadow` Restore the Parallels Plesk Panel database from the available dump: # for f in *.sql do mysql -uadmin -p`cat /etc/psa/.psa.shadow` < $f doneģ. Then stop MySQL, revert datadir parameter in /etc/my.cnf to its original value, start MySQL and restore databases: # mysql -uadmin -p`cat /old/etc/psa/.psa.shadow` -Dpsa -Ns -e"select name from data_bases where type = 'mysql'" | while read dbname do mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` -databases $dbname > $dbname.sql done Start MySQL server with datadir parameter in /etc/my.cnf pointing to MySQL database location on old drive (/old/var/lib/mysql) and dump databases: Important: This step is only possible if version of MySQL server on both original and new servers match. SuPHP_ConfigPath /var/Attach the crashed hard drive as the secondary in the server and mount to /old directoryĢ. phpsĪdd the below lines to nf to activate mod_suphp # Uncomment the following line to allow PHP to pretty-print. # Add index.php to the list of files that will be served as directory # Cause the PHP interpreter to handle files with a. LoadModule php5_module modules/libphp5.so # easy for developers to write dynamically generated webpages. # PHP is an HTML-embedded scripting language which attempts to make it Insert the below lines to /etc/httpd/conf.d/php.conf file # VirtualHost) should be run with the PHP-interpreter or returned to the # This option tells mod_suphp if a PHP-script requested on this server (or LoadModule suphp_module modules/mod_suphp.so Insert the below lines to /etc/httpd/conf.d/mod_nf Check wheter script is within DOCUMENT_ROOT Path to chroot() to before executing script
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |