Install LAMP + wordpress on ubuntu-Linux Enterprise Application-Linux server application information. For more information, see. Recently, it seems that the network speed of BlogBus has declined. Is it true that your machine is Linux? Do I have my own wordpress blog after installing LAMP (Linux + Apache + MySQL + PHP? The function is still powerful, and there is no need to limit it to several bus templates. Haha, I feel like "everything is under control.
Install LAMP
Open the new version, edit --> mark the software package by using the task group. The LAMP Server suddenly appears, select the check box, apply the package, and then install phpmyadmin (Optional). Enter the following command on the terminal:
Sudo apt-get install phpmyadmin
In this way, LAMP is successfully installed. (It is necessary to force BS to Win the system. Apache + PHP can drive people crazy, and it is too easy to install in Ubuntu, praising debian)
Restart, enable swiftfox, input http: // 127.0.0.1, and you can see IT Work. Okay, now the machine is a Web server.
Configure SQL
Enter mysql-u root under the terminal
There will be a mysql> prompt, enter the following stuff, not too long
Grant all privileges on *. * TO root @ localhost identified by "xxx ";
Here, root is the user name and xxx is the password you want to set. Use quit to exit after the password is set.
Create a database
Enter 127.0.0.1/phpmyadmin in the browser
Click Create new database to add the database name, for example, forwind.
Return to the homepage and click Privileges to go to permission management and create a database user. Click Add a user, select Use text field (Use text field), Add the user name to be added, and enter a password as responsible as possible. Keep the default items in the Global privileges column. Click Go ).
Return to the permission page, click the Check privileges icon next to the created username, and then select the created database jiang_demo, phpMyadmin will take you to the Add privileges to the following database (Add permissions for the database) page, Check All (select All), and then execute.
So far, the database creation has been completed.
After creating a database, do not forget to record your database, username, password, and hostname.
Install wordpress
Download the latest version of wordpress at http://wordpress.org/download/and decompress it to the/var/www/blog directory (the blog directory needs to be created by yourself, and can also be named by another name, such as wordpress)
Edit the wp-config-sample.php file and find the following lines:
1. define ('db _ name', ''); // enter the database NAME in'', such as blog
2. define ('db _ user', ''); // USER Name of the database
3. define ('db _ password ','');//... Password
4. define ('db _ host', ''); // database address, such as 127.0.0.1
Then save and rename the wp-config.php File
Finally, open 127.0.0.1/blog/wp-admin/install in the browser to install wordpress. The installation process is simple.
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.