Can't login to wordpress admin after changing the port of localhost
-
At first I installed Xampp but I could not access localhost/phpmyadmin I google around I found that I had to change the port so I change the port from 80 to 1337 .For this I did two things-
i)At first I went to httpd.conf(apache file) and changed the line from “Listen 80” to “Listen 1337” and also changed the line from “ServerName localhost:80” to “ServerName localhost:1337”.
ii)In httpd-ssl.conf I changed “Listen (I forgot the port number here)” to “Listen 7331”.
After this I could access localhost:1337/phpmyadmin but If I try to access localhost:1337/wordpress I get an error message “Unable to connect”.Offcourse I have made necessary changes in wp-config.php in the lines given below-
define(‘DB_NAME’, ‘wordpress’);
/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ”);after creating a database name “wordpress”.The above changes worked yesterday but now it won’t work.I don’t know what to do anymore.Thank you in advance.
- The topic ‘Can't login to wordpress admin after changing the port of localhost’ is closed to new replies.