If you want to reduce the memory and cpu consumption of Apache.
Add the below parameter,
RLimitNPROC 40
To prevent apach being overwritten run the below command,
/usr/local/cpanel/bin/apache_conf_distiller –update
Now you are done.
If you want to reduce the memory and cpu consumption of Apache.
Add the below parameter,
RLimitNPROC 40
To prevent apach being overwritten run the below command,
/usr/local/cpanel/bin/apache_conf_distiller –update
Now you are done.
If you want to enable SSI in cpanel server using .htaccess use the below rule,
Options +Includes
AddType text/html .shtm
AddHandler server-parsed .shtml
if you get the error ” error: PIX_FMT_RGBA32 undeclared”
cd ffmpeg-php-0.x.0
vi ffmpeg_frame.c
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
press esc key
:wq
now type
make clean
make distclean
./configure
make && make install
now all is done and ffmpeg is installed .
Make sure you add extension=ffmpeg.so in php.ini
restart httpd
Check in phpinfo page and ffmeg is shown.
While installing if you get an error
“Failed to download pear/HTTP_OAuth within preferred state “stable”, latest release is version 0.1.18, stability “alpha”, use “channel://pear.php.net/HTTP_OAuth-0.1.18″ to install
install failed ”
Use the below command to install it successfully.
pear install HTTP_OAuth-alpha
You will get below results,
root@hillock [~]# pear install HTTP_OAuth-alpha
Did not download optional dependencies: pecl/pecl_http, use –alldeps to download automatically
pear/HTTP_OAuth can optionally use package “pecl/pecl_http” (version >= 1.6.0)
pear/HTTP_Request2 can optionally use PHP extension “fileinfo”
downloading HTTP_OAuth-0.1.18.tgz …
Starting to download HTTP_OAuth-0.1.18.tgz (51,237 bytes)
………….done: 51,237 bytes
downloading HTTP_Request2-0.5.2.tgz …
Starting to download HTTP_Request2-0.5.2.tgz (58,159 bytes)
…done: 58,159 bytes
downloading Net_URL2-0.3.1.tgz …
Starting to download Net_URL2-0.3.1.tgz (8,488 bytes)
…done: 8,488 bytes
install ok: channel://pear.php.net/Net_URL2-0.3.1
install ok: channel://pear.php.net/HTTP_Request2-0.5.2
install ok: channel://pear.php.net/HTTP_OAuth-0.1.18