![]() sudo mkdir -p /mybackup/backup /mybackup/restore You’ll be surprised to find that WordPress can fill many a need.Now, let us backup and restore directories. WordPress is so much more than a blogging platform–after you install it, head over to the WordPress plugin repository to see just how much more you can make this platform do. The installation is complete, and you can log in with your admin credentials to start building your site. To finalize the installation, select the language for the site, set the site title, add an admin user and password (password must be a minimum of WEAK for the installation to continue), and click Install WordPress ( Figure C). Now point a web browser to and finish the installation via the browser-based wizard. Restart the Apache and MySQL servers with the commands: Open the file up for editing with the command sudo nano wp-config.php and locate the MySQL settings section ( Figure B).Ĭhange the database_name_here, username_here, and password_here options to reflect your MySQL installation and the WordPress database we created earlier. Âsudo mv wp-config-sample.php wp-config.php Rename the wp-config-sample.php file with the commands: Âsudo chmod -R 755 /var/www/html/wordpressįor our next trick, we’ll rename the WordPress configuration file and modify it to fit our setup. Sudo chown -R www-data:www-data /var/www/html/wordpress ![]() Next we must give the wordpress folder the proper permissions with the commands: To that end, we’ll move the entire wordpress folder to /var/www/html with the command: I assume you are installing WordPress on a LAMP server that will also host other services. Back at your terminal window, issue the following commands: ![]() We’re ready to download and unpack the WordPress file. ÂGRANT ALL PRIVILEGES ON wpdb.* TO IDENTIFIED BY 'ADMIN_PASSWORD' Once you’re on the MySQL prompt, issue the following commands to create the database (USERNAME is the MySQL admin user, and ADMIN_PASSWORD is the password associated with that user): Note: If you designated a specific user to serve as the MySQL administrator, you will replace root with that user. From the terminal window, issue the command mysql -u root -p. With that file in place, point a browser to You should be greeted by the PHP information screen ( Figure A).īefore moving onto the installation of WordPress, we must first create the necessary database. Issue the command sudo nano /var/www/html/info.php and copy the following content into the file: ![]() We now must test to ensure that PHP is working properly by creating a test file. Sudo apt-get install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-cli php7.0-cgi php7.0-gd Go back to your terminal window and issue the following command: Next we must install the necessary PHP modules. If you installed your Ubuntu Server to include the MySQL functionality, chances are you set that administrator password during the operating system installation. During the installation, you may be prompted to create and verify a password for the MySQL administrator. The above commands will install all of the necessary components for your LAMP server. Open a terminal window and issue the following commands: Since we’re using Ubuntu as a foundation, we can install the entire LAMP stack with a single command. SEE: WordPress: Why we didn’t tell you about a big zero-day we fixed last week (ZDNet) Prerequisitesįirst, we must make sure you have the LAMP portion of this server up and running. Learn the simple process of spinning up a WordPress instance with the help of Ubuntu 16.04. With a massive repository of plugins and an ever-growing number of highly flexible themes, WordPress is used for e-commerce, content management, and so much more.įor anyone wanting to host their own instance of WordPress, all you need is a LAMP stack. And then something interesting happened…WordPress evolved beyond a mere blogging tool. If you have a need for a WordPress installation, follow the simple steps of getting this powerful platform up and running on Ubuntu 16.04.Īt one point in time, WordPress was the most powerful blogging platform on the planet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |