Cette publication est également disponible en :
Français (French)
-
Presentation
cPanel is a Linux-based control panel. With a graphical interface that automates settings, cPanel simplifies website hosting. cPanel has 3 main functions, providing access to different levels of use, such as administration and simple website configuration. All these aspects are controlled from a simple web browser.
Security
Set up password-protected directories, rejected IP addresses, SSL / TLS, and configure GnuPG keys to restrict access. Protect your site with HotLink protection, Leech protection and ModSecurity.
Domains
Set up sub-domains, addon domains, alias domains (Parked Domains), and redirect visitors directly to the right directory. Identify your site with Simple DNS Zone Editor and edit advanced DNS zones.
Apps Galore
Take advantage of third-party software for blogs, bulletin boards, guest books, e-commerce and more, to build a dynamic, robust site.
Files
Edit and save files and folders while monitoring your website’s disk space usage.
Databases
Store large amounts of data and limit access using MySQL and PostgreSQL databases.
Logs
Know your audience and track your website’s performance using Webalizer and AWStats.
Cpanel is available exclusively for Linux servers running the :
– Redhat.
– CentOS
– CloudLinux
-
- General
Can you eat Cpanel?
As described above, it’s a graphical interface that makes managing your website as easy as possible.
Here’s what a Cpanel interface looks like:
Theme 1: Paper_lantern

Or there’s another theme for your Cpanel interface.
Don’t panic, it’s all a matter of habit:
Theme 2: x3

In the following explanations, I’ll base myself on the Paper_lantern theme, which I find clearer.
you can click and drag menus to highlight the most frequently used ones.
-
- Files



Pixlr is a small, high-performance online Photoshop image editor.







-
- Databases




Wildcard hosts are authorized
-
Domains


an alias domain can be redirected to a specific folder in the same way as a sub-domain.



If you have declared a sub-domain or alias domain, select the desired domain or sub-domain.
-
- Emails

A domain name without MXs will never receive mail!


Once generated find it below the same window:

Here is a link explaining the PGP principle https://sebnet.org/data/prez/crypto_pgp.pdf
-
- Metric








-
Security

Many modern operating systems, such as Mac® OS X and Linux distributions, include SSH and Telnet. If you’re using Microsoft Windows® to connect to your server, you’ll need to use an SSH client, such as PuTTY, to connect to your server.



When deactivating HotLink, make sure you allow external links to all necessary domains. For example, the sub-domains of your website and the URL you use to access your Panel Account.
If the URL you use to access your Panel Account is not in the list of URLs to which you wish to grant access, you will not be able to view the images embedded in theHTML editor in the File Manager interface(Home >> Files>>File Manager).

-
- Software
If you are having problems with the way your server handles PHP packages, it may be useful to consult the PHP configuration information. Use the PHP configuration interface to view some of the most commonly mentioned configuration options.
You cannot use this interface to change the configuration of your PHP server. To change the way PHP is configured on your server.
| Language Options | asp_tags | Allow ASP-style tags. | Off |
| File Uploads | file_uploads | Whether to allow HTTP file uploads. | We |
| Paths and Directories | include_path | Windows: “\path1;\path2″ c:\php\includes” | .:/usr/lib/php:/usr/local/lib/php |
| Resource Limits | max_execution_time | 30 | |
| Resource Limits | max_input_time | 60 | |
| Resource Limits | memory_limit | 128M | |
| Data Handling | register_globals | You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. | Off |
| Language Options | safe_mode | Off | |
| File Uploads | upload_max_filesize | Maximum allowed size for uploaded files. | 64M |
| hand | session.save_path | Argument passed to save_handler. In the case of files, this is the path where data files are stored. Note: Windows users have to change this variable in order to use PHP’s session functions. As of PHP 4.0.1, you can define the path as: session.save_path = “N;/path” where N is an integer. Instead of storing all the session files in /path, what this will do is use subdirectories N-levels deep, and store the session data in those directories. This is useful if you or your OS have problems with lots of files in one directory, and is a more efficient layout for servers that handle lots of sessions. NOTE 1: PHP will not create this directory structure automatically. You can use the script in the ext/session dir for that purpose. NOTE 2: See the section on garbage collection below if you choose to use subdirectories for session storage | /tmp |

To search for and add PEAR packages to your website, click on PHP packages PEAR in your cPanel interface. You can display all available PHP packages, search for a specific type of package, or, if you know its name, add a package immediately.






-
- Advanced

Be careful when scheduling cron jobs. Scheduling them at too short intervals can slow down your server/hosting.

Using the index manager, you can define how a specific indexed directory will appear to those accessing it. You can also disable indexing, if you don’t want the contents of a directory to be visible.

You can configure Apache to handle a new file type with an existing handler by manually adding the handler and extension to cPanel. For example, to have files with the extension “.example” treated by the server as CGI files, you’d type “cgi-script” under Handler and “.example” under Extension (s).



Basic error pages are provided automatically by the server. However, cPanel allows you to define custom error pages for any HTTP code.

For further information on Cpanel, please consult our online documentation:
Domains
Security