Lamp Architecture +discuz Forum to build "Weber products must be a boutique"

Source: Internet
Author: User
Tags pscp scp command

First, introduction of this machine:

Native System: centos-6.4-x86_64
Host Name: ORACLE.YWB
IP Address: 192.168.146.129

Second, install Apache in Linux Environment Step

  1. First send the prepared files via PSCP to the Linux/root/test/soft directory
  2. Under Windows, press and hold Ctrl+r, open run, enter CMD to enter the DOS command line. Use the PSCP–SCP command on the DOS command line to upload the uploaded file to Linux.
  3. After the upload is successful. We have a total of four files installed. The first one we unpack first: apr-1.50.tar.bz2
  4. After the decompression is complete, enter: apr-1.50 directory and compile and install.
  5. After the APR installation is complete, return to the previous level directory and now install Apr-util. The first step is to extract the files, and then enter the apr-util-1.5.3 directory when the decompression is complete. Configure the installation path for apr-util after entering this directory
  6. Perform compile and install commands after configuring the installation path: Make && make install
  7. Apr-util after the installation is completed to return to the previous level of the directory, now for the installation of Pcer, the first step is to extract the files, extracted into the pcer-8.34 directory, after entering the directory to configure the Pcer installation path.
  8. Perform compile and install commands after configuring the installation path: Make && make install
  9. Now we have installed the apr,apr-util,pcer. Now we begin the Apache compilation and installation. First of all, the httpd file is decompressed, after the decompression is completed into the folder. and configure its installation path.
  10. After configuring the file, execute: Make &&make install command, compile and install the httpd-2.4. After the installation is complete, you can view the relevant content under installation path/usr/local/httpd/.
  11. As you can see, we have successfully installed Apache into the appropriate directory, and now we need to configure the/usr/local/httpd/conf/http.conf configuration file. First, we first set the site name to: www.yaoweibiao.com:80. Then save the exit.

  12. Then we continue to edit the contents of the body inside the/usr/local/httpd/htdocs/index.html,html for it works!.
  13. After editing the above two files, we will first turn off the firewall. and start our httpd service.
  14. After opening the service we come to Windows, open the browser in the address bar input: http://192.168.146.129 enter.

Third, in the Linux installation in the environment Mysql Steps

    1. First confirm whether to install gcc,gcc-c++, because the system installed at the installation of the above two, so no longer repeat the installation, now also need to install Ncurses-devel
    2. Use Yum–y installncurses-devel. View after installation is complete.
    3. Next, install the CMake compilation tool. Enter the/root/test/soft directory, unzip the CMake and install.
    4. Execute gmake.
    5. The gmake is then installed.
    6. The next step is to install the source code package. Unzip the MySQL execution cmake into the current directory.
    7. Proceed with the installation and add the PATH environment variable after the installation is complete. The first of these is immediate, and the second week is to add the environment variable to the configuration file, which is permanently active after the restart.

      Check to see if the/etc/profile file was added successfully.
    8. Add MySQL account, and initialize MySQL database.
    9. Then authorize the MySQL user.

10. The initial database operation is now performed.

11. Copy the startup script file into the/etc/init,d directory and add the Mymysqld to the chkconfig to be controlled by it.

12. Start the database service, where service mymysqld start cannot be used because the built-in version is different. We can use the absolute path to start.

13. Start successfully, MySQL database installation is complete.

Four, in the Linux installation in the environment PHP Steps

    1. First we have to install the GD Library JPEG plug-in, first decompression, decompression into the jpeg-9, configure the installation path after installation
    2. Then install the Zlib-devel and install it using YUM.
    3. Then install libpng-1.6.8, first decompression, after decompression into the libpng-1.6, configure the installation path after installation.
    4. Then install FreeType first decompression, after decompression into the free-type-2.52, configure the installation path after installation.
    5. Immediately after installing the GD library, you need to install the required graphics format library, for example: LIBGD

    6. The play is coming, now to install PHP, install libxml2-devel,freetype-devel before installing PHP, Libxpm-devel. After installation, unzip the PHP-5.5.7.TAR.BZ2

    7. Open the Apache config file/etc/local/httpd/conf/httpd.conf, and modify the operation inside.



    8. The contents of the home page test.php are created immediately after the Web root/usr/local/httpd/htdocs
    9. Setup executable: chmod 775 test.php
    10. Browser Access test under Windows: http://192.168.146.129/test.php
    11. PHP was successfully installed.

Five, in the Linux installation in the environment Discuz_x3.1_sc_utf8 Steps

    1. Copy the upload folder in Discuz_x3.1_sc_utf8 to the/usr/local/httpd/htdocs/path.

    2. You can enter the installation process by executing http://192.168.146.129/upload/install/index.php in the browser.
    3. Click Next to some directory files are not write permission, this time to give them authorization.


    4. After the authorization, you will find that the current status of the directory file has a red fork into the green tick, click Next.

5. Set the operating environment, choose a new installation here

6. Install the database, the user name of the database is root, the password is 123456. The administrator's account is MySQL and the password is 123456. Click Next when you are finished typing.

7. The process of installing the database at this time, if you click on the process of forced return, the installation of the database will be moved to the background, but the re-entry will prompt the database has been installed. But you can't go to the next step, this time you need to enter./data/install/installed.pack, remove the Installed.pack file before you can continue to install the database and proceed to the next step.

8. When the installation is complete, it will be entered into the Installation wizard.

9. Click Install app now to go to the main page of the forum.

10. Then we will upgrade the forum.

11. Ready, upgrade start

13. Confirm if you want to reply to the default style, select here: Yes

14. The database structure is added and updated, and data updates are followed. Final upgrade complete

15. Click on the homepage.

16. Click Register New User.

17. The new user name is: yaoweber, the password is 123456.

18. So far, the DISCUZ forum environment has been built.

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.