Cloud Server Linux Usage Manual

To help you get started more quickly, here is a complete Linux usage manual.

Table of Contents:
Remote Access
Mount Data Disk
Install Apache
Install MySQL
Install PHP
Install PHPWind
 


—————————————————————————————————————
Using CentOS 5.7 64bit environment as an example
 
 
 
I.     Remote Access

 

Remote ConnectionLinuxCloud Server – Command Line Mode

1. Remote connection tools.
There are many Linux remote connection tools available; you can choose whichever you are comfortable with.
The following example uses a Linux remote connection tool called Putty. This tool is free, requires no installation, and can be easily downloaded online.
 


2. Launch Putty.exe and enter the Putty main interface. Enter the IP address in the Putty “Host Name” field, enter a desired session name in Saved Session (any name works), and click “Save” for easy future access without re-entering the IP address. Click “Open” to connect.
3. On first run, you will see the prompt shown below. Please select “Yes”. This prompt will not appear again on subsequent runs.
4. Follow the prompts to enter your Linux cloud server username and password (please use the root username for the operations in this guide). The password will not be displayed on screen. Press Enter after input.

<br />

II.&nbsp;&nbsp;&nbsp;&nbsp; Mount Data Disk

<br />

The Linux cloud server data disk has not been partitioned or formatted. Follow the steps below to partition and format it. The following operation will partition the data disk into a single partition for use.

1. View the data disk

Before partitioning and formatting the data disk, you cannot see it using the “df –h” command. Use the “fdisk -l” command to view it instead. As shown below:

Friendly reminder:If you executefdisk -lthe command and do not find /dev/xvdb this indicates your cloud server has no data disk, so you do not need to mount one, and this tutorial does not apply to you


2. Partition the data disk
Execute the “fdisk /dev/xvdb” command to partition the data disk.

Follow the prompts and enter “n”, “p”, “1”, press Enter twice, then “wq”. The partition process will begin and complete shortly.


 
3. View the new partition

Use the “fdisk -l” command to confirm that the new partition xvdb1 has been created successfully.


<br /> <br />

4. Format the new partition
CentOS 5.7 has the ext4 module, but it is not loaded by default. If you want to create a file system using ext4, you can load the module first. Use the following commands to complete the module loading process.
 
cd /lib/modules/2.6.18-274.12.1.el5/kernel/fs/ext4
modprobe ext4
yum install e4fsprogs
After loading the ext4 module, use the “mkfs.ext4 /dev/xvdb1” command to format the new partition. Formatting time varies depending on disk size.
5. Add partition information
If you want to mount the new partition to the /var/www directory, use the following command. Note: if the /var/www directory does not exist, first create it by running the command ”mkdir /var/www”.
Use the “echo &#39;/dev/xvdb1 /var/www ext4 defaults 0 0&#39; &gt;&gt; /etc/fstab” command to write the new partition information. Then use “cat /etc/fstab” to verify. The following information indicates successful write.

<br />

6. Mount the new partition
Use the “mount -a” command to mount the new partition, then use “df -h” to verify. The following information indicates successful mounting, and you can start using the new partition.


<br />

III.&nbsp;&nbsp;&nbsp;&nbsp; InstallApache

<br />Useyum install httpdcommand to installApache<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055204702.jpg<br />Run the command chkconfig –levels 235 httpd on to enable Apache auto-start, and run /etc/init.d/httpd start to start Apache immediately<br /> <br />IV.&nbsp;&nbsp;InstallMySQL<br />

 
1. Install the MySQL client using the yum install mysql command

<br />2. Similarly, useyum install mysql-servercommand to installMySQL service.<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055213164.jpg<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055214383.jpg<br /> <br />3. Run the command chkconfig –levels 235 mysqld on to enable MySQL auto-start, and use /etc/init.d/mysqld start to start MySQL immediately<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055215374.jpg<br /> <br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055237351.jpg<br /> <br />4、SetMySQL‘srootpassword by running the command/usr/bin/mysqladmin -u root password &#39;new-password&#39;, where’new-password’is the new password, e.g.123456<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055238707.jpg<br /> <br />V. InstallPHP<br />

1. Install PHP using the yum install php command

<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055242524.jpg<br /> <br />

2. Install php-mysql and other packages to enable PHP MySQL support, as follows: run yum search php to find available PHP module packages, select the required packages, and run yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc to install them (you are not limited to the packages in this example)

<br /> 3. Run /etc/init.d/httpd restart to restart Apache.<br /> <br />

VI. Install phpwind
2. Extract the downloaded package, which generates two directories: docs and upload.
3. Install FTP server on the cloud server. The simple steps are as follows; for detailed steps, please refer to the relevant documentation:
l&nbsp;&nbsp;yum install vsftpd: Install FTP server vsftpd.
l&nbsp;&nbsp;service vsftpd start: Start the vsftpd service.
l&nbsp;&nbsp;vi /etc/vsftpd/vsftpd.conf: Configure vsftpd by removing the comment markers from the following two lines:
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd/chroot_list
l&nbsp;&nbsp;useradd -d /home/edward -p passw0rd edward: Create an FTP user and password.
l&nbsp;&nbsp;vi /etc/vsftpd/chroot_list: Add the created user to the configuration file, one user per line.
l&nbsp;&nbsp;service vsftpd restart: Restart vsftpd.
4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use any FTP client to upload all files from PW’s upload directory to the cloud server’s /var/www/html/ directory in binary mode. Also ensure the following directories or files have read-write permissions
attachment/
attachment/cn_img/
attachment/photo/
attachment/pushpic/
attachment/thumb/
attachment/upload/
attachment/upload/middle/
attachment/upload/small/
attachment/upload/tmp/
attachment/mini/
attachment/mutiupload/
data/
data/bbscache/
data/forums/
data/groupdb/
data/guestcache/
data/tplcache/
data/style/
data/tmp/
html/
html/js/
html/stopic/
html/read/
html/channel/
html/portal/bbsindex/
html/portal/bbsindex/main.htm
html/portal/bbsindex/config.htm
html/portal/bbsindex/index.html
html/portal/bbsradio/
html/portal/bbsradio/main.htm
html/portal/bbsradio/config.htm
html/portal/bbsradio/index.html
html/portal/oindex/
html/portal/oindex/main.htm
html/portal/oindex/config.htm
html/portal/oindex/index.html
html/portal/groupgatherleft/main.htm
html/portal/groupgatherleft/config.htm
html/portal/groupgatherleft/index.html
html/portal/groupgatherright/main.htm
html/portal/groupgatherright/config.htm
html/portal/groupgatherright/index.html
html/portal/userlist/main.htm
html/portal/userlist/config.htm
html/portal/userlist/index.html
html/portal/usermix/main.htm
html/portal/usermix/config.htm
5. html/portal/usermix/index.html Install phpwind. After uploading, run http://cloud-server-IP/install.php to start the installer (e.g.: http://42.1.1.1/install.php)。

 img: https://www.cnop.net/uploadfile/2014/0519/20140519055259300.jpg

<br />

 
6. Click “Accept” to proceed to the environment check page
 
 
7. Click Next and fill in the required information. The MySQL database password is the root user password specified in step 4. Be sure to remember the administrator account and password, as you will need them to manage the backend after installation.
 
8. Click Next to complete the phpwind installation
 
9、After installation, the following page will be displayed
<span id="att_33362" class="f12"><span id="td_att33362" onmouseover="read.open('menu_att33362','td_att33362');" style="display:inl

<br />

10. Move or delete the install.php file from the cloud server’s /var/www/html directory to ensure normal access to the phpwind frontend and backend pages.

<br /> <br />11. You can access the website frontend homepage directly using the cloud server IP or a registered domain name.<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055334258.jpg<br />12. Log in using the administrator account and password set during phpwind installation, and click System Settings to enter the backend management interface<br /> <br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055334258.jpg<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055342321.jpg<br /> img: https://www.cnop.net/uploadfile/2014/0519/20140519055352491.jpg

Leave a Comment

Your email address will not be published.