In the previous post, I have post how to install OpenLitespeed on MacOSX. In this post, I will show you how to install WordPress on MacOSX use OpenLitespeed as WebServer.
WordPress requirements
The requirements of WordPress are defined on WordPress's official page. I will be following it and summarize the below requirements.PHP: PHP 5.6.20+
MySQL: MySQL 5.0+ or MariaDB 10.1+
Webserver: Apache or NGINX. But we use OpenLitespeed
HTTPS support: It's recommended
Let's start.
All the software used to make the WordPress environment will be installed via the HomeBrew package manager. So please install it before.First, please install OpenLitespeed on your Mac if it's not installed before.
Install MySQL:
brew install mysql@5.7After install the MySQL you can configure MySQL root password via command
mysql_secure_installation
Enter password for user root:
Change the password for root ?
y
New password:
root
Re-enter new password:
root
Remove anonymous users? (Press y|Y for Yes, any other key for No) :
y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) :
y
Remove test database and access to it? (Press y|Y for Yes, any other key for No) :
y
Reload privilege tables now? (Press y|Y for Yes, any other key for No) :
y
Default brew tap puleeno/openlitespeed install LSPHP 7.3 to create PHP environment for OpenLitespeed. So we can use it for WordPress.
Download WordPress source via WordPress.org and extract it to any your path you want.
I will store it in ~/WordPress. Full path is /Users/puleeno/WordPress/demo
Open OpenLitespeed Admin Dashboard via URL https://localhost:7080/
Please input your credentials to login to dashboard.
Default credentials info is
ID: admin
PW: 123456
In Left Sidebar. Click on Virtual Host to go to the Virtual Host page.
On page Virtual Hosts page. Click to Example virtual host
At Virtual Host Root, change the value to ~/WordPress and click save button.
Click restart OpenLitespeed server to finish.
To check your result, You can go to URL http://localhost/demo. If you see WordPress install page, we have successful.
Now, you can set up WordPress to develop local.
In the next post, I will show you how to create a custom virtual host to customize domain to use http://yourdomain.com to replace http://localhost.
y
New password:
root
Re-enter new password:
root
Remove anonymous users? (Press y|Y for Yes, any other key for No) :
y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) :
y
Remove test database and access to it? (Press y|Y for Yes, any other key for No) :
y
Reload privilege tables now? (Press y|Y for Yes, any other key for No) :
y
Install PHP
Default brew tap puleeno/openlitespeed install LSPHP 7.3 to create PHP environment for OpenLitespeed. So we can use it for WordPress.
Install WordPress
Download WordPress source via WordPress.org and extract it to any your path you want.
I will store it in ~/WordPress. Full path is /Users/puleeno/WordPress/demo
Open OpenLitespeed Admin Dashboard via URL https://localhost:7080/
Please input your credentials to login to dashboard.
Default credentials info is
ID: admin
PW: 123456
In Left Sidebar. Click on Virtual Host to go to the Virtual Host page.
On page Virtual Hosts page. Click to Example virtual host
At Virtual Host Root, change the value to ~/WordPress and click save button.
Click restart OpenLitespeed server to finish.
To check your result, You can go to URL http://localhost/demo. If you see WordPress install page, we have successful.
Now, you can set up WordPress to develop local.
In the next post, I will show you how to create a custom virtual host to customize domain to use http://yourdomain.com to replace http://localhost.
Không có nhận xét nào:
Đăng nhận xét