Hello,
For taking backup of you database you have to make sure that you database is good enough. with shell access you can take the database backup in .sql format with following command
#mysqldump user_databasename > database.sql
As you are having database backup and want to restore it then use following command
#mysql user_databasename < database.sql
Hello,
To get the apache version on linux server we have to use following command.
# /usr/local/apache/bin/httpd -v
To get the php version on linux server we have to use following command.
#php -v
you can get the php modules install on server with command #php -m
To get the mysql version on linux server we have to use following command.
#mysql -v
How to install and configure the CSF (configserver) firewall.
CSF can be used on a wide range of Linux systems, including those running cPanel. Following are the steps to install and configure the CSF.
Installation is quite straightforward:
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
If you would like to disable APF+BFD (which you will need to do if you have
them installed otherwise they will conflict horribly):
sh disable_apf_bfd.sh
That’s it. You can then configure csf and lfd in WHM, or edit the files
directly in /etc/csf/*
csf is preconfigured to work on a cPanel server with all the standard cPanel
ports open. It also auto-configures your SSH port if it’s non-standard on
installation.
To configure CSF modify the config files in /etc/csf/ - or if you are running WHM you can modify the CSF settings in WHM itself.
You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS
servers have this disabled and you should check /etc/init.d/syslog and make
sure that any klogd lines are not commented out. If you change the file,
remember to restart syslog.
See the readme.txt file for more information.
Uninstallation
==============
Removing csf and lfd is even more simple:
cd /etc/csf
sh uninstall.sh
For installing the SSL certificate you need to have a dedicated IP Address, and make sure that your domain is registred domain name and resolving perfectly
Step 1: You need to generate CSR (certificate signing request ) from your webhost nameger. which required following information.
———————————–
- Host to make cert for:
- Country(2 letter Abbreviation):
- State:
- City:
- Company Name:
- Company Division:
- Email:
- Password:
———————————–
Also please create webmaster@yourdomain.com (replace yourdomain.com with the domain that you want the SSL certificate to be setup for) and provide us with its password so we can complete the installation process.
After CSR generation you will get the CSR and RSA key
step 2: With the help of RSA key you need to purchase SSL certificate from any of SSL provider such as COMODO ,instant SSL
step 3: Once you got the SSL cerificate then you need to provide that certificate to hosting provider so the hosting provider will install SSL cerificate from WHM >> SSL/TLS >> Install a SSL Certificate and Setup the Domain option.
To stop other sites directly linking to your images and media files and stealing your bandwidth You need to add following code in your .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com(/)?.*$ [NC]
RewriteRule .*.(gif|jpg|jpeg|bmp|wmv)$ http://www.domain.com/image.jpg [R,NC]
Note: replace your website with domain.com