Unable to establish a network of sites - Wordpress and XAMPP

I am trying to create a network of sites with wordpress and XAMPP, but I will give the following error when I go to Tools-> Network:

ERROR: You cannot install a network of sites with your server address.
You cannot use port numbers such as :8080.

All my sites are in

C:\xampp\htdocs

and I can view them as follows:

http://localhost:8080/sitename

I tried to create a virtual host and a fake domain, but I cannot get it to work.

Can anyone help? Thank you in advance.

+5
source share
2 answers

I found a workaround:

"netstat -o -n -a | findstr 0.0.80" CMD , 80. PID 4, , 80 (, IIS web - ). , IIS IIS, MsDepSvc (-), 80. apache 80, !

0

, 8080 Wordpress .

80 443.

8080:

  • network.php wp-admin\includes\network.php - [Line-121]

  • if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ) ) ) ) {
    echo '<div class="error"><p><strong>' . __( 'ERROR:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';
    echo '<p>' . sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>';
    echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>';
    echo '</div>';
    include( ABSPATH . 'wp-admin/admin-footer.php' );
    die();
    }
    
  • 8080, :

    if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443', ':8080' ) ) ) ) {
    
  • . network.php .
+27

All Articles