wordpress centos 7
root@localhost Downloads]# sudo yum install wordpress
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: repos.del.extreme-ix.org
* centos-sclo-rh: repos.del.extreme-ix.org
* centos-sclo-sclo: repos.del.extreme-ix.org
* epel: repos.del.extreme-ix.org
* extras: repos.del.extreme-ix.org
* updates: repos.del.extreme-ix.org
Resolving Dependencies
--> Running transaction check
---> Package wordpress.noarch 0:5.1.1-4.el7 will be installed
--> Processing Dependency: php-simplepie >= 1.3.1 for package: wordpress-5.1.1-4.el7.noarch
--> Processing Dependency: php-PHPMailer for package: wordpress-5.1.1-4.el7.noarch
--> Processing Dependency: php-getid3 for package: wordpress-5.1.1-4.el7.noarch
--> Processing Dependency: php-intl for package: wordpress-5.1.1-4.el7.noarch
--> Processing Dependency: php-mysqli for package: wordpress-5.1.1-4.el7.noarch
--> Running transaction check
---> Package php-PHPMailer.noarch 0:5.2.27-1.el7 will be installed
--> Processing Dependency: php-imap for package: php-PHPMailer-5.2.27-1.el7.noarch
---> Package php-getid3.noarch 1:1.9.17-1.el7 will be installed
--> Processing Dependency: php-composer(fedora/autoloader) for package: 1:php-getid3-1.9.17-1.el7.noarch
---> Package php-intl.x86_64 0:5.4.16-46.el7 will be installed
---> Package php-mysql.x86_64 0:5.4.16-46.el7 will be installed
---> Package php-simplepie.noarch 0:1.3.1-4.el7 will be installed
--> Processing Dependency: php-IDNA_Convert for package: php-simplepie-1.3.1-4.el7.noarch
--> Running transaction check
---> Package php-IDNA_Convert.noarch 0:0.8.0-2.el7 will be installed
---> Package php-fedora-autoloader.noarch 0:1.0.0-1.el7 will be installed
---> Package php-imap.x86_64 0:5.4.16-9.el7 will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.4.16-9.el7.x86_64
--> Running transaction check
---> Package libc-client.x86_64 0:2007f-16.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
wordpress noarch 5.1.1-4.el7 epel 8.4 M
Installing for dependencies:
libc-client x86_64 2007f-16.el7 epel 562 k
php-IDNA_Convert noarch 0.8.0-2.el7 epel 36 k
php-PHPMailer noarch 5.2.27-1.el7 epel 135 k
php-fedora-autoloader noarch 1.0.0-1.el7 epel 9.6 k
php-getid3 noarch 1:1.9.17-1.el7 epel 447 k
php-imap x86_64 5.4.16-9.el7 epel 38 k
php-intl x86_64 5.4.16-46.el7 base 97 k
php-mysql x86_64 5.4.16-46.el7 base 101 k
php-simplepie noarch 1.3.1-4.el7 epel 463 k
Transaction Summary
=======================================================================================
Install 1 Package (+9 Dependent packages)
Total download size: 10 M
Installed size: 43 M
Is this ok [y/d/N]: y
Downloading packages:
(1/10): libc-client-2007f-16.el7.x86_64.rpm | 562 kB 00:00:01
(2/10): php-IDNA_Convert-0.8.0-2.el7.noarch.rpm | 36 kB 00:00:01
php-imap-5.4.16-9.el7.x86_64.r FAILED
http://repos.del.extreme-ix.org/epel/7/x86_64/Packages/p/php-imap-5.4.16-9.el7.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
(3/10): php-PHPMailer-5.2.27-1.el7.noarch.rpm | 135 kB 00:00:02
(4/10): php-simplepie-1.3.1-4.el7.noarch.rpm | 463 kB 00:00:00
(5/10): php-fedora-autoloader-1.0.0-1.el7.noarch.rpm | 9.6 kB 00:00:02
(6/10): php-imap-5.4.16-9.el7.x86_64.rpm | 38 kB 00:00:00
(7/10): php-intl-5.4.16-46.el7.x86_64.rpm | 97 kB 00:00:01
(8/10): php-mysql-5.4.16-46.el7.x86_64.rpm | 101 kB 00:00:01
(9/10): php-getid3-1.9.17-1.el7.noarch.rpm | 447 kB 00:00:03
(10/10): wordpress-5.1.1-4.el7.noarch.rpm | 8.4 MB 00:00:05
---------------------------------------------------------------------------------------
Total 1.2 MB/s | 10 MB 00:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : php-intl-5.4.16-46.el7.x86_64 1/10
Installing : libc-client-2007f-16.el7.x86_64 2/10
Installing : php-imap-5.4.16-9.el7.x86_64 3/10
Installing : php-PHPMailer-5.2.27-1.el7.noarch 4/10
Installing : php-fedora-autoloader-1.0.0-1.el7.noarch 5/10
Installing : 1:php-getid3-1.9.17-1.el7.noarch 6/10
Installing : php-mysql-5.4.16-46.el7.x86_64 7/10
Installing : php-IDNA_Convert-0.8.0-2.el7.noarch 8/10
Installing : php-simplepie-1.3.1-4.el7.noarch 9/10
Installing : wordpress-5.1.1-4.el7.noarch 10/10
Verifying : 1:php-getid3-1.9.17-1.el7.noarch 1/10
Verifying : php-IDNA_Convert-0.8.0-2.el7.noarch 2/10
Verifying : php-mysql-5.4.16-46.el7.x86_64 3/10
Verifying : php-fedora-autoloader-1.0.0-1.el7.noarch 4/10
Verifying : php-imap-5.4.16-9.el7.x86_64 5/10
Verifying : wordpress-5.1.1-4.el7.noarch 6/10
Verifying : libc-client-2007f-16.el7.x86_64 7/10
Verifying : php-intl-5.4.16-46.el7.x86_64 8/10
Verifying : php-simplepie-1.3.1-4.el7.noarch 9/10
Verifying : php-PHPMailer-5.2.27-1.el7.noarch 10/10
Installed:
wordpress.noarch 0:5.1.1-4.el7
Dependency Installed:
libc-client.x86_64 0:2007f-16.el7 php-IDNA_Convert.noarch 0:0.8.0-2.el7
php-PHPMailer.noarch 0:5.2.27-1.el7 php-fedora-autoloader.noarch 0:1.0.0-1.el7
php-getid3.noarch 1:1.9.17-1.el7 php-imap.x86_64 0:5.4.16-9.el7
php-intl.x86_64 0:5.4.16-46.el7 php-mysql.x86_64 0:5.4.16-46.el7
php-simplepie.noarch 0:1.3.1-4.el7
Complete!
root@localhost ~]# chown apache:apache /usr/share/wordpress
[root@localhost ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@localhost ~]# ls -ld /usr/share/wordpress
drwxr-xr-x 5 apache apache 4096 Jun 1 00:07 /usr/share/wordpress
[root@localhost ~]# chmod 777 /usr/share/wordpress*
[root@localhost ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@localhost ~]# ls -ld /usr/share/wordpress
drwxrwxrwx 5 apache apache 4096 Jun 1 00:07 /usr/share/wordpress
[root@localhost ~]# service mariadb status
Redirecting to /bin/systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@localhost ~]# service mariadb start
Redirecting to /bin/systemctl start mariadb.service
[root@localhost ~]# chkconfig mariadb on
Note: Forwarding request to 'systemctl enable mariadb.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@localhost ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database wordpress;
Query OK, 1 row affected (0.01 sec)
MariaDB [(none)]> quit
Bye
[root@localhost ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] n
... skipping.
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] n
... skipping.
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] n
... skipping.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] n
... skipping.
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
[root@localhost ~]# vi /usr/share/wordpress/wp-config.php
define( 'DB_NAME', 'wordpress' );
/** MySQL database username */
define( 'DB_USER', 'root' );
/** MySQL database password */
define( 'DB_PASSWORD', '' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
ocalhost/wordpress/wp-login.php
Comments
Post a Comment