• jacksonsoftplus

    (@jacksonsoftplus)


    hi,
    I’d done installing on my ubuntu and it work ok.
    but trough network, its do not work very well.

    example on my own laptop:
    http://localhost/wordpress/wp-admin… it work with sucess..

    example on other computer:
    http://192.168.100.90/wordpress/wp-admin… dont load for complete.

    my problem will to be, apache? mysql port?
    my conf…
    —————————————————————————–
    define(‘DB_NAME’, ‘wordpress’);

    /** Usuário do banco de dados MySQL */
    define(‘DB_USER’, ‘jjacodk’);

    /** Senha do banco de dados MySQL */
    define(‘DB_PASSWORD’, ‘asdpoiduhf’);

    /** Nome do host do MySQL */
    define(‘DB_HOST’, ‘localhost’);
    /** Charset do banco de dados a ser usado na criação das tabelas. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** O tipo de Collate do banco de dados. Não altere isso se tiver dúvidas. */
    define(‘DB_COLLATE’, ”);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Clayton James

    (@claytonjames)

    Any WordPress installation that uses “localhost” in the URL will only work from the machine it is installed on.

    If you want to view the site from your own private network, your laptop needs a static local network IP address, and that address will need to be used when you install WordPress.

    RossMitchell

    (@rossmitchell)

    The other option apart from using the server’s fixed IP address in “sita address” and “WordPress address” is to use the VirtualHost technique. (The server still needs a fixed IP address, for this example say it is 192.168.0.31 )
    Details here:
    http://httpd.apache.org/docs/current/vhosts/name-based.html
    You will put a block like this into the apache2 sites-enabled config files, probably /etc/apache2/sites-enabled/001-local :

    <VirtualHost *:80>
    DocumentRoot /var/www/wpB
    ServerName wpB.local
    ServerAlias www.wpB.local
    </VirtualHost>

    Then on the server computer “/etc/hosts” file add lines like:

    127.0.0.1	wpB.local
    127.0.0.1	www.wpB.local

    And in other computers on the same LAN segment that need to access your site, add these lines to the hosts file on each:

    192.168.0.31	wpB.local
    192.168.0.31	www.wpB.local

    Details on hosts files here:
    https://en.wikipedia.org/wiki/Hosts_(file)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘share throug network’ is closed to new replies.