Dedicated Server

Fix “PHP Warning: fsockopen() ” Error in Opencart in cPanel & CSF

If you are using Opencart on a VPS or dedicated server and you have cPanel/WHM with Configserver Firewall (CSF) installed, you may encounter a problem when sending email.

If you check error log, you may see the similar error.

PHP Warning: fsockopen()  [function.fsockopen'>function.fsockopen]: unable to connect to ssl:// (Connection timed out) in /home/XXXX/public_html/ on line 153

You may try the following fix.

1. Logon to WHM & browse to ConfigServer Security & Firewall page.

2. Click on “Firewall Configuration” button

3. Find “SMTP_ALLOWUSER” option.

4. In the field add your cPanel username. If the is multiple username use comma to separate.

5. Click “Change” and Restart Configserver Firewall

This guide may fix other program such as Interspire Email Marketer as well.

Where are Log Files for SSH, FTP, Apache Stored in cPanel/WHM

If you have cPanel/WHM VPS or dedicated server & would like to view all log files, these are the locations

All cpanel related logs are in (mostly similar to apache logs)


Apache logs are in


Individual domain logs are in


POP/IMAP logins are in


FTP Logins are in


SSH Logins are in