So i had a fine working installation of wordpress in a directory /var/www/wportal with a site url http://sitename/wportal. And i needed to migrate it all from /wportal to /portal.
So i took the following steps:
1) used Search and Replace plugin to change every wportal string in the database to portal.
2) changed the site and home url in the wp-config.php (here's the final http://pastebin.com/s9TpPQC8 )
3) did "mv wportal" portal/"
4) restarted apache
So the site works fine but when i login in the wp-admin after a succesfull login it says "You do not have sufficient permissions to access this page".
I did "mv wp-content/plugins wp-content/plugins_old" to check if a plugin was causing the problem but nothing changed.
I read and tried everything in http://codex.wordpress.org/Login_Trouble
but still nothing changed.
I did not change the database table prefix or something like that neither did i change any file permissions so i just don't understand why it doesn't work. :\
Here's my phpinfo() : http://pastehtml.com/view/b9t4yamn6.html
I could really use some help.