0

I had to change the apache port to 7777 in windows 10 since apache refused to start with xampp.

I know this is affecting my local installation of wordpress, but what should I do?

I also changed the php port, but I still get an error in wordpress.

enter image description here

I manually created a wp-config.php file with the following values:

define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'password');

/** MySQL hostname */
define('DB_HOST', '127.0.0.1:7777');

But the only thing I was able to to is get the following notice:

The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

So, what is the correct way to install wordpress when you manually change the apache port?

MauF
  • 461
  • 4
  • 17

2 Answers2

0

Apache and MySQL cannot be on the same port. Take Apache off 7777. You may need to restart it or restart your computer for it to properly release the port. Then restart MySQL as well.

Andy
  • 11,215
  • 5
  • 31
  • 33
0

What worked for me was a combination of the solutions showed here:

disabling Skype's use of ports and configuring bot http and https ports as described in the aforementioned post.

Also, I made a new installation using Bitnami's Wordpress addon.

Community
  • 1
  • 1
MauF
  • 461
  • 4
  • 17