Install WordPress under Linux

Source: Internet
Author: User
Tags parent directory install wordpress

Win under the Fool-like operation: XAMPP Packaging One-click installation

Linux under the consideration of some permissions problems or a bit of egg pain now put the process to do the following record:

The process of installing XAMPP and WordPress under Linux

X because there is no tool under Linux, so there is no diagram!
Xlinux version is subject to Unbuntu

1. Installing XAMPP

Download the XAMPP installation package for Linux on the official website, in the form of. Run. Be sure to download PHP5.6 and the following versions! Because Discuz X does not support a higher version of PHP.

Example: Download the Xampp-linux-x64-5.6.14-4-installer.run
Copy it to the "Documents" directory (note the Linux directory instead of the win disk!) )
Open terminal input su command and password get root permission

Use the CD command: The CD document is moved to the documents directory.

Use the LS command to see if there are xampp-linux-x64-5.6.14-4-installer.run files in this directory

Enter chmod +x Xampp-linux-x64-5.6.14-4-installer.run to add enforceability to the file

Enter./xampp-linux-x64-5.6.14-4-installer.run Run

The next step is to click on the graphical interface to install it continuously.

2.HTXAMPP:

The XAMPP is installed by default in the OPT directory. At startup, enter SUDO/OPT/LAMPP/LAMPP start at the terminal
Enter Sudo/opt/lampp/lampp stop when off

3. Install WordPress:

Note that the Linux permissions system is very strict and the normal directory does not even have permissions to create subdirectories and access the parent directory.
So the installation process is a lot of problems

First unpack the WordPress package: I recommend using the graphical interface

In the terminal input sudo nautilus can open a file browser with root permissions, click "Computer" can access to the root directory to put the WordPress package under Opt/lampp/htdocs

Then we have to add permissions to this directory!

In terminal input Chomod-r 777/opt/lampp/htdocs/wordpress

Then enter localhost/wordpress in the browser to install
If you do not have permission to modify the WordPress installation can not be changed wp-config.php so that the installation failed

WordPress is now installed, however you will find that you cannot install any plugins or themes

This time please manually modify the wp-config.php file to add these three lines:
Define ("Fs_method", "direct");
Define ("Fs_chmod_dir", 0777);
Define ("Fs_chmod_file", 0777);

You can use themes and plugins happily.

4. Install Discuz Forum

Copy the contents of the upload package into the Htdocs/bbs directory (just for example), and then the same in the terminal with root permissions to this directory 777 permissions to install!
Chmod-r 777/opt/lampp/htdocs/bbs

Install WordPress under Linux

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.