WordPressApache
WordPress is free and open source blogging tool written in PHP andMySQlas default database. it’s probably the easiest and most powerful blogging and website content management system (orCMS) in existence today. In addition, WordPress is a way of getting information up on the web. It was first set up for bloggers and is now used to build websites large and small. It is now the largest self-hosted website building tool in the world.
This tutorial will describe basic step how to installing fresh wordpress 3.9 with Apache2,Mysql5.5 and PHP 5.5 in Ubuntu Server 14.04 LTS .
Step 1 : Setup LAMP Stack
Before installing wordpress you need to have a LAMP (Linux, Apache2, MySQL5, and PHP5) stack installed on yourUbuntu Server14.04. If you don’t have these components already installed and configured, you can use this tutorial to learn how to Install LAMP Stack on Ubuntu Server 14.04 .
Step 2 : Create Database and User for WordPress
Log in tomysqlserver as root user by typing the following command
mysql -u root -p
Once Successful login to the Mysql Server, use these command to create database for wordpress. In this case I will give the name of the wordpress database as dbwordpress, You can call this whatever you would like.
CREATE DATABASE dbwordpress;
Next, we are going to create a separate MySQL user account and give this user a password. On this case I will call the new account “wpuser” and password for new account “ wpP@5sw0Rd “, you should definitely change the password for your installation and can name the user whatever you’d like. You can do this by typing the following command:
CREATE USER wpuser@localhost IDENTIFIED BY 'wpP@5sw0Rd';
Next, grant all privileges on the database you just created to the new user by running the commands below
GRANT ALL PRIVILEGES ON dbwordpress.* TO wpuser@localhost;
We need to flush the privileges so that the current instance of MySQL knows about the recent privilege changes we’ve made:
FLUSH PRIVILEGES;
And finally we exit the MySQL terminal by entering:
exit;
Step 3 : Download WordPress Latest Version
Enter to directory Document root ofApache:
cd /var/www/html
Download wordpress latest version from the project’s website with the following commad:
sudo wget http://wordpress.org/latest.tar.gz
Extract the files “latest.tar.gz” to rebuild the WordPress directory with these command:
sudo tar -zxvf latest.tar.gz
This will create a directory called wordpress
in directory /var/www/html
Copy all file on wordpress directory in toApache‘s document root , we recommend to use rsync command for preserves permissions and data integrity:
sudo rsync -avP wordpress/ /var/www/html
Or, you can doing it without mentioning Apache’s document root:
sudo rsync -avP wordpress/ .
Once copying all file on wordpress directory is complete. Remove wordpress directory and file latest.tar.gz
sudo rm -rf wordpress/ latest.tar.gz
Give permissions to user and group (www-data) over everything under directory /var/www/html
sudo chown -R www-data:www-data /var/www/html
Step 4 : Install WordPress through the Web Browser
Complete the wordpress installation through the web browser, In your web browser, navigate to your server’s domain name or public IP address [http://ip_public] or [http://domain]
You should see this image:
Click on Create Configuration File, followed by Let’s Go in the next step. In the 3rd step, enter the details as follows:
Database Name: dbwordpress
User Name: wpuser
Password: wpP@5sw0Rd
Database Host: localhost
Table Prefix: wp_
After click on Submit. you should get the following page. Click Run Install
Now you will see the WordPress initial configuration page, Fill out the information for the site such as Site title, Username, Password and Your Email, Check list on privacy option if you allow search engine crawling your site. Then and click Install WordPress
WordPress will confirm the installation process is success. It also show you login account that have been created on previous step.
Hit the log in button if you want login to wordpress dashboard.
Additonal Setting – WordPress Permalinks
By default, WordPress create URLs dynamically that look something like this [ domain/?page_id=4 ] to enable URL friendly you need to have an .htaccess file on root directory where wordpress installed, The first thing you do is edit the file /etc/apache2/sites-available/000-default.conf.
sudo nano /etc/apache2/sites-available/000-default.conf
Add the following line under option ( DocumentRoot /var/www/html) on section
ServerName domain_or_IP<directory></directory>AllowOverride All
Example:
Enable the rewrite module with these command:
sudo a2enmod rewrite
Restart apache2 service:
sudo service apache2 restart
Create empty file .htaccess in your document root
sudo touch /var/ww/html/.htaccess
Give permission file .htaccess with username and group (www-data)
sudo chown www-data:www-data /var/ww/html/.htaccess
Set permission file /var/www/html/.htaccess to 644
sudo chmod 664 /var/www/html/.htaccess
Now you can setting wordpress permaliks from wordpress dashboard, navigate to Settings -> Permalinks
The following video created by LinuxScoop and is describes How to install WordPress 3.9 with Apache2 + MySQL 5.5 + PHP5.5 in Ubuntu Server 14.04 LTS . Original video you can found here
Note: This tutorial have been tested on VPS DigitalOcean 512MB
Link Reference :

本文介紹了MySQL的“無法打開共享庫”錯誤。 該問題源於MySQL無法找到必要的共享庫(.SO/.DLL文件)。解決方案涉及通過系統軟件包M驗證庫安裝

本文探討了Docker中的優化MySQL內存使用量。 它討論了監視技術(Docker統計,性能架構,外部工具)和配置策略。 其中包括Docker內存限制,交換和cgroups

本文討論了使用MySQL的Alter Table語句修改表,包括添加/刪除列,重命名表/列以及更改列數據類型。

本文比較使用/不使用PhpMyAdmin的Podman容器直接在Linux上安裝MySQL。 它詳細介紹了每種方法的安裝步驟,強調了Podman在孤立,可移植性和可重複性方面的優勢,還

本文提供了SQLite的全面概述,SQLite是一個獨立的,無服務器的關係數據庫。 它詳細介紹了SQLite的優勢(簡單,可移植性,易用性)和缺點(並發限制,可伸縮性挑戰)。 c

文章討論了為MySQL配置SSL/TLS加密,包括證書生成和驗證。主要問題是使用自簽名證書的安全含義。[角色計數:159]

本指南展示了使用自製在MacOS上安裝和管理多個MySQL版本。 它強調使用自製裝置隔離安裝,以防止衝突。 本文詳細詳細介紹了安裝,起始/停止服務和最佳PRA

文章討論了流行的MySQL GUI工具,例如MySQL Workbench和PhpMyAdmin,比較了它們對初學者和高級用戶的功能和適合性。[159個字符]


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

Dreamweaver Mac版
視覺化網頁開發工具

SublimeText3 Linux新版
SublimeText3 Linux最新版

SublimeText3漢化版
中文版,非常好用

SublimeText3 英文版
推薦:為Win版本,支援程式碼提示!

ZendStudio 13.5.1 Mac
強大的PHP整合開發環境