davidwilliamb
(usa Ubuntu)
Enviado em 30/06/2016 - 13:45h
p /etc/apache2/apache2.conf ~
Next, you’ll need to add a line to your /etc/apache2/apache2.conf file, so Apache will properly interpret WordPress’s PHP files. (Note that this is only necessary if you install WordPress in a subdirectory of /var/www, as we are doing in this example. If you install WordPress in /var/www, you don’t need to add this line, but you do need to delete or move the original index.html file.) To edit apache2.conf, fire up the vi editor:
sudo vi /etc/apache2/apache2.conf
Once you are in vi, scroll to the end of the file, switch to Insert mode, and add the following line (note that there is a space between the final “p” of “php” and the period before “html”):
AddType application/x-httpd-php .html
Return vi to Command mode, save the file, and then exit vi. Restart Apache with this command, so it re-reads its configuration file:
sudo /etc/init.d/apache2 restart
Now we’ll need to prepare MySQL for use with WordPress. WordPress requires a database and a database user, and full permission for its database user to access its database. To start the MySQL command-line client, use this command: