To upgrade to PHP 5.2.x on CentOS/RHEL/Fedora: Step 1) Set up the atomic channel as follows: wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh Step 2) To upgrade to PHP 5.2.x: yum update php Step 3) Then you can replace the PHP 4 php.ini with PHP 5.2.x’s (if applicable): mv /etc/php.ini.rpmnew /etc/php.ini Step 4) Replace the [...]
Archive for the ‘Php’ Category
HOW To upgrade to PHP 5.2.x on CentOS/RHEL/Fedoraedora
Posted in MIGRATION, Php, PLESK on October 11, 2009 | Leave a Comment »
Installing memcached
Posted in INSTALLATION, Php on October 4, 2009 | Leave a Comment »
One of the dependencies of memcache is libevent, so firstly download the source files for Libevent. wget http://www.monkey.org/~provos/libevent-1.3b.tar.gz tar -xvf libevent-1.3b.tar.gz cd libevent-1.3b ./configure;make;make install; Download the latest Memcached source code from danga.com wget http://danga.com/memcached/dist/memcached-1.2.1.tar.gz gunzip memcached-1.2.1.tar.gz tar -xvf memcached-1.2.1.tar cd memcached-1.2.1 ./configure;make;make install; Often libevent.so cannot be found when executing memcache. A useful command [...]
Install CURL
Posted in INSTALLATION, Php on January 10, 2009 | Leave a Comment »
Instructions to install CURL: ================== 1. cd /usr/local/src 2. wget http://curl.haxx.se/download/curl-7.19.0.tar.gz 3. tar zxf curl-7.19.0.tar.gz 4. cd curl-7.19.0 5. ./configure –prefix=/usr/local –with-ssl=/usr/include/openssl 6. make 7. make install CURL should now be installed.
Apache2 mod_fastcgi: Connect to External PHP via UNIX Socket or TCP/IP Port:
Posted in Apache, Articles, INSTALLATION, LINUX, Php on January 4, 2009 | Leave a Comment »
Apache2 mod_fastcgi: Connect to External PHP via UNIX Socket or TCP/IP Port ============================================== Required utilities: ======================= You can spawn FastCGI processes using a dispatcher script or using spawn-fcgi utility, which is used to spawn remote FastCGI processes. spawn-fcgi included with lighttpd web server. You can grab source code from lighttpd.net or simply install it using [...]
PHP upgrade in WHM?
Posted in Cpanel, Php on January 1, 2009 | Leave a Comment »
By default cPanel comes with PHP 4.4.x, upgrade to PHP 5.x is a simple and straight forward process – just go to WHM >> Software >> Apache Update, select required PHP version and additional options (if needed), uncheck the “Skip Apache Build if up to date” option and click “Start Build” button. This whole procedure [...]
Enable GD in PHP applications?
Posted in Cpanel, INSTALLATION, Php on January 1, 2009 | Leave a Comment »
In default cPanel/WHM installation GD support in PHP is disabled. You can enable using the following simple steps: 1. Login to WHM as root; 2. Go to WHM >> Main >> Software >> Apache Update 3. Click on the “Load Previous Config” button (if exists); 4. Select “GD” option and any other PHP option you [...]
Securing PHP
Posted in LINUX, Php, SECURITY, VPS on January 1, 2009 | Leave a Comment »
First off you want to figure out how you can edit php.ini This is the main configuration file for PHP. You can find it by logging into shell and typing in the following: # php -i |grep php.ini –Turn on safe_mode Safe mode is an easy way to lock down the security and functions you [...]
Error:cPanel internal PHP
Posted in Cpanel, Php, SERVICES on December 31, 2008 | Leave a Comment »
Symptoms: ======= Internal cPanel/WHM pages are returning blank pages or index.php for download. This can happen among other places in where cPanel internal PHP is used: * Horde * Squirrelmail * Fantastico * phpMyAdmin Fix: == /scripts/makecpphp
How to upgrade to PHP5.x and Apache 2.X in DA
Posted in DIRECTADMIN, Php, tagged DIRECTADMIN on July 2, 2008 | Leave a Comment »
http://www.directadmin.com/forum/showthread.php?s=78bb4e8b8b5deb41fdc7275bb87a051a&threadid=13173&perpage=20&pagenumber=1 http://www.directadmin.com/forum/showthread.php?s=70864a5c335e7705f268e661e0a6d78f&threadid=14285 cd /usr/local/directadmin/customapache rm -fr build wget http://files.directadmin.com/services/customapache/build chmod 755 build ./build update ./build clean ./build update_data_ap2 perl -pi -e ‘s/2.0.59/2.2.6/’ build or manually change any reference to old version to new (this is best way, above will get outdated) #vi ./build change APACHE and PHP references according to the version downloaded below. wget [...]
How to override open_basedir settings in Plesk…
Posted in Php, PLESK, tagged PLESK on July 2, 2008 | Leave a Comment »
Plesk will overwrite any httpd.conf settings unless you include them in… /home/httpd/vhosts/DOMAIN/conf/vhost.conf basically, the instruction everywhere on the web on how to modify the open_basedir for plesk, so it won’t overwrite it, were all wrong… here’s the instruction from the Plesk website: http://kb.parallels.com/en/432 <Directory /home/httpd/vhosts/DOMAIN/httpdocs> php_admin_value open_basedir “/home/httpd/vhosts/DOMAIN/httpdocs:/tmp:/usr/bin:/usr/local/bin” </Directory> this didn’t work because the the [...]