Archive for the ‘Apache/Httpd’ Category

You can install ffmpeg through a script. http://sourceforge.net/projects/ffmpeginstall/

Servertechs#cd /usr/local/src

Servertechs#wget http://sourceforge.net/projects/ffmpeginstall/files/ffmpeginstall.3.x/ffmpeginstall.3.2.1/ffmpeginstall.3.2.1.tar.gz/download
Servertechs#tar -xvzf ffmpeginstall.3.2.1.tar.gz
Servertechs#cd ffmpeginstall.3.2.1
Servertechs#./install.sh

Hello,

It has been noticed that bandwidth suddenly shows double for sub-domains or on addon domain in cPanel. There seems to a bug in cPanel latest update with 11.25 release 43472 or fewer version.  cPanel has fixed it in the new realease which is release 43473. Just update cPanel with following command.

/scripts/upcp –force

There is also patch available if update does not fix it.

/scripts/autorepair repair_bwsummary

Whenever you compose email and click send, it just never sends the message. A circle keeps rotating at the top saying Sending.

Solution is:

Login to server with root user and made following changes.

vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

and serach for following line

$rcmail_config[‘smtp_user’] = ‘%u';
Replace it with
$rcmail_config[‘smtp_user’] = ”;

After installing web calender from fantastico, you will get the following error.

Error

Cache error: Could not write file /tmp/d16090f5de830d7675276b6523ce3f59.dat.

Solution is:

Edit settings.php file which you will find under includes folder.

Search for
db_cachedir: /tmp
and replace it with following
db_cachedir: /home/user/public_html/tmp

Save the file then create tmp folder under public_html and assign 777 permission.

That is all

cheers.

After installing PHPList from fantastico, You will get Internal server Error while trying to get in to PhpList Admin.

You will get that error when you have SUEXEC server and it does not allow php parameters in .htaccess file. Normally during phplist installation, it does create .htaccess file with following line in it.

php_flag magic_quotes_gpc on

Just comment the above line and you will not receive internal server error.

Following are the steps to install xpdf , libXp and antiword on Linux (Centos or Redhat 32 Bit ) server

cd /usr/local/src/

Dowload following RPM’s files under the /usr/local/src/ directrory.

wget http://mit.edu/zacheiss/dev/rhlinux/redhat-7.1-updates/SRPMS/xpdf-0.92-4.71.0.src.rpm

wget ftp://ftp.univie.ac.at/systems/linux/fedora/core/6/i386/os/Fedora/RPMS/libXp-1.0.0-8.i386.rpm

wget http://dag.wieers.com/rpm/packages/antiword/antiword-0.37-3.el5.rf.i386.rpm

rpm -ivh antiword-0.37-3.el5.rf.i386.rpm

or

http://dag.wieers.com/rpm/packages/antiword/?N=A

Then

rpm -ivh xpdf-0.92-4.71.0.src.rpm

rpm -ivh libXp-1.0.0-8.i386.rpm

Then you can check it

root@server [/usr/local/src]# which xpdf
/usr/local/bin/xpdf
root@server [/usr/local/src]# which antiword
/usr/bin/antiword

Done

To install Mail::SPF , Just run following single command and it will instakll MAIL:: SPF

perl -MCPAN -e "get('Mail::SPF')" && cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf && tar -xzvf Mail-SPF-v2.007.tar.gz && cd Mail-SPF-v2.007 && perl Build.PL && ./Build && ./Build test && ./Build install && /scripts/checkperlmodules --full

You can also run following commands. It is a break up of above command.

# perl -MCPAN -e "get('Mail::SPF')"
# cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf
# tar -xzvf Mail-SPF-v2.007.tar.gz
# cd Mail-SPF-v2.007
# perl Build.PL
# ./Build
# ./Build test
# ./Build install
# /scripts/checkperlmodules --full

You are getting following error when you run /scripts/fixcommomproblems

Que this message

Code:

Processing mailman
/bin/pwd: failed to stat `.’: Permission denied
Processing zarautzi
/bin/pwd: failed to stat `.’: Permission denied
Processing alphaele
/bin/pwd: failed to stat `.’: Permission denied
Processing transjus
/bin/pwd: failed to stat `.’: Permission denied

You will receive above error because SUID is not set for /bin/pwd. Just run following command to fix the issue.

chmod u+s /bin/pwd

You are done

To enable private PHP error logging, First disable PHP errors. To do it, add following lines into .htaccess file.

# Disable php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off

Once you disable errors, Add following lines in to .htaccess file in order to enable private PHP error logging.

php_flag log_errors on
php_value error_log /home/user/public_html/php_errors.log

change the permission of php_errors.log file to 777 or 755 using following line.

chmod 755 /home/user/public_html/php_errors.log

or

chmod 777 /home/user/public_html/php_errors.log

Now your PHP errors will logged in to /home/user/public_html/php_errors.log file.


To hide PHP errors from your webiste, You will have to first check that your server is SUEXEC or not. If it is SUEXEC enabled server then you can create php.ini file and add follwing lines in to it.

display_startup_errors off
display_errors off
html_errors off

Or if you have server root access then you can copy server php.ini file to the document root and make above changes. To find out the path of server php.ini , just run following command on shell.

root@server [~]# /usr/local/cpanel/bin/rebuild_phpconf –current

Output is:

Available handlers: dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled

If the server is not SUEXEC then you can add following lines in to .htaccess file to disable PHP errors.

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off