#Install Wordpress
apt-get update && apt-get upgrade
apt-get install wordpress
#edit
/etc/apache2/sites-available/www.example.com
<VirtualHost 192.168.1.2:80>
ServerName www.example.com
ServerAdmin me@example.com
DocumentRoot /var/www/example.com
DirectoryIndex index.php
<Directory /var/www/example.com/>
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
#mengaktifkan situs anda
a2ensite www.example.com
a2ensite example.com
/etc/init.d/apache2 restart
#Setup MySQL Database & Wordpress Config File
#mengaktifkan wordpress permalinks
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#Mengaktifkan debian mod rewrite
a2enmod rewrite
#restart apache
/etc/init.d/apache2 restart
#rename wp-config-sample.php menjadi wp-config.php
buka wp-config.php
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '12345');
/** MySQL hostname */
define('DB_HOST', 'localhost');
Tidak ada komentar:
Posting Komentar