Getting an error message about open_base_dir

If you’re trying to run an application or function and get an open_base_dir error message, open your vhost.conf file and put this code in there:

<Directory /var/www/vhosts/yourdomainname/httpdocs>
php_admin_value open_basedir none
</Directory>

<Directory /var/www/vhosts/yourdomainname/httpdocs>

php_admin_value open_basedir none

</Directory>

The vhost.conf file is usually here:/var/www/vhosts/yourdomainname.com/conf/

Then run the following command:

/usr/local/psa/admin/bin/websrvmng -a -v

and finally reload the web server:

/etc/init.d/httpd reload

How To Do A MYSQL Database Backup Using SSH

If you’re using Magento, you know how big your MYSQL database can be. We have one on one website that is almost 200M, and that’s not really a big website at this time. PHPMYADMIN will not export a database that big, so you’re going to have to use SSH (Telnet).

  1. Using SSH, login to your server under the primary IP address. Use you super user password. Change directory to where you want to store the backup of your MYSQL database.
  2. Once there, type in: mysqldump -u DatabaseUserName -p DatabaseName > backupfilenameyouwant.sql (put in your own values for the database)
  3. Hit return.
  4. You will be prompted for your database password, go ahead and type that in.
  5. Hit return. Give it a few seconds and then you can FTP to your directory where you were and should see your Magento Database backup.

This Address No Longer Accepts Mail

Our company offers hosting, we currently have around 50 websites on our server. 3 of our customers have elected to have their email hosted on another server to help reduce spam. After changing the DNS settings for those 3 domains, we began getting failure messages when trying to send email from other domains on our server. Turns out it was a qmail issue.

Here is an example of the failure messages we were getting:

Hi. This is the qmail-send program at ip-xx.xx.xx.xxx .ip.secureserver.net.
I’m afraid I wasn’t able to deliver your message to the following addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.

Then the email address of the recipient was followed by this line:

This address no longer accepts mail.

After googling the error, we were able to come up with a solution. Turns out, you have to remove the domains in two files and restart qmail.

To resolve the problem you have to remove the domain from /var/qmail/control/rcpthosts and /var/qmail/control/virtualdomains.

After that you have to restart the qmail by /etc/init.d/qmail restart

It worked for us!