Fix PHP Fatal error: Cannot redeclare “function name” (previously declared in…

The fatal error above will appear if your code contains two or more PHP functions that have the exact same name.

PHP Fatal error:  Cannot redeclare function_name() (previously declared in /path/to/ in   /path/to/ on line 73

Check if the function name has already been used.

If you find yourself in a situation where the function name may or may not exist, then you can check to see if the name of the function has already been defined.

function function_name(){
     //do something
     function function_name(){
         //do something

In the code snippet above, I used the function_exists function to check if function_name already exists as a function. Because it does exist in the example above, the second function is never created.

networking Uncategorized

Cannot Map NAS in Windows 10 Pro x64

I have purchased a D-link DNS 321, and after several hours of trying I could not map the NAS as a drive nor access it using NFS

Objective: use NAS as network file server.

Go to Programs and Features in Windows 10 Control Panel. Click Turn Windows features on or off link.
Scroll down to SMB 1.0/CIFS File Sharing Support and check all of the features. Click OK.
Once all of the installation is done, click Restart now.
In Windows Explorer go to Network => Storage (or whatever your NAS’ name is) and you will be presented with all the Volumes available.

CURL ERROR: SSL certificate problem: self signed certificate in certificate chain (

Recently there was a spike in customers that reported their sites credit card processing errors which, according to log files resulted in the following error produced:

CURL ERROR: SSL certificate problem: self signed certificate in certificate chain


Testing (oneliner):

echo | openssl s_client -connect -showcerts -verify 10 -CAfile /home/path/to/cert.pem

Make sure to replace “/home/path/to/cert.pem” with the real path. If all is good you’ll get something like this at the end:

Verify return code: 0 (ok)

Otherwise you’ll see:

Verify return code: 19 (self signed certificate in certificate chain)
hosting webhosting

Hsphere file paths

Socket file: /var/lib/mysql/mysql.sock
Database file: /var/lib/mysql
mysql password file: /var/lib/mysql/.my.cnf
Error log: /var/log/mysql/error.log


Proftpd is default with hsphere.

Configuration file: /hsphere/shared/config/ftpd/proftpd.conf
Log file: /hsphere/local/var/proftpd/xferlog


linux webhosting

How to restart Linux services

Starting Services


/etc/rc.d/init.d/ start


/usr/local/etc/rc.d/ start

Stopping Services