How to install phpwind on CentOS

Source: Internet
Author: User

How to install phpwind on CentOS
To help you get started faster, add a complete linux User Manual. Directory: remotely access and mount data disks to install Apache install MySQL install PHP install PHPWind
Using CentOS 5.7 64-bit environment as an Example 1. Remote Access to Linux ECs-Command Line Mode 1. Remote Connection Tool. Currently, there are many Linux remote connection tools. You can use them easily. The following is a Linux remote connection tool named Putty. This tool is free of charge and does not require installation. It can be conveniently downloaded online. Putty recommended: http://the.earth.li /~ Sgtatham/putty/latest/x86/putty.exe
2. Start the putty.exe program and enter the main interface of Putty. Enter the IP address in Putty "Host Name", enter the Name you want to Save in the Saved Session (which can be any one), and click "Save". In the future, you can call it conveniently without entering the IP address each time; click "Open" to connect. [Attachment = 53264] 3. A prompt is displayed during the first running. Select "Yes (Y)". The prompt will not appear again during the next running. [Attachment = 53265] 4. Enter your Linux ECs user name and password as prompted (complete this operation with the root user name ). The password is not displayed on the screen. After entering the information, press Enter. [Attachment = 53266]
Ii. Attaching data disks
Linux ECs data disks are not partitioned or formatted. You can perform the following steps to partition and format them. The following operations will divide the data disk into a partition for use. Partition partition 1. Before you partition or format a data disk, you cannot view the data disk by running the "df-h" command, you can run the "fdisk-l" command to view details. For example:
[Attachment = 53283]
Tip: If you run the fdisk-l command and find that no/dev/xvdb indicates that your cloud service has no data disk, you do not need to attach it, in this case, this tutorial does not apply to you. 2. Run the "fdisk/dev/xvdb" command to partition the data disk. Enter "n" as prompted ", "p" "1", Press ENTER twice, and "wq", the partition starts and will be completed soon. Partition [attachment = 53284] 3. Run the "fdisk-l" command to view the new partition. The new partition xvdb1 has been created. Attaching [attachment = 53285]

4. format the ext4 module in the new partition CentOS 5.7, but it is not loaded by default. To create a file system using ext4, you can load the module first. Run the following command to complete the module loading process. Cd/lib/modules/2.6.18-274.12.1.el5/kernel/fs/ext4modprobe ext4yum install e4fsprogs after loading the ext4 module, you can use "mkfs. the ext4/dev/xvdb1 command is used to format the new partition. The formatting time varies with the hard disk size. [Attachment = 53286] 5. Add partition information. If you want to mount the new partition to the/var/www directory, run the following command. Note: If the/var/www directory does not exist, Run "mkdir/var/www" to create the directory. Run the echo '/dev/xvdb1/var/www ext4 defaults 0 0'>/etc/fstab command to write information about the new partition. Run the "cat/etc/fstab" command to check whether the write is successful. [Attachment = 53287]
6. mount a new partition by running the "mount-a" command, and then run the "df-h" command to view the new partition. If the following information is displayed, the mount is successful, you can start using the new partition. Bytes
[Attachment = 53288] 3. install Apache
Use the yum install httpd command to install Apache
[Attachment = 53290]

Run the command chkconfig -- levels 235 httpd on to enable Apache to start automatically, and run the command/etc/init. d/httpd start to start Apache immediately.

4. Install MySQL
1. Run the yum install mysql command to install the MySQL client [attachment = 53291]
2. Similarly, run the yum install mysql-server command to install the MySQL service.







3. Run the command chkconfig -- levels 235 mysqld on to enable the MySQL service to start automatically, and run the command/etc/init. d/mysqld start to start the MySQL service immediately.






4. Set the MySQL root password, run the command/usr/bin/mysqladmin-u root password 'new-password', where 'new-password' is the new password, such as 123456



5. install PHP
1. Run the yum install php command to install


2. install php-mysql and other packages to make PHP support MySQL. The command is as follows: run the command yum search php to find available PHP module packages, select the required package and run the command yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc for installation (not limited package in the example)
3. Run the/etc/init. d/httpd restart command to restart Apache.

6. Install phpwind1 and slave address http://download.phpwind.net/index.php?m=download&a=do&did=531 Download phpwind 8.7. 2. decompress the downloaded package and generate two directories: docs and upload. 3. install the FTP server on an ECS instance. For detailed steps, see lyum install vsftpd: install FTP server vsftpd. Lservice vsftpd start: start the vsftpd service. Lvi/etc/vsftpd. conf: Configure vsftpd and remove the annotator of the following two rows: # chroot_list_enable = YES # chroot_list_file =/etc/vsftpd/chroot_listluseradd-d/home/edward-p passw0rd edward: create an FTP user and password. Lvi/etc/vsftpd/chroot_list: add the created user to the configuration file. One user occupies one row. Lservice vsftpd restart: restart vsftpd. 4. Use any FTP client to upload all files under the PW upload directory in binary mode to the/var/www/html/directory of the ECS. Make sure that the following directory or file attributes are in read/write mode (777). You can use the chmod command to change the directory or file attributes. Attachment/photo/attachment/pushpic/attachment/thumb/attachment/upload/middle/attachment/upload/small/attachment/upload/tmp/ attachment/mini/attachment/mutiupload/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/main.htm Html/portal/bbsindex/config.htm html/portal/bbsindex/index.html/portal/bbsradio/html/portal/bbsradio/main.htm html/portal/bbsradio/config.htm html/portal/bbsradio/ index.html html/portal/oindex/main.htm html/portal/oindex/config.htm html/portal/oindex/index.html/portal/groupgatherleft/main.htm html/portal/groupgatherleft /config.htm html/portal/groupgatherleft/index.html html/porta L/groupgatherright/main.htm html/portal/groupgatherright/config.htm html/portal/groupgatherright/index.html/portal/userlist/main.htm html/portal/userlist/config.htm html/portal/userlist/index.html install phpwind in html/portal/usermix/main.htm html/portal/usermix/config.htm 5 and html/portal/usermix/index.html. After the upload is complete, run the http: // ECs IP Address/install. php Installer (for example: http://42.1.1.1/install.php ).
6. Click "accept". The Environment check page is displayed. 7. Click "Next" to create information. The password of the MySQL database is the password of the root user specified in Step 4. The Administrator account and password must be remembered. After installation, you need this account and password to manage the background. 8. Click Next to complete phpwind installation 9. The following page is displayed. [Attachment = 33362]
10. Cut the install. php file in the/var/www/html file of the ECS instance to save or delete it elsewhere, so that you can access the phpwind front and back-end pages normally.

11. You can directly access the front-end homepage of the website by using the ecs ip address or domain name after record filing.


12. Log On with the Administrator account and password set during phpwind installation, and click system settings to go to the background management interface.







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.