![]() ![]() Sudo -u the following: define( 'AUTH_KEY', 'put your unique phrase here' ) ĭefine( 'SECURE_AUTH_KEY', 'put your unique phrase here' ) ĭefine( 'LOGGED_IN_KEY', 'put your unique phrase here' ) ĭefine( 'NONCE_KEY', 'put your unique phrase here' ) ĭefine( 'AUTH_SALT', 'put your unique phrase here' ) ĭefine( 'SECURE_AUTH_SALT', 'put your unique phrase here' ) ĭefine( 'LOGGED_IN_SALT', 'put your unique phrase here' ) ĭefine( 'NONCE_SALT', 'put your unique phrase here' ) ĭelete those lines ( ctrl k will delete a line each time you press the sequence). Sudo -u www-data sed -i 's/username_here/wordpress/' /srv/www/wordpress/wp-config.php Do replace with your database password.): sudo -u www-data sed -i 's/database_name_here/wordpress/' /srv/www/wordpress/wp-config.php First, copy the sample configuration file to wp-config.php: sudo -u Next, set the database credentials in the configuration file ( do not replace database_name_here or username_here in the commands below. Now, let’s configure WordPress to use this database. Configure WordPress to connect to the database Mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTERĮnable MySQL with sudo service mysql start. Type '\c' to clear the current input statement. Other names may be trademarks of their respective ![]() Oracle is a registered trademark of Oracle Corporation and/or itsĪffiliates. To configure WordPress, we need to create MySQL database. # the rest of the VHost configurationįinally, reload apache2 to apply all these changes: sudo service apache2 reload via DNS, or edits to the client systems’ /etc/hosts file (on Windows the equivalent is C:\Windows\System32\drivers\etc\hosts). This hostname must be mapped to your box somehow, e.g. Or, instead of disabling the “it works” page, you may edit our configuration file to add a hostname that the WordPress installation will respond to requests for. Create /etc/apache2/sites-available/nf with following lines: Įnable the site with: sudo a2ensite wordpressĮnable URL rewriting with: sudo a2enmod rewriteĭisable the default “It Works” site with: sudo a2dissite 000-default Configure Apache for WordPressĬreate Apache site for WordPress. This is beyond the scope of this guide, however. In such setup the wp-config.php should (read: if you do it differently you need a good reason) be readonly to the site owner and group and other permissions set to no-access ( chmod 400). Note that this sets the ownership to the user This will require configuring PHP-FPM to launch a separate instance per site each running as the site’s user account. ![]() This will also have fewer “gotcha” problems that the WordPress support volunteers will not be able to anticipate and therefore be unable to help with.Ĭreate the installation directory and download the file from : sudo mkdir -p /srv/wwwĬurl | sudo -u www-data tar zx -C /srv/www We will use the release from rather than the APT package in the Ubuntu Archive, because this is the preferred method from upstream WordPress. Overall, KompoZer is a handy piece of software with multiple useful tools and a user-friendly approach, although it's more or less obvious that it's only aimed at more advanced users.Previous step Next step 3. This last panel also boasts several other tabs for accessing the HTML tags and source, as well as a preview feature to see the changes in real-time. The main window is divided into multiple panels, so you get not only the most important format tools, but also a site manager to explore all files and edit the ones you need on the go, but also a separate editing screen for modifying the HTML code with ease. Of course, you're still allowed to work with all types of content, so you can insert images, tables, forms, links, named anchors, horizontal lines, characters and symbols, as well as table of contents and even PHP codes.įormatting is one of the chapters that received much attention from the developer, so you can customize fonts, size, text style and color, writing direction, paragraphs and list, but also page colors and backgrounds, title and properties. You may need a few minutes to get used to the interface if you're a beginner, but a comprehensive help file with tons of information is also available to make sure you manage to figure out how to use the program.Ĭlearly aimed at those with a bit more computer knowledge, KompoZer boasts several handy utilities, including a markup cleanup, a CSS editor, themes and extensions, as well as a bonus feature to validate HTML and make sure there are no errors in your document. KompoZer is a HTML editor that provides a reasonable amount of features and a well-organized interface to make everything a breeze. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |