Some forums need minimum PHP 5.2.x installed on the server and plesk install php 5.1.6 by default. To upgrade PHP version, just login to shell with root access and execute following commands.
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum update php
Saturday, December 26, 2009
Friday, December 25, 2009
Setting up the default index page using .htaccess
If you have 2 index page i.e index.html and index.php and by default web browser is showing index.html and if you want to change it to index.php then you can do that by adding following code in to .htaccess.
DirectoryIndex index.php index.html
DirectoryIndex index.php index.html
Thursday, December 24, 2009
child pid xxx exit signal Segmentation fault (11)
[Thu Dec 24 09:12:03 2009] [notice] child pid 8877 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:38 2009] [notice] child pid 8466 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:38 2009] [notice] child pid 8883 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:39 2009] [notice] child pid 8760 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:47 2009] [notice] child pid 8781 exit signal Segmentation fault (11)
When you get above errors in apache error logs then just make following changes in to httpd.conf
Add following line in main config section:
===========================
CoreDumpDirectory /tmp/apache2-gdb-dump
===========================
Create following folder as well and change the permission
=====================
mkdir -p /tmp/apache2-gdb-dump
chmod 0777 /tmp/apache2-gdb-dump
=====================
[Thu Dec 24 09:12:38 2009] [notice] child pid 8466 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:38 2009] [notice] child pid 8883 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:39 2009] [notice] child pid 8760 exit signal Segmentation fault (11)
[Thu Dec 24 09:12:47 2009] [notice] child pid 8781 exit signal Segmentation fault (11)
When you get above errors in apache error logs then just make following changes in to httpd.conf
Add following line in main config section:
===========================
CoreDumpDirectory /tmp/apache2-gdb-dump
===========================
Create following folder as well and change the permission
=====================
mkdir -p /tmp/apache2-gdb-dump
chmod 0777 /tmp/apache2-gdb-dump
=====================
Sunday, December 13, 2009
Connection refused 111 Can't open SMTP stream
If you are getting following error while sending email from SquirrelMail then just restart Ip tables or stop and start IPtabls. That will fix the issue
=====================================
Connection refused 111 Can't open SMTP stream
=====================================
Command to restart Iptables
=====================================
/etc/init.d/iptables restart
=====================================
Commands to stop and start IPtables
=====================================
/etc/init.d/iptables stop
/etc/init.d/iptables start
=====================================
=====================================
Connection refused 111 Can't open SMTP stream
=====================================
Command to restart Iptables
=====================================
/etc/init.d/iptables restart
=====================================
Commands to stop and start IPtables
=====================================
/etc/init.d/iptables stop
/etc/init.d/iptables start
=====================================
Wednesday, December 2, 2009
cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly
Sometimes phpMyadmin will give you following error.
“cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.”
Make the following changes.
root@server[~]#nano /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
And than change the following values in php.ini file
FROM:
—–
session.save_handler = sqlite
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb
—–
TO
—–
session.save_handler = files
session.save_path = /tmp
Restart cpanel
“cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.”
Make the following changes.
root@server[~]#nano /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
And than change the following values in php.ini file
FROM:
—–
session.save_handler = sqlite
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb
—–
TO
—–
session.save_handler = files
session.save_path = /tmp
Restart cpanel
Subscribe to:
Posts (Atom)