On my ubuntu droplet, I tried to install WordPress (without using one click because I am thinking of hosting multiple sites and one click seems like can only install one wordpress per droplet).
I follow exactly the same instructions describe on https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04. Except that instead of putting wordpress directory in /var/www/html I go for /var/www/mysite.com/public_html together with /etc/apache2/sites-available/mysite.com.config. So that in the future if i want to install more wordpress on the same server, it will be more manageable.
My problem is, i successfully managed to install wordpress but when i try to install plugin, it asks me for my ftp username and password to download and install to wordpress. I am encountering the following problems.
if i upload a plugin directly from my laptop, it says i cannot upload and it says Unable to create directory /var/www/mysite.com/public_html/wp-content/uploads/2016/02. Is its parent directory writable by the server?
I cannot seem to change the permalinks structure to post_name. I just can’t. I have tried everything like giving 666 permission and let the wordpress create itself and changing AllowOverride None to All (most of the solutions I could find online).
Can someone help me with this ? Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@jesin - I have no idea what happened behind the scene when I typed in those commands you provided but IT WORKS ! Thank YOU !
@aronjayvo - Thanks for the multisite tutorial too. I never knew wordpress can be configured that way. I didn’t happen to try your solution because @jesin solution worked like charm. Thank You too !
it’s ownership problem chown -R apache:apache /var/www this command will solve it
Hi @harrylynn17,
SSH to the Droplet as the root user or a user with sudo access and execute the following commands:
sudo chown -R www-data:www-data /var/www
sudo find /var/www -type d -exec chmod 755 {} \;
sudo find /var/www -type f -exec chmod 644 {} \;
Next change the shell of the www-data user:
sudo usermod -s /bin/bash www-data
Set a password for this user:
sudo passwd www-data
Now whenever you wish to upload files use sFTP to login as the www-data user. With this set of permissions you can install plugins/themes directly from the wp-admin area.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.