Plesk: Difference between revisions

From Cheatsheet
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:


'''Dumping Databases in Plesk'''
'''Dumping Databases in Plesk'''
  mysqldump <domain name>
  mysqldump -u admin -p database > .sql

Revision as of 19:36, 29 November 2010

Plesk


Location of the vhost in plesk

/var/www/vhosts/HoudiniESQ.com/conf

Turn off Safe_mode in plesk
NOTE-dont forget to replace <domain name>, with the actual domain name.
Create a “vhost.conf” file in “/var/www/vhosts/<domain name>/conf/”

cd /var/www/vhosts/<domain name>/conf/
vim vhost.conf

Insert the following into it.

<Directory /var/www/vhosts/<domain name>/httpdocs>
php_admin_value safe_mode off
php_admin_value open_basedir none
</Directory>

Now run the following to update the conf.

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domain name>

Now restart httpd

service httpd reload

Dumping Databases in Plesk

mysqldump -u admin -p database > .sql