Wordpress is the most popular blog platform in the universe, in this article i'm going to show you how to install wordpress on local computer running lubuntu 16.04 operating system.
Wordpress is php-based blog platform/cms, therefore we need to have php and of course a web server installed on our lubuntu, also you need to have mysql database server, because wordpress is using mysql for storing data.
Step by step how to install wordpress on lubuntu 16.04
- make sure you have apache web server installed
- make sure you have php and mysql installed
- make sure apache mod rewrite is enable
- install wordpress package
sudo apt-get install wordpress
sudo leafpad /etc/apache2/sites-available/wordpress.conf
Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
<Directory /usr/share/wordpress/wp-content>
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
sudo a2ensite wordpress
sudo service apache2 reload
sudo leafpad /etc/wordpress/config-localhost.php
<?php
define('DB_NAME', 'lubuntu_wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', 'entering');
define('DB_HOST', 'localhost');
define('WP_CONTENT_DIR', '/usr/share/wordpress/wp-content');
?>
sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-default.php
http://localhost/blog/
Note :
you can go to http://localhost/blog/wp-admin/ to open the wordpress dashboard and login with username and password for the blog admin.
you can go to http://localhost/blog/wp-admin/ to open the wordpress dashboard and login with username and password for the blog admin.
This comment has been removed by a blog administrator.
ReplyDeleteCannot create wordpress.conf. Permission denied. Even as admin.
ReplyDeleteyou need to run with sudo,
Deleteassuming you have leafpad
sudo leafpad /etc/apache2/sites-available/wordpress.conf
How do I get write premissions to /etc/apache2/sites/available
ReplyDeletei update the article
DeleteThis comment has been removed by a blog administrator.
ReplyDeleteplease don't spam on my blog
Deletemine says "Error establishing a database connection"
ReplyDeletemake sure the mysql database is active and the config are correct (mysql username, password, db name)
Delete