Services Plans Sign Up How we work Affiliates Contact us

September 4, 2011

How to enable PPP feature in a VPS/Container

Filed under: Technical Articles — admin @ 9:55 pm

To enable ppp feature for a VPS, first we need to check wether the modules ppp_async and ppp_deflateare loaded in the kernal or not. You can check this by executing the following commands.

# modprobe ppp_async
# modprobe ppp_deflate

or You can list the active modules using the command lsmod.

# lsmod | grep ppp
ppp_deflate 39168 0
zlib_deflate 52760 1 ppp_deflate
ppp_async 45184 0
crc_ccitt 6337 1 ppp_async
ppp_generic 20165 6 ppp_deflate,ppp_async
slhc 30561 1 ppp_generic

Steps to enable PPP feature.
1. # vzctl set VEID –features ppp:on –save
2. # vzctl set VEID –devices c:108:0:rw –save
3. # vzctl exec VEID mknod /dev/ppp c 108 0
4. # vzctl exec VEID chmod 600 /dev/ppp
5. Restart the VPS using the command # vzctl restart VEID

To check PPP module

1. Log into the VPS
# vzctl enter VEID
2. Execute the command
# /usr/sbin/pppd
If PPP module is working, then you should receive a message asking for the password or some garbage charecters. If you see something else, then something is wrong.

AddThis Social Bookmark Button

July 28, 2011

How to install LiteSpeed on a WHM/cPanel Server

Filed under: Technical Articles — admin @ 12:00 am

You can install litespeed on a WHM/Cpanel server by simply following the bellow steps.

1. Log into server via SSH as ‘root’ user.
2. Go to /usr/src
cd /usr/src
3. Download the installation file using wget.
wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
4. chmod 700 lsws_whm_plugin_install.sh
5. sh lsws_whm_plugin_install.sh ( ./lsws_whm_plugin_install.sh)
6. rm -rf lsws_whm_plugin_install.sh
7. Log into WHM. Go to manage pluggins section.
8. Start the installation procedure by clicking on ‘Install LiteSpeed’.
9. This will ask you to enter your license information and admin password. Enter these information and click on ‘Build matching PHP Binary’. (Please do not tick the box to start LiteSpeed immediately).
10. Click on ‘Switch to LiteSpeed’
11. Click on ‘Admin Web Console’ and login
12. Final stages of setup
Go to Configuration > General > Index Files > Edit
You need to set the following and save.
===============================================
Index Files: index.html, index.php, index.php5, index.htm
Auto Index: Yes
Auto Index URI => /_autoindex/default.php
In SSH Type:
ln -sf /usr/local/lib/php/autoindex /usr/local/lsws/share/autoindex
================================================
13. Go to Configuration > Log > Server Log > Edit
Set the following:
===============
Log Level: Info
Debug Level: None
===============
14. Finally click on Actions > Graceful Restart to make these changes permanent.

Now, you have successfully installed Litespeed on WHM/cpanel server.

AddThis Social Bookmark Button

July 27, 2011

How to fix ERROR: Message not sent. Server replied: Connection refused 111 Can’t open SMTP stream

Filed under: Technical Articles — admin @ 11:40 pm

You can fix this by editing exim configuration file.

steps:
1. vi /etc/exim.conf
2. Find the bellow entry
#daemon_smtp_ports = 25 : 587
3. remove the comment
daemon_smtp_ports = 25 : 587
If the port is not mentioned in exim.conf, please add it.

AddThis Social Bookmark Button

July 13, 2011

How to fix error “PHP has encountered an Access Violation at 7D611952″

Filed under: Server Tweaking — admin @ 4:00 am

You can fix this by correcting the PATH in Environment variables.

PATH %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\Intel\DMIX;C:\Program Files\ClarisoftTechnologies\iMonitorPC;C:\Program Files\QuickTime\QTSystem

Change the above line as bellow

PATH C:\php;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\Intel\DMIX;C:\Program Files\ClarisoftTechnologies\iMonitorPC;C:\Program Files\QuickTime\QTSystem

AddThis Social Bookmark Button

June 22, 2011

How to check the server is Suexec

Filed under: Server Security — admin @ 1:26 am

Login into you server with the root login details and run following command
[root@server]# /usr/local/cpanel/bin/rebuild_phpconf –current

If server is Suexec then result would look like
==============
DEFAULT PHP: 5
PHP4 SAPI: suphp
PHP5 SAPI: suphp
SUEXEC: enabled
==============
If you are not sure about Shell then you can also check the SuExec is enabled or not from your WHM. Login into your WHM and in the menu find Configure PHP and SuExec

Check the drop down box for “PHP 4/5 Handler” – and if beside that it says “suPHP” – then the sever is SuExec enabled.

If you don’t have server root login details or WHM access, then you can create a php file under your account from cPanel >> File Manager and change the permissions on that file to 777 and open it in a browser. If it gives 500 Internal Server Error, then most probably running suPHP.

As well as you can also create the phpinfo page under your account from your cPanel >> File manager For ex. phpinfo.php with the following code

After creating phpinfo.php page browse it http://yourdomainname.com/phpinfo.php and if it shows “ “Server API = Apache then server is not running PHP in Suexec mode” and if Server API = CGI the server is running PHP in Suexec mode.

AddThis Social Bookmark Button
« Previous PageNext Page »

Powered by WordPress