Solution :
http://admin.webhostingdevelopment.com/viewtopic.php?f=9&t=108&p=122#p122
Solution :
http://admin.webhostingdevelopment.com/viewtopic.php?f=9&t=108&p=122#p122
Solution :
http://admin.webhostingdevelopment.com/viewtopic.php?f=9&t=98
SOLUTION :
http://admin.webhostingdevelopment.com/viewtopic.php?f=9&t=4&p=4&hilit=IfModule+mod_suphp.c#p4
warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
Solution :
Open the appropriate file that is giving the error
On top before the first function add :
date_default_timezone_set(‘UTC’);
date_default_timezone_set(‘America/Los_Angeles’);
date.timezone=”America/New_York” — > works
ERROR while trying to run php -v or php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xsl.so' - /lib/libgcrypt.so.11: undefined symbol: gpg_err_code_from_syserror in Unknown on line 0
SOLUTION :
Update package : libgpg-error-1.4-2.el4.art.i386.rpm and libgpg-error-devel-1.4-2.el4.art.i386.rpm
You can download the rpms from : http://www6.atomicorp.com/channels/atomic/centos/4/i386/RPMS/
cd /root/
wget downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
mkdir /usr/local/ioncube/
cp ioncube_loader_lin_5.2.so /usr/local/ioncube/
For php 5.3.X make sure the 5.3.so file is copied in the above step.
How to disable suhosin per account or per directory
Edit php.ini and insert
suhosin.simulation = On
Since litespeed is using the same conf file as apache ( httpd.conf )
Edit the httpd.conf and under the VirtualHost entry for the specific domain, in last line add the following :
=================================
php_admin_value allow_url_fopen On
php_admin_value allow_url_include On
=================================
wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh
[ yum update php* --exclude=php*5.3* ]
cd /usr/local/src/
wget http://framework.zend.com/releases/ZendFramework-1.11.4/ZendFramework-1.11.4.tar.gz
tar -xzvf ZendFramework-1.11.4.tar.gz
cd ZendFramework-1.11.4
cp -ar /usr/local/lib/php.ini /usr/local/lib/php.ini.bak7
Open vi /usr/local/lib/php.ini
Search for include path (include_path) and add the library folder from the extracted tar file “ZendFramework-1.11.4″
/usr/local/src/ZendFramework-1.11.4/library/
An example line : include_path => .:/usr/lib/php:/usr/local/lib/php:/usr/local/src/ZendFramework-1.11.4/library/
grep include_path /usr/local/lib/php.ini
which php
cp -ar /usr/local/src/ZendFramework-1.11.4/bin/zf.sh /usr/local/bin/
cp -ar /usr/local/src/ZendFramework-1.11.4/bin/zf.php /usr/local/bin/
cd /usr/local/bin/
mv zf.sh zf
[root@server ~]# zf show version
Zend Framework Version: 1.11.4
[root@server ~]#
php my admin gives the following error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation prop
Solution :
vi /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
session.save_path = /tmp
PHP ERROR
php -v
PHP Fatal error: [Zend Optimizer] Zend Optimizer 3.3.3 is incompatible with eAccelerator 0.9.5.3 in Unknown on line 0
Make sure php.ini has the below lines in this order ie. zend_extension=”/usr/local/src/ea/eaccelerator-0.9.5.3/modules/eaccelerator.so” should be above zend_extension =”/usr/local/ioncube/ioncube_loader_lin_5.1.so”.
This should fix the case
===========
zend_extension=”/usr/local/src/ea/eaccelerator-0.9.5.3/modules/eaccelerator.so”
zend_extension =”/usr/local/ioncube/ioncube_loader_lin_5.1.so”
===========
In order to disable mod_security add the following code into the .htaccess file
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn’t needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
/// If it is apache 2 then mod_security will be version2 so in that case use
SecRuleEngine Instead of SecFilterEngine
ie :
=========================================
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecRuleEngine Off
SecFilterScanPOST Off
</IfModule>
====================================
DISABLE MOD_SECURITY on a single domain on mod_security2
vi /usr/local/apache/conf/httpd.conf
Search the virtual hosting such as mickgenie.com, uncommented(remove) the # from line as below.
Include “/usr/local/apache/conf/userdata/std/2/USERNAME/domain.com/*.conf
mkdir -p /usr/local/apache/conf/userdata/std/2/USERNAME/domain.com/
cd /usr/local/apache/conf/userdata/std/2/USERNAME/domain.com/
Then you will need to create a file named bypass_modsec.conf and insert the command as below.
================
=====================
OR
vi /usr/local/apache/conf/httpd.conf
Before the Virtual host entry for the domain ends, add the below code :
=============
=============
Save it and restart the Apache.
When trying to view phpinfo we get the following error :
Warning: phpinfo() has been disabled for security reasons
Solution :
This is because you have disabled phpinfo in your php.ini file. Just remove that entry from disable_functions and this should be fixed.
[root@a24uall public_html]# grep phpinfo /usr/local/lib/php.ini
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, allow_url_fopen, ini_set
[root@a24uall public_html]#