Solutionist's Blog

Tech | Health | Life | Travel

How Do I Parse HTML Pages As PHP?

You can tell apache to treat your .html pages as .php pages by adding the following line of code to your .htaccess file: AddHandler application/x-httpd-php5 .php .htm .html  The above code will parse your .html pages using php5, if you would like to use php4 instead, please use the line of code below: AddHandler application/x-httpd-php4 […]

update centos 5.7 to centos 5.9

Update centos 5.5, 5.6 , 5.7  or 5.8 to 5.9   STEP 1 :   BACKUP everything if something go wrong   Step 2: Update with YUM update   first clean all, second update glibc, yum, rpm and python packages and then update other packages like following: yum clean all yum update glibc* yum* rpm* python* yum update   Step […]

How to Install Zpanel in Centos 5

The following are the steps to install CentOS 5.5+ 1. Download the source from the following Url using the command: #wget https://xsdou.googlecode.com/files/zpanel-6.1.1.tar.gz 2. Create a directory as below: #mkdir /etc/zpanel 3. Extract the source to /etc/zpanel: #tar -zxvf zpanel-6.1.1.tar.gz -C /etc/zpanel/ 4. Change mod using the following command: #chmod +x /etc/zpanel/lib/dev/zpinstall_centos.sh 5. Finally, run the following […]

How to Install PHP mbstring extension

On my redhat based server, I installed the PHP mbstring extension as: Connect the repository: wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh   yum –enablerepo=webtatic install php-mbstring /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]    

[solved] [fixed] Unable to load dynamic library ‘/usr/lib/php5/20090626/suhosin.so’

Reason why it happen: php5-suhosin depends on an obsolete version of phpapi-20090626+lfs so php5-suhosin is removed during the upgrade… but the PHP config snippet /etc/php5/conf.d/suhosin.ini isn’t purged… so PHP still try to load the module suhosin.so.   to fix this STEP 1 Connect the repository: wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh   STEP 2 […]

Install and setup mysql centos redhat

How to install MySQL Install MySQL yum install mysql-server mysql php-mysql How to configure MySQL Set the MySQL service to start on boot chkconfig –levels 235 mysqld on Start the MySQL service service mysqld start Log into MySQL mysql -u root Set the root user password for all local domains SET PASSWORD FOR ‘root’@’localhost’ = […]

Teach spamAssasin – amavis that a message is SPAM

Spamassassin is a powerful antispam tool. However, it consumes a lot of processing power, so a good idea is to install amavis. This is a lightweight Perl script that pre-scans emails and rejects many of them based on rules that you set up within the Amaviz configuration file. NOTE: This page won’t attempt to teach you how […]

DD command examples

Example 1. Backup Entire Harddisk To backup an entire copy of a hard disk to another hard disk connected to the same system, execute the dd command as shown below. In this dd command example, the UNIX device name of the source hard disk is /dev/hda, and device name of the target hard disk is […]

Resize partition in Centos

Resizing a Partition Warning Do not attempt to resize a partition on a device that is in use. Before resizing a partition, boot into rescue mode (or unmount any partitions on the device and turn off any swap space on the device). Start parted, where /dev/sda is the device on which to resize the partition: parted /dev/sda […]

Secured By miniOrange