Hi, I installed wordpress in Ubuntu server with the help of the article provided here. It was successful and I could access new wordpress site through my provided ip address (http://162.243.247.71/).
My main motive was to transfer my existing wordpress site to DO. After succesful installation of wordpress site, I transferred wp-content and sql file as illustrated in the article: https://www.digitalocean.com/community/articles/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime
I could see the old tables(with different prefix) to the database I created while installing wp site in phpmyadmin. I deleted the default tables with wp_ prefix and changed the prefix setting in wp-config.php coz my database is now using different prefix.
But now I cannot access the site. It says: Server Error. Where did I do wrong? Any suggestions…
Thanks in advanced.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
There’s your problem. Run these commands: <br><pre>sudo chown -R www-data. /var/www <br>find /var/www -type d -exec chmod 755 {} ; <br>find /var/www -type f -exec chmod 644 {} ;</pre>
Hi Kamal, <br>Thanks for the great support. <br>I pointed my domain to DO and it is working fine. <br>http://livingwithict.com
Check apache’s error logs again and see which files it can’t find.
Hi, <br>The site could be accessed and the HOME Page is displaying but none of the other links are working. It is showing 404 Not Found. <br>What might be the problem?
Thank you for the support. <br>It really helped.
@kamal: <br>It’s: <br>drwxr-xr-x 10 www-data www-data 4.0K Dec 2 15:08 . <br>drwxr-xr-x 5 tushar tushar 4.0K Dec 2 09:30 … <br>-rw------- 1 root root 1.2K Dec 2 13:12 advanced-cache.php <br>drwx------ 2 root root 4.0K Dec 2 13:58 backup-db <br>drwx------ 8 root root 4.0K Dec 2 13:58 cache <br>-rw------- 1 root root 1.5K Dec 2 13:33 db.php <br>-rw------- 1 root root 28 Jan 8 2012 index.php <br>-rw------- 1 root root 4.9K Dec 2 13:33 object-cache.php <br>drwx------ 6 root root 4.0K Dec 2 13:58 pageflip <br>drwxr-xr-x 8 www-data www-data 4.0K Dec 2 15:08 plugins <br>drwxr-xr-x 5 www-data www-data 4.0K Dec 2 15:08 themes <br>drwx------ 2 root root 4.0K Dec 2 13:15 upgrade <br>drwx------ 4 root root 4.0K Dec 2 15:32 uploads <br>drwx------ 2 root root 4.0K Dec 2 13:58 w3tc-config <br>
What’s the output of <pre>ls -lah /var/www/wp-content</pre>?
@Pablo: <br>Here is the full info: <br>drwxr-xr-x 5 tushar tushar 4096 Dec 2 09:30 . <br>drwxr-xr-x 12 root root 4096 Dec 2 08:34 … <br>-rw-r–r-- 1 root root 45 Dec 2 09:10 .htpasswd <br>-rw-r–r-- 1 www-data www-data 177 Dec 2 08:34 index.html <br>-rw-r–r-- 1 www-data www-data 418 Sep 25 00:18 index.php <br>-rw-r–r-- 1 www-data www-data 19929 Jan 18 2013 license.txt <br>-rw-r–r-- 1 www-data www-data 7128 Oct 23 20:08 readme.html <br>-rw-r–r-- 1 www-data www-data 4892 Oct 4 14:12 wp-activate.php <br>drwxr-xr-x 9 www-data www-data 4096 Oct 29 20:08 wp-admin <br>-rw-r–r-- 1 www-data www-data 271 Jan 8 2012 wp-blog-header.php <br>-rw-r–r-- 1 www-data www-data 4795 Sep 6 01:38 wp-comments-post.php <br>-rw-r–r-- 1 www-data www-data 3172 Dec 2 15:37 wp-config.php <br>-rw-r–r-- 1 www-data www-data 3177 Nov 1 2010 wp-config-sample.php <br>drwxr-xr-x 10 www-data www-data 4096 Dec 2 15:08 wp-content <br>-rw-r–r-- 1 www-data www-data 2932 Sep 25 00:18 wp-cron.php <br>drwxr-xr-x 11 www-data www-data 4096 Oct 29 20:08 wp-includes <br>-rw-r–r-- 1 www-data www-data 2380 Sep 25 00:18 wp-links-opml.php <br>-rw-r–r-- 1 www-data www-data 2359 Sep 12 06:57 wp-load.php <br>-rw-r–r-- 1 www-data www-data 31739 Oct 23 14:40 wp-login.php <br>-rw-r–r-- 1 www-data www-data 7772 Oct 22 17:22 wp-mail.php <br>-rw-r–r-- 1 www-data www-data 10585 Oct 7 19:34 wp-settings.php <br>-rw-r–r-- 1 www-data www-data 25673 Oct 22 17:22 wp-signup.php <br>-rw-r–r-- 1 www-data www-data 4026 Sep 25 00:18 wp-trackback.php <br>-rw-r–r-- 1 www-data www-data 3015 Oct 23 14:40 xmlrpc.php <br>
Do you see <code>root:root</code> anywhere in there? It needs to be all <code>www-data:www-data</code>.
@pablo: <br>This one: https://www.digitalocean.com/community/articles/how-to-install-wordpress-on-ubuntu-12-04 <br> <br>Is it /var/www for /path/to… ? Sorry but I’m completely New to this. :) <br> <br>-rw-r–r-- for files <br>drwxr-xr-x for dirs <br>
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello, I can not log in to my account. I forgot my password. How do I reset it? thanks
email: mhmmd.vrs@gmail.com