|
||||||||||
|
|
configure: error: libpng.(a|so) not found.April 26, 2008 on 2:53 pm | In Installation, PHP | 1 Commentcd /usr/local/src ./configure configure: error: libjpeg.(a|so) not foundApril 26, 2008 on 2:48 pm | In PHP | No Comments=============================== If everything went fine do =============================== If it is not present =============================== Continue with PHP compilation up2date PHP yum php , Source Install tipsApril 26, 2008 on 2:41 pm | In PHP | No CommentsIn RHEL 4 You can update PHP using ———————————————- In RHEL 5 and CentOs ———————————————- Only if you are unable to proceed with the above installation or if you need a specific version of PHP you should go for source compilation. Note: you can upgrade PHP with the help of /scripts/easyapache in Cpanel server. Before trying the source installation, please note this is for advanced users and those who have good knowledge in installation. Source Installation cd /usr/local/src/ Download the Complete source from the link http://www.php.net/downloads.php wget http://us.php.net/get/php-5.2.5.tar.gz/from/this/mirror ./configure (options) —————-> options are given like eg: –with-mysql=/usr/ However, this is just for your knowledge . You will not be able to install it you are a newbee…. CubeCart InstallationApril 25, 2008 on 2:25 pm | In Cpanel, CubeCart, Installation, Plesk | No CommentsBefore going for an install check whether you meet the requirements Create a subdirectory in which you need to install the CubeCart # Download the source code from their site at : http://www.cubecart.com/site/home/ Once the form is complete they will provide a config file named ‘global.inc.php’ and an SQL database dump. Now you can access the shopping cart at: http://domain.com/business The configuration file for cubecart is ‘global.inc.php’. Advanced Suhosin ConfigurationApril 25, 2008 on 1:49 pm | In PHP | No CommentsManual configuration for Suhosin in php.ini ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [suhosin] ; Executor Options ; Misc Options ; Transparent Encryption Options suhosin.session.encrypt = On ; Filtering Options suhosin.filter.action = 406 How to Install Suhosin. Cpanel Plesk Direct Admin etc…April 25, 2008 on 9:02 am | In Installation, PHP | No CommentsWhat is Suhosin? Suhosin is a protective covering for PHP. Lets move with ordered steps. First is the raw patch where you need to recompile PHP in shell to work. This adds low level protection against things like buffer overflows and format string vulnerabilities. We will deal with the installation of the extension. Installing Suhosin The final check is applied if you are using Zend Optimizer. Make sure you are using at least version 3.2.1 or above of Zend Optimizer. If you are using anything below that there is a known bug in Zend Optimizer that gets caught up in Suhosin while reading zend encoded pages. So be sure to upgrade Optimizer to a more recent release before you install Suhosin to avoid issues. If you have it installed you’ll see something like: #php -v with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.0.1, Copyright (c) 1998-2006, by Zend Technologies Suhosin works fine on cPanel/WHM servers, DirectAdmin, Plesk and any others. Installing Suhosin Extension Download the source file for the Suhosin extension ============================ Output for “make install” will be something like this: Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ ls –lah /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ Now copy suhosin.so to /usr/lib/php/extensions since our php.ini points to that directory and not the one the make install used ============================ Checking PHP Now we need to check PHP to ensure suhosin will be added in. ============================ Configuration File (php.ini) Path => /usr/local/Zend/etc/php.ini Edit the php.ini vi /usr/local/Zend/etc/php.ini Ensure the include path/extension is set properly. Search for: extension_dir You should see something like this: ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; include_path = “.:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/extensions:/usr/lib/php/extensions/no-debug-non-zts-20020429:” ; extension_dir = /usr/lib/php/extensions/no-debug-non-zts-20020429/ ; directory in which the loadable extensions (modules) reside Note the exact path is the same as what we wrote down when we did “make install” Add the suhosin.so extension to php.ini /Dynamic Extensions You should see: ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; Add this below: ============================ Note to 64 bit OS users: ============================ Then copy the suhosin.so to that directory after you do “make install” ============================ End 64 Bit OS note: Now save php.ini and check PHP from shell: php -v PHP 4.4.6 (cli) (built: Mar 19 2007 09:54:33) Copyright (c) 1997-2007 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP Project with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies NOTE if checking using phpinfo.php page make SURE you RESTART the apache web server: service httpd restart /etc/rc.d/ini.d/httpd restart Thats all Crontab error Cpanel serverApril 24, 2008 on 2:28 pm | In Cpanel | 1 CommentThe crons are not even listed with WHM or Cpanel. The root user as well as the Cpanel users will not be able to access the cron. This is mainly due to a permission issue of cron binary. Hence chmod it to 755. ====================== Unable to load iptables module (ipt_state), aborting. APF ErrorApril 24, 2008 on 1:09 pm | In APF, Linux | No Commentsroot@server[/etc/apf]# apf -s Here is the fix Edit /etc/apf/internals/functions.apf vi /etc/apf/internals/functions.apf Replace the lines ==================== With ==================== Restart apf. yum.conf for Centos 4.6April 24, 2008 on 9:11 am | In Centos, Linux | No CommentsHere is the yum.conf entry for Centos 4.6. Copy all the lines below. ############################ [main] # PUT YOUR REPOS HERE OR IN separate files named file.repo ############################ Here is the repo for Centos 4.4. CentOS-Base.repo # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #released updates [update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 XCache Installation Linux CpanelApril 24, 2008 on 9:07 am | In Apache, Cpanel, Installation, PHP | No Comments1) Download ============================== Find the php.ini file. php -i| grep php.ini Edit the php.ini file Add the line below. zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so Note the line proper path “/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ ” is received at the end of make install. Replace with that path. Go for Apache restart Check your PHP info page « Previous Page — Next Page » |
![]() Powered and designed by Presoon.com. |