Feeds:
Posts
Comments

Archive for the ‘Php’ Category

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 [...]

Read Full Post »

Installing memcached

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 [...]

Read Full Post »

Install CURL

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.

Read Full Post »

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 [...]

Read Full Post »

PHP upgrade in WHM?

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 [...]

Read Full Post »

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 [...]

Read Full Post »

Securing PHP

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 [...]

Read Full Post »

Error:cPanel internal PHP

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

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.