Friday, August 9, 2013

// // Leave a Comment

Install Memcache on CentOS 6 cPanel

Here is how to install Memcache for PHP on a CentOS 6 cPanel / WHM box. Some of the guides suggest that you need libevent (well, you do need libevent), though when I tried it, I already had it installed. But if you need it, yum will sort you out. yum install libevent Next, install memcache itself. Note that the package is called memcached. yum install memcached Of course, just installing it doesn’t mean that the daemon is running. So don’t forget to start it too! /etc/init.d/memcached start Finally, we need to...
Read More

Thursday, August 8, 2013

// // Leave a Comment

Linux: HowTo Copy a Folder [ Command Line Option ]

I'm a new Linux user. How do I copy a directory or folder under Linux operating system using command line options and bash shell?You can use various command to copy a folder under Linux operating systems. cp Command cp is a Linux command for copying files and directories. The syntax is as follows:   cp source destination cp dir1 dir2 cp -option source destination cp -option1 -option2 source destination   In this example...
Read More
// // Leave a Comment

[CPanel] Auto fix for file permissions and ownership

suPHP and FastCGI require files and folders to have a specific set of permissions/ownership from other handlers. Without these permissions set you will see a lot of errors such as: “403 Forbidden”, “500 Internal Server Error”, or simply generic errors that commonly have the word ‘permission’ in them. It can be very time consuming to track down and check file permissions across a whole server. Luckily, fixing this on a cPanel box can be scripted. This gives us a quick and very easy script you can wget to any cPanel server....
Read More