Я новичок ie.
Я успешно установил стек LAMP! Когда я открываю localhost
, отображается стартовая страница apache2:
![Apache default page](https://i.stack.imgur.com/qj21c.png)
And then, I installed WordPress on LAMP stack successfully! I access localhost/blog, it's works!
![enter image description here](https://i.stack.imgur.com/Fxs3V.png)
Here is my configuration Apache2 and wordpress in /etc/apache2/sites-available/wordpress.conf:
Alias /blog /usr/share/wordpress
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Order allow,deny
Allow from all
Options FollowSymLinks
Order allow,deny
Allow from all
Here is my 000-default.conf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Here is my database on MySQL:
<?php
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpressuser');
define('DB_PASSWORD', 'Wordpress@1111');
define('DB_HOST', 'localhost');
define('DB_COLLATE', 'utf8_general_ci');
define('WP_CONTENT_DIR', '/usr/share/wordpress/wp-content');
?>
I checked apache2 status again, it's still running:
But when I access localhost again, it can not show apache2 start page.
введите описание изображения здесь Итак, как мне снова показать стартовую страницу apache2 в http://localhost/
?