12 December 2022
How to create cPanel backup from command line
This article explains how you can create cPanel backup from the command line, using your own username and password.
Hello, all This is a start up tutorial for newbie only. Today I will try to show a small tutorial about new VPS setup with WordPress.
1st you need a vps with Root access . (no need any control panel)
STEP 1: INSTALL REMI/EPEL REPOSITORY
Use one of below commands as per your OS version and system architecture. CentOS/RHEL 6, 32 Bit:
CentOS/RHEL 6, 64 Bit:
CentOS/RHEL 5, 32 Bit:
CentOS/RHEL 5, 64 Bit:
STEP 2: INSTALL APACHE
After adding EPEL and Remi repository in vps. Lets use following command to install latest available Apache package.
yum --enablerepo=remi install httpd
After installing Apache, start Apache service using following command and enable auto start on system reboot.
service httpd start chkconfig httpd on
STEP 3: INSTALL MYSQL
Lets install MySQL server and client using yum package manager with following command.
yum --enablerepo=remi install mysql mysql-server
After installing MysQL server packages, start the service and execute following command for applying initial security.
service mysqld start
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here.
Enter current password for root (enter for none): OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL root user without the proper authorization.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success!
By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.
Remove anonymous users? [Y/n] y ... Success!
Disallow root login remotely? [Y/n] y ... Success!
By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.
Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success!
Reloading the privilege tables will ensure that all changes made so far will take effect immediately.
Reload privilege tables now? [Y/n] y ... Success!
All done! If you've completed all of the above steps, your MySQL installation should now be secure.
Thanks for using MySQL!
STEP 4: INSTALL PHP
After comleting installation of Apache and MySQL finally we need to install PHP. Use the following command to install latest PHP version.
yum --enablerepo=remi install php php-common
Also install required PHP libraries used for your application, Few of useful libraries are listed below.
yum --enablerepo=remi install php-common php-cli php-mysql php-devel
STEP 5: START SERVICES
Finally start Apache and MySQL services using following commands and setup them to auto start on system boot.
service httpd restart chkconfig httpd on service mysqld restart chkconfig mysqld on
STEP 6: DOWNLOAD WORDPRESS
Download WordPress archive file using wget command
cd /var/www/html wget http://wordpress.org/latest.tar.gz
Extract archive in document root of you domain and update permissions on files.
tar xzf latest.tar.gz chown -R apache.apache wordpress chmod -R 755 wordpress
STEP 7: CREATE MYSQL DATABASE AND USER
After extracting code we need to create a mysql database and user account for configuring WordPress. Use following set of command to do it
mysql -u root -p Enter password:
mysql> CREATE DATABASE wordpress;
mysql> GRANT ALL ON wordpress.* to 'wordpress'@'localhost' IDENTIFIED BY 'secret_password';
mysql> FLUSH PRIVILEGES; mysql> quit
STEP 8: CONFIGURE APACHE VIRTUALHOST
Edit apache configuration file and add a new virtual host for WordPress setup like below.
Add following setting at end of file
ServerAdmin [email protected]
CustomLog logs/wordpress.yourdomain.com-access_log combined
Reload Apache service to read configuration file again.
service httpd reload
STEP 9: FINISH INSTALLATION USING WEB INSTALLER
WordPress provides an web installer for easy to setup WordPress without editing files manually. After completing above steps just point your browser to your domain.Open URL in Browser and Click on Create a configuration file. That’s all !!
Create, collaborate, and turn your ideas into incredible products with the definitive platform for digital design.
11 November 2021
To transfer your domain with us then must need EPP Code.
11 November 2021
If you want better account security, you should set up Two-Factor Authentication. With 2-Step Verification, you’ll pro