We can install wordpress in our domain in two ways . Either as main site ie in public_html or as an sub website inside a directory in the public_html..difference between then is just about uncompromising the tar file in public_html directory or in a sub directory . For doing that in either way all the steps are same .
First we need to download the tar file and we need to uncompress it in the needed directory .
cd /<path-to-document-root>/public_html
wget http://wordpress.org/latest.tar.gz
now decompress the file
tar -xvzf latest.tar.gz
change the privilage of the folder by
chmod -R 777 *
noramally to make it the main site we copy the tar file and extract the tar file in same public_html directroy so that it can be accessed like
http://your-domain-name
To make it a sub website first we need to make a direcotry with any name inside the public_html and untar the tar file into that it can be accessed by
http://your-domain-name/<name-we-give>
Second thing we need is a database which we can create through the cpanel or through the shell .when creating the databse user throug the cpanel we need to create a database first and later a user and we need to give full permission to that user over that database. All this can be done through
cpanel>>Home>>Mysql databse …Or
by following commands in the shell .To do it through shell we need to get into our server/vps through ssh and run the following command.Normally the databases will be named as username_databasename . And user of that database as username_name.
mysql
CREATE USER USER_NAME IDENTIFIED BY PASSWORD
CREATE DATABASE DATABASE_NAME;
GRAND ALL ON DATABASE_NAME TO USER_NAME;
FLUSH PRIVILEGES;
EXIT;
GRANT ALL PRIVILEGES ON db_base.* TO db_user @'%' IDENTIFIED BY 'db_passwd';
Now go to browser and type “http://your-domain-name/” or “ http://your-domain-name/<name-we-give>” to get the auto install configuration file of the wordpress.There we will be asked for following and we need to fill in the needed details..Remember to give correct database name and user name leave the rest of options as it is
database: database_name
username:user_name
password:password
host:localhost:
and click next
If all things ends correctly it will be done and you will get the welcome page
Tuesday, November 13, 2012
Wednesday, November 7, 2012
Creating the Cpanel account with WHM
Log into your WHMIn the left menu under "Account Functions", click "Create a New Account"
Fill in the details for the new account. Here's a brief outline of the settings you'll be putting in:
After you have filled in all of the details above, click the "Create" button at the bottom of the page.
Congratulations, you have just created a new cPanel account!
Fill in the details for the new account. Here's a brief outline of the settings you'll be putting in:
- Domain Information
- Enter the main domain name on the account, set a cPanel username and password for it, and then enter the email address to be associated with the account.
- Package
- WHM allows you to create packages, which make it easier to manage cPanel accounts. For Example, you may have a "Power Plan" package like InMotion Hosting offers. Within that package you could set limits such as the number of addon domains to associate to the account. If you don't have any packages set, select the "Select Options Manually" option and set those limitations now.
- Settings
- Choose the cPanel theme to assign the user (InMotion Hosting currently uses x3) and select the appropriate language for the user.
- Reseller Settings
- If you have the access to create a cPanel account, it means that you have reseller permissions. Decide here if this new account you're creating should have WHM access and be able to create accounts themselves.
- DNS Settings
- Decide how the domain's nameservers should be configured on the server. If the nameservers specified for this domain name are going to be on another server, choose the option "Use the nameservers specified at the Domain's Regsitrar"
- Mail Routing Settings
- Decide how the server handles email for this specific domain. For example, should it attempt to deliver the email locally or should it look at the external MX records and decide? It's recommended to use "Automatically Detect Configuration" if you're not sure about this setting
- .
After you have filled in all of the details above, click the "Create" button at the bottom of the page.
Congratulations, you have just created a new cPanel account!
Tuesday, November 6, 2012
Installing cPanel manually
In order to install cpanel/WHM on your VPS , you will need to log into your server as root first.
ssh root@server-ip
In above server-ip should be your server's ip. We should install cpanel/whm only in a fresh system ,configured with a proper yum or apt-get system .
From a windows machine we can use putty to log into the server ...
Minimum Requirements as per cpanel's original site
To obtain a list of
You should make sure these
To remove a
You should disable SELinux after installing Red Hat Enterprise Linux, CentOS, or CloudLinux. To disable SELinux, you can either:
If you disable SELinux from the command line, the contents of
If you are installing a CentOS, Red Hat Enterprise Linux, CloudLinux operating system, you should deactivate the default firewall and check for updates.
To deactivate the firewall, run the commands:
To check for updates, run the command:
change the hostname of the VPS to a valid hostname like "server.domain.com".
The installation of cPanel can take a long time and it is better if you install "screen". Depending on your operating system you can install screen running yum or apt-get (yum install screen or apt-get install screen).
Now you will want to download and install cPanel:
screen -S cpanel
cd /home
wget http://layer1.cpanel.net/latest
sh latest
ctrl -A-D ...to detach from screen
screen -ls will list the screens
If you get disconnected, you can ssh back into your server as root, and run:
screen -r cpanel
After everything is complete, and there are no errors, you should be able to access the WHM control panel by visiting
https://your_ip:2087
ssh root@server-ip
In above server-ip should be your server's ip. We should install cpanel/whm only in a fresh system ,configured with a proper yum or apt-get system .
From a windows machine we can use putty to log into the server ...
Minimum Requirements as per cpanel's original site
Processor | 266 MHz |
Memory | 512 MB RAM (1 GB recommended when hosting many accounts) |
Disk Space | 10 GB hard disk |
Removing YUM groups
To obtain a list of
yum
groups, run the command:yum grouplist
You should make sure these
yum
groups are not installed:- FTP Server
- GNOME Desktop Environment
- KDE (K Desktop Environment)
- Mail Server
- Mono
- Web Server
- X Window System
To remove a
yum
group, run the command yum groupremove
. For example, if you wish to remove Mono
and Mail Server
, enter:yum groupremove "Mono" "Mail Server"
Disabling SELinux security features
You should disable SELinux after installing Red Hat Enterprise Linux, CentOS, or CloudLinux. To disable SELinux, you can either:
- Use the graphical interface while configuring your operating system, or
- Edit
/etc/selinux/config
from the command line and set theSELINUX
parameter todisabled
using a text editor, such as nano or vi.
If you disable SELinux from the command line, the contents of
/etc/selinux/config
should resemble:# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
Deactivating default firewall and checking for updates
If you are installing a CentOS, Red Hat Enterprise Linux, CloudLinux operating system, you should deactivate the default firewall and check for updates.
To deactivate the firewall, run the commands:
chkconfig iptables off
service iptables stop
To check for updates, run the command:
yum update
change the hostname of the VPS to a valid hostname like "server.domain.com".
Installing cpanel
The installation of cPanel can take a long time and it is better if you install "screen". Depending on your operating system you can install screen running yum or apt-get (yum install screen or apt-get install screen).
Now you will want to download and install cPanel:
screen -S cpanel
cd /home
wget http://layer1.cpanel.net/latest
sh latest
ctrl -A-D ...to detach from screen
screen -ls will list the screens
If you get disconnected, you can ssh back into your server as root, and run:
screen -r cpanel
After everything is complete, and there are no errors, you should be able to access the WHM control panel by visiting
https://your_ip:2087
Subscribe to:
Posts (Atom)