Howto: Install PDFlib-Lite and PDFlib on Centos server

To install PDFlib on Centos server, you may follow the guide below,

1. Download the PDFlib-Lite package,

cd /usr/local/src 

2. Extract and go to PDFlib-Lite folder,

tar -zxvf PDFlib-Lite-7-* 
cd PDFlib-Lite-7.0*

3. Configure PDFlib-Lite,

./configure --prefix=/usr/local

4. Create installation file and install it,

make install

5. Once PDFlib-Lite installed, download PDFlib with PECL,

pecl download pdflib

6. Extract and enter the folder,

tar xvzf pdflib-*.tgz 
cd pdflib-*

7. Create configuration file,


8. Configure, create configuration file and install PDFlib,

make install

9. A will be created in your PHP extension folder, check it from PHP info,

php -i | grep extension_dir

10. If it is not exists, add the following line to the php.ini,


Server Error – IO error on server communication

Today, I was discovered an error when access to Cold Fusion Administrator. This error namely Server Error – IO error on server communication on each of the upload bar.

After looking around from the server, it is found out the error related to the Cold Fusion RDS is disabled causing the problem. To overcome the problem simply enable the RDS from Cold Fusion configuration file.

Assume you are using Windows, to enable RDS from Cold Fusion,
1. Go to cf_root\wwwroot\WEB-INF\ directory where cf_root should be your Cold Fusion installed directory.
2. Backup the web.xml file.
3. Find the following code and uncomment this block,

<!-- begin RDS
    <servlet id="coldfusion_servlet_8789">
        <display-name>RDS Servlet</display-name>
        <init-param id="InitParam_103401311065856789">
 end RDS -->

4. Find another block and uncomment it,

<!-- begin RDS
    <servlet-mapping id="coldfusion_mapping_9">
end RDS -->

5.Restart the Cold Fusion services.

Install and configure AWStats on Centos

Assume that you have Apache installed and it is working, you want to apply AWStats to your Centos server.

1. Install AWStats with yum.
yum install awstats
2. Edit the file named /etc/httpd/conf.d/awstats.conf with line below,

Alias /awstats/icon/ /var/www/awstats/icon/

ScriptAlias /awstats/ /var/www/awstats/

        Options ExecCGI
        order deny,allow
        allow from all

Alias /awstatsclasses "/var/www/awstats/lib/"
Alias /awstats-icon/ "/var/www/awstats/icon/"
Alias /awstatscss "/var/www/awstats/examples/css"

3. Edit the following line from /etc/awstats/awstats.localhost.localdomain.conf.


4.Rename the configuration file to the correct one,
mv /etc/awstats/awstats.localhost.localdomain.conf /etc/awstats/
5. Update the statistic,
/usr/bin/ now -confdir=”/etc” -awstatsprog=”/var/www/awstats/”

Blocked External Update Services request from WordPress

By default, WordPress allowed us to apply the update services where this services will notify external link on the update of your blog.

Somehow, if you do not want to update these update service to be updated, you may disable it from the WordPress configuration file in wp-config.php file.

To done it, simply add the following code to your wp-config.php file as code below.

define('WP_HTTP_BLOCK_EXTERNAL', true);

cPanel Fantastico not able to install any apps

Today I found out that the cPanel do not working well with the Fantastico DeLuxe and I have no idea what it is going on at first as there do not have any error from the server.

1. Fantastico showing installation configuration file and database with ERROR.
2. No web file in the public_html folder.
3. Database is not configured properly(no table and data).

After long time tested and checked. Finally I am able to get some hint from the cPanel error_log.
PHP Warning:  shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1289814352.9866F8Ane8kVMm on line 979

I have immediate go to php.ini file and check for the disable_function and found out shell_exec and system is being listed.

To overcome it, I have putting a semi-colon “;” to the line of disable_function and restart the Apache HTTPD services and it is working fine.

Backup IIS 7 setting

Backup is very important especially for a productive server. We shall learned to backup everything to avoid any data missing.

For some reason, you might want to change the IIS 7 setting and do not want to mess up the setting in case you have modify any setting incorrectly.

To done this, simply run your command prompt with administrator privilege.

1. Navigate to your Windows button and right click to the command prompt then select on the “Run as administrator”.
2. Run the command line, “%windir%\system32\inetsrv\appcmd add backup mickgenie” without quotation.
3. You should be found the folder C:\Windows\System32\inetsrv\mickgenie\ and your configuration file is stored.

Rename a User’s username in SmarterMail 5.5

By right, you are not able to change the email username from the administrator tool of the Smartermail.

However nothing is impossible from the computer as you may actually change the username through the configuration file.

To change a user’s username from SmarterMail, you may actually change the folder name of the user and configuration file of the SmarterMail to make the username change. To get this done, you MUST be the server administrator that could access to the server back-end.

1. Stop the SmarterMail services.
2. Go to the SmarterMail email folder and usually the default setting will be C:\SmarterMail\Domains\ where is your domain name.
3. Backup the file accountList.xml.
4. Edit the file accountList.xml, change the username to the new username that you want and save it.
5. Go the email user folder and usually the default folder is C:\SmarterMail\Domains\<>\<users> where the is your domain name and users is your username.
6. Change the username folder to your new username.
7. Go into the user folder, backup the file userConfig.xml.
8. Edit the file userConfig.xml and look for the userName tag. (<userName>User</userName>) Save it.
9. Start the SmarterMail services.
10. Done.

enable HTTP Compression

Many of the website did teach how to check HTTP Compression, what Apache module is needed, but there are less guide on how to make it done.

Today, Mick Genie will guide you how to make it done.

Firstly, you may need to compile your Apache with mod_gzip and mod_deflate (Actually Apache 1.x needed mod_gzip and Apache 2.x needed mod_deflate, hence you may compile both of them).

Once done, modify your httpd.conf and assume it is located in /usr/local/apache/conf. Add the following line to the configuration file.

<Location />
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI  \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

Restart the httpd services.

service httpd restart

The above command from httpd.conf will compress all the files except the .gif, .jpe, .jpeg and .png files.

How to disable mod_security for an account

Sometimes, you might want to disable the mod_security applied to the virtual server and you might wonder how to do it.

If you are using Apache with mod_security, it could be done from the configuration file.

However, you have to understand the Apache version and mod_security version that you used.

Normally, a hosted server will use Apache 1.x with mod_security 1.x and Apache 2.x with mod_security 2.x.

To find out the Apache version, you may use the following command.

httpd -v

With mod_security 1.x, you may use the following command from each of the virtual host path and add into the .htaccess file.

Continue reading How to disable mod_security for an account