Linux

How to Install Zend and Ioncube in cPanel

Login as root (in SSH), and run the following:

/scripts/phpextensionmgr install IonCubeLoader
/scripts/phpextensionmgr install Zendopt

How to Permanently Decrypt an Encyrpted VI File

Say you accidently encrypted a file and want to decrypt it permanently. Or you have an encrypted file and you want to decrypt it permanently. The process is easier than you think.

1.) vim -x filename 2.) Enter passphrase 3.) While in VI, type “:X” (without the quotes) and hit enter More >

Cannot Connect to Host “hostname”

When trying to run an application using X11 on a host, and getting “Cannot connect to host “hostname”", you should try using

ssh host -X

This enabled X11 forwarding, even if you have it enabled by default, still try it. If it doesn’t work, try

ssh host -Y

The error is caused More >

How to Reset MySQL Root Password

As always, let’s login to the server with root privileges.

Now, stop the Mysql daemon:

service mysqld stop

Then, run:

mysqld_safe --skip-grant-tables

This will start MySQLd in Safe mode and skip the grant tables, which is where the passwords are stored.

Now, you should be able to login as root into MySQLd without being prompted for More >

How to add an FTP user

This article will teach you how to add an FTP user, using ProFTPD

A running theme with most of the tutorials I write here is you need to login with a user who has root privileges (i.e. Sudo), so lets do so.

Now, add a user as you normally would:

adduser username

Set a More >