Archive

Archive for the ‘Cpanel Basics’ Category

Cpanel backup problem.

February 15th, 2010

/scripts/cpbackup is taking only one account backup and giving a log message backup is completed.

Problem is there might be a file called /etc/cpbackup-skip.conf which has all users to skip the backup.

check and remove the file, so that backup will start run for all users.

Cpanel Basics

aff_check_security() error in blogs

October 6th, 2009

I found the solution of “aff_check_security() error” , generally this error comes with blog.

Whenever you get the error like
======================================================

Fatal error: Cannot redeclare aff_check_security() (previously declared in /home/nodepo79/public_html/poker-affiliates-online.com/affconfig.php:61) in /home/nodepo79/public_html/poker-affiliates-online.com/affconfig.php on line 59
======================================================

You go to blog directory of that domain where the client install the blog.
Open the file “affiliate.php” and make the changes as below:-
================================================
change

Code:
include “affconfig.php”;

To

Code:
include_once “affconfig.php”;
================================================
after that you check the url . It will work.

Cpanel Basics

LITE SPEED COMPARED TO APACHE WEB SERVER

September 17th, 2009

Advantages of using lite speed compared to apache:
===========================

1. Lite speed is 6 times faster than Apache.
2. When it comes to dynamic content, LiteSpeed is more than 50% faster in PHP content delivery than Apache with mod_php

3. Increases PHP performance and security while doubling server capacity.

4. Efficient CGI daemon

5. High performance Perl daemon

6. SECURE

* Strictest HTTP request validation
* Deny any buffer-overrun attempts
* Anti-DDoS: Throttling & Connection Accounting
* System overloading prevention
* Chroot web server process
* CGI/FCGI/LSAPI/PHP suEXEC
7.RELIABLE

* Watch Dog monitoring
* Recover from service failure instantly
* Zero down time graceful restart
8.SCALABLE

* Small memory footprint
* Thousands of concurrent connections
* Increase scalability of external web applications

9.LiteSpeed support a wide set of server API and scripting languages.

* CGI/1.1
* FastCGI
* LSAPI (LiteSpeed SAPI)
* JSP/Servlet via AJP 1.3
* Transparent Reverse Proxy (interface to any web server, application server support HTTP)
* PHP with 3rd party PHP Accelerators compatibilities (APC, eAccelerator, XCache).
* Perl/Python (CGI, FastCGI)
* Ruby/Roby on Rails
* C/C++ (CGI, FastCGI, LSAPI)
So, for shared hosting or vps hosting environment better to go for lite speed web server.

Cpanel Basics

How To Increase Maximum Emails per hour for a Domain

August 11th, 2009

We can increase the max emails per hour limit for a specific domain

vi /var/cpanel/maxemails
yourdomain.com=200

:wq (save & Quit)

Replace yourdomain.com with your own domain name.
Then run
/scripts/build_maxemails_config

Cpanel Basics

Blank Page On a Roundcube

August 11th, 2009
If Roundcube gives a blank page or any error please try the
below steps for a resolution.

Try following command
/usr/local/cpanel/bin/update-roundcube --force

if that did not help, make sure that

/usr/local/cpanel/3rdparty/bin/php and
/usr/local/cpanel/3rdparty/bin/php-cgi executable. otherwise do,

chmod 755 /usr/local/cpanel/3rdparty/bin/php-cgi
chmod 755 /usr/local/cpanel/3rdparty/bin/php
/scripts/makecpphp

if it is some database error, make sure that /tmp/mysql.sock is present.
If no, create symbolic link

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

Cpanel Basics

apache manually installation

April 13th, 2009

Hi,

Manually installation:

1. Download the latest Apache source distribution from www.apache.org

2. Unpack the source distribution.
The source distribution comes as a compressed archive. Let’s say that we are
installing Apache 1.3.12 (apache_1.3.12.tar.gz). Uncompress and untar the
archive with the following command:

$ tar -zxvf apache_1.3.12.tar.gz

This will create a directory named apache_1.3.12 in your current working
directory. We’ll call this the Apache source directory.

3. RTFM. RTFM. RTFM. Please read the README file in the Apache source
directory.

4. Configuring your environment to compile Apache.

The source distribution comes with a script called configure, which checks
your environment for the necessary support files (like headers, shared
libraries and utility programs) that are required to successfully compile
Apache. To configure, change directory to the Apache source directory and type

$ ./configure –prefix=/usr/local/apache

The prefix argument indicates where we wish to install Apache. This command
will output several lines on the screen. Essentially this command creates the
Makefiles for the build according to your system configuration. If there are
errors in configure, you may be missing some header files or utility programs
which you must install before proceeding.

5. Compile Apache.
Once configure runs successfully you can compile Apache using the make command

$ make

This will output several lines on the screen indicating that it is compiling
and linking Apache. This should normally conclude with no errors, however if
any errors occur, they will usually be caused due to missing utility programs
or libraries. The Apache FAQ has some pointers if you get stuck
(http://www.apache.org/docs/misc/FAQ.html)

6. Install Apache
Apache installs itself in /usr/local/apache by issuing the command

$ make install

If this concludes successfully your system now has Apache installed. You
should see Apache’s installation files in /usr/local/apache and the main
configuration file in /usr/local/apache/conf called httpd.conf

7. Configure Apache
Apache is configured through a single file /usr/local/apache/conf/httpd.conf.
This file consists of a number of Apache Directives, which determine the
various operating parameters of the Apache server. For purposes of a simple
installation, you will need to modify only a few directives described below

DocumentRoot - This is the location of the directory from which HTML files are
served. You can replace the default by any directory. The directive,

DocumentRoot “/usr/local/apache/htdocs”

instructs Apache to serve files from /usr/local/apache/htdocs. In other words,
when you try and access http://servername/somepage.html in a browser, Apache
will serve the file /usr/local/apache/htdocs/somepage.html.

Directory options - Once the DocumentRoot is defined, you must instruct Apache
how to serve and handle various files found in that directory. This is
achieved by modifying the Directory directive. The Directory directive has
various options such as execution of server side includes, whether to follow
symbolic links from the directory, access control to the directory etc. In our
configuration file, we need not change anything.

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

That’s about it. Apache is now configured for default behavior and web
serving. If there are any other parameters that you need to set, the
configuration file is well commented and pretty much self-explanatory.

8. Starting Apache
Apache comes with a script named apachectl that facilitates starting,
stopping, restarting apache.

$ /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started

To stop apache use /usr/local/apache/bin/apachectl stop

9. Test your installation
Once Apache is running, fire up your web browser and access http://localhost/.
If your installation was successful and Apache is running, you should see a
test page saying something like “If you can see this, it means that the
installation of the Apache web server software on this system was successful”.

CONGRATULATIONS! You now have a successful installation of Apache running on your system!

Cpanel Basics

roundcube Error No. [0×01F4]

February 6th, 2009

SERVICE CURRENTLY NOT AVAILABLE!
Error No. [0×01F4]

In order to solve that, you have to modify the following file:
/usr/local/cpanel/base/3rdparty/roundcube/program/include/rcube_mdb2.inc

change
return “FROM_UNIXTIME($timestamp)”;
to
return sprintf(”FROM_UNIXTIME(%d)”, $timestamp);

Cpanel Basics

How To Disable mod_security2 for a domain

February 6th, 2009

We can disable mod security for a domain, add following lines to virtual host entry.

vi /usr/local/apache/conf/httpd.conf

find the domain virtualhost entry and add

<IfModule mod_security2.c>

SecRuleEngine off

</IfModule>

save and exit

service httpd restart

Cpanel Basics

About: cPanel And Plesk

December 18th, 2008