By booruguru
When I check the folders in my WordPress directory, the permissions are defined as they should be, but WordPress/wp-admin is unable to do things like install plugins…instead it prompts me for my FTP credentials.
This all started after I created some vhosts on my server and moved my WordPress site into a new directory within /var/www/? I assume this must have something to do with apache, but I don’t know how to proceed.
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!
This question was answered by @gio.arteaga:
Is the URL the same or different after moving the vhost directories to the new location?
If it is different, than you will need to modify the sql database and make the appropriate changes.
- Edit the wordpress site db. Use mysql from the terminal or phpMyAdmin
- Edit the database wp_options
- Edit the option_name (database column fields) siteurl and home. Se the appropriate url
Also, check the appropriate permissions for files and folders. And depending how Apache was installed, the permissions should be
Files
-rw-r--r-- 1 user1 user1 2.9K Sep 24 2013 wp-cron.php -rw-r--r-- 1 user1 user1 246 Jan 25 2014 wp-feed.phpDirectories
drwxr-xr-x 12 user1 user1 4.0K May 8 10:45 wp-includes/Gio
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.