Table des matières
Step 1 : Setup LAMP Stack
Step 2 : Create Database and User for WordPress
Step 3 : Download WordPress Latest Version
Step 4 : Install WordPress through the Web Browser
Additonal Setting – WordPress Permalinks
Maison base de données tutoriel mysql How to Install WordPress 3.9 with Apache2 + MySQL 5.5 + PHP_MySQL

How to Install WordPress 3.9 with Apache2 + MySQL 5.5 + PHP_MySQL

Jun 01, 2016 pm 01:07 PM

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
Copier après la connexion

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;
Copier après la connexion

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';
Copier après la connexion

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;
Copier après la connexion

We need to flush the privileges so that the current instance of MySQL knows about the recent privilege changes we’ve made:

FLUSH PRIVILEGES;
Copier après la connexion

And finally we exit the MySQL terminal by entering:

exit;
Copier après la connexion

Create Database and User for WordPress How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

Step 3 : Download WordPress Latest Version

Enter to directory Document root ofApache:

cd /var/www/html
Copier après la connexion

Download wordpress latest version from the project’s website with the following commad:

sudo wget http://wordpress.org/latest.tar.gz
Copier après la connexion

Extract the files “latest.tar.gz” to rebuild the WordPress directory with these command:

sudo tar -zxvf latest.tar.gz
Copier après la connexion

This will create a directory called wordpress  in directory /var/www/html

create a directory called wordpress How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

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
Copier après la connexion

Or, you can doing it without mentioning Apache’s document root:

sudo rsync -avP wordpress/ .
Copier après la connexion

Once copying all file on wordpress directory is complete. Remove wordpress directory and file latest.tar.gz

sudo rm -rf wordpress/ latest.tar.gz
Copier après la connexion

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
Copier après la connexion

Give permissions to user and group www data How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

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:

Create Configuration File for WordPress How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

we need some information on the database How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

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_

Selection 211 How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

After click on Submit. you should get the following page. Click Run Install

run install wordpress How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

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 Installation How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

WordPress will confirm the installation process is success. It also show you login account that have been created on previous step.

Selection 212 How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

Hit the log in button if you want login to wordpress dashboard.

Just another WordPress site How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

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
Copier après la connexion

Add the following line under option ( DocumentRoot /var/www/html) on section 

ServerName domain_or_IP<directory></directory>AllowOverride All
Copier après la connexion

Example:

add option on file 000 default conf How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

Enable the rewrite module with these command:

sudo a2enmod rewrite
Copier après la connexion

Restart apache2 service:

sudo service apache2 restart
Copier après la connexion

Create empty file .htaccess in your document root

sudo touch /var/ww/html/.htaccess
Copier après la connexion

Give permission file .htaccess with username and group (www-data)

sudo chown www-data:www-data /var/ww/html/.htaccess
Copier après la connexion

Set permission file /var/www/html/.htaccess to 644

sudo chmod 664 /var/www/html/.htaccess
Copier après la connexion

Now you can setting wordpress permaliks from wordpress dashboard, navigate to Settings -> Permalinks

Setting Wordpress Permalinks How to Install Wordpress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

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 :

Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn

Outils d'IA chauds

Undresser.AI Undress

Undresser.AI Undress

Application basée sur l'IA pour créer des photos de nu réalistes

AI Clothes Remover

AI Clothes Remover

Outil d'IA en ligne pour supprimer les vêtements des photos.

Undress AI Tool

Undress AI Tool

Images de déshabillage gratuites

Clothoff.io

Clothoff.io

Dissolvant de vêtements AI

AI Hentai Generator

AI Hentai Generator

Générez AI Hentai gratuitement.

Article chaud

R.E.P.O. Crystals d'énergie expliqués et ce qu'ils font (cristal jaune)
2 Il y a quelques semaines By 尊渡假赌尊渡假赌尊渡假赌
Repo: Comment relancer ses coéquipiers
4 Il y a quelques semaines By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: Comment obtenir des graines géantes
4 Il y a quelques semaines By 尊渡假赌尊渡假赌尊渡假赌
Combien de temps faut-il pour battre Split Fiction?
3 Il y a quelques semaines By DDD

Outils chauds

Bloc-notes++7.3.1

Bloc-notes++7.3.1

Éditeur de code facile à utiliser et gratuit

SublimeText3 version chinoise

SublimeText3 version chinoise

Version chinoise, très simple à utiliser

Envoyer Studio 13.0.1

Envoyer Studio 13.0.1

Puissant environnement de développement intégré PHP

Dreamweaver CS6

Dreamweaver CS6

Outils de développement Web visuel

SublimeText3 version Mac

SublimeText3 version Mac

Logiciel d'édition de code au niveau de Dieu (SublimeText3)

Réduisez l'utilisation de la mémoire MySQL dans Docker Réduisez l'utilisation de la mémoire MySQL dans Docker Mar 04, 2025 pm 03:52 PM

Cet article explore l'optimisation de l'utilisation de la mémoire MySQL dans Docker. Il traite des techniques de surveillance (statistiques Docker, du schéma de performance, des outils externes) et des stratégies de configuration. Il s'agit notamment des limites de mémoire Docker, de l'échange et des CGROUP, à côté

Comment résoudre le problème de MySQL ne peut pas ouvrir la bibliothèque partagée Comment résoudre le problème de MySQL ne peut pas ouvrir la bibliothèque partagée Mar 04, 2025 pm 04:01 PM

Cet article aborde l'erreur "Implom Open Open Wibrary" de MySQL. Le problème découle de l'incapacité de MySQL à localiser les bibliothèques partagées nécessaires (fichiers .so / .dll). Les solutions impliquent la vérification de l'installation de la bibliothèque via le package du système m

Comment modifier une table dans MySQL en utilisant l'instruction ALTER TABLE? Comment modifier une table dans MySQL en utilisant l'instruction ALTER TABLE? Mar 19, 2025 pm 03:51 PM

L'article discute de l'utilisation de l'instruction ALTER TABLE de MySQL pour modifier les tables, notamment en ajoutant / abandon les colonnes, en renommant des tables / colonnes et en modifiant les types de données de colonne.

Exécutez MySQL dans Linux (avec / sans conteneur Podman avec phpmyadmin) Exécutez MySQL dans Linux (avec / sans conteneur Podman avec phpmyadmin) Mar 04, 2025 pm 03:54 PM

Cet article compare l'installation de MySQL sur Linux directement par rapport à l'utilisation de conteneurs Podman, avec / sans phpmyadmin. Il détaille les étapes d'installation pour chaque méthode, mettant l'accent sur les avantages de Podman isolément, portabilité et reproductibilité, mais aussi

Qu'est-ce que Sqlite? Aperçu complet Qu'est-ce que Sqlite? Aperçu complet Mar 04, 2025 pm 03:55 PM

Cet article fournit un aperçu complet de SQLite, une base de données relationnelle autonome et sans serveur. Il détaille les avantages de SQLite (simplicité, portabilité, facilité d'utilisation) et les inconvénients (limitations de concurrence, défis d'évolutivité). C

Exécuter plusieurs versions MySQL sur macOS: un guide étape par étape Exécuter plusieurs versions MySQL sur macOS: un guide étape par étape Mar 04, 2025 pm 03:49 PM

Ce guide démontre l'installation et la gestion de plusieurs versions MySQL sur MacOS à l'aide de Homebrew. Il met l'accent sur l'utilisation de Homebrew pour isoler les installations, empêchant les conflits. L'article détaille l'installation, les services de démarrage / d'arrêt et le meilleur PRA

Comment configurer le cryptage SSL / TLS pour les connexions MySQL? Comment configurer le cryptage SSL / TLS pour les connexions MySQL? Mar 18, 2025 pm 12:01 PM

L'article discute de la configuration du cryptage SSL / TLS pour MySQL, y compris la génération et la vérification de certificat. Le problème principal est d'utiliser les implications de sécurité des certificats auto-signés. [Compte de caractère: 159]

Quels sont les outils de GUI MySQL populaires (par exemple, MySQL Workbench, PhpMyAdmin)? Quels sont les outils de GUI MySQL populaires (par exemple, MySQL Workbench, PhpMyAdmin)? Mar 21, 2025 pm 06:28 PM

L'article traite des outils de GUI MySQL populaires comme MySQL Workbench et PhpMyAdmin, en comparant leurs fonctionnalités et leur pertinence pour les débutants et les utilisateurs avancés. [159 caractères]

See all articles