Skip to content

Instantly share code, notes, and snippets.

@sachyya
Last active January 29, 2017 16:01
Show Gist options
  • Save sachyya/7291197ea1e385100df4ad3c7667f2f2 to your computer and use it in GitHub Desktop.
Save sachyya/7291197ea1e385100df4ad3c7667f2f2 to your computer and use it in GitHub Desktop.
FTP credentials on plugin installation:
define( 'FS_METHOD', 'direct' );
Pretty permalinks not working:
Edit /etc/apache2/apache2.conf and change:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
TO:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Then enter the following command:
sudo a2enmod rewrite
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment