Archive for the ‘LAMP’ Category

23
Jan

/home/virtfs/Cpanelusername

Posted by Marslert

Today, I’m going to share my experience related to title.

Above path is actually the Jailshell configuration path created by WHM when a Cpanel user was granted with shell access.

Note : Do not delete any data inside /home/virtfs/Cpanelusername as it can screw up your Cpanel server.

Reason : The /home/virtfs/ is created for user with Jailshell. Virtfs is hardlinked to some system files. By delete the data inside /home/virtfs/, you delete the actual system file they’re linked to. This is going to be bad and screw up your system file and delete other important data such as Mysql database. So, beware on this.
Shall you need to remove any shell access from any cpanel user, just navigate to WHM >> Manage Shell Access and disable Jailed Shell for users.

For your information, when we check the disk size for /home/virtfs/Cpanelusername. You will see some disk size. Imagine if there is few more cpanel user granted with Jailshell, there will few more directories create at /home/virtfs/. You will find there is more disk space after du -sh those directories. But don’t worry as it will not consume your actual server diskspace. Some advice which is /home/virtfs need to excluded from backup system.

Additionally, always be careful when run command ‘rm -rf *’. It will delete all the file with option of recursive and force. Need more information, visit here.

Hope this sharing could help someone to avoid causing error.

07
Aug

Apache 2.2.4 Installation

Posted by Marslert

This is after many months I learn install Apache at my Vmware machine under WinXp. As my recent migrate to Ubuntu, I do install Apache for my learning usage. A bit confuse when choose which version to install. But since my comp plan to migrate Apache 1.x to 2.x, I straight away download the latest release and install.

However, there will never have one time success installation for a beginner. LOL. Hence, there got few starting erros encounter with the solving steps I locate.

Got this when compile apache,

configure: error: Cannot use an external APR-util with the bundled APR

which can resolve by below configure

# ./configure –enable-so –with-included-apr
# make
# make install
or
# ./configure –prefix=/usr/local/apache2 –enable-so –with-included-apr

Use command to start apache:

# /usr/local/apache2/bin/apachectl start

Remember to edit ServerName under /usr/local/apache2/conf/httpd.conf else below error will display when start apache:

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

Then, verify by browse http://localhost/ or http://127.0.0.1/.

*** Drop me any comment if there is any step left and best configure setting to recommend.