Troubleshooting WordPress

    I can not access to my WordPress application

    Please select your deployment format of choice.

    Native Installer

    The first thing that you should check is if the servers are running. You can find a graphical tool in your installation directory to manage the servers. It is called "manager-windows", "manager-osx" or "manager-linux" depending on your platform.

    The default installation directories are:

    linux_platform.png On Linux: /home/user/wordpress-version

     

    win_platform.png On Windows: C:\Program Files\BitNami WordPress Stack

     

    mac_platform.png On OS X: /Applications/wordpress-version

     

    If you can not start one of them, check the logs "Application log" tab to see more information. If you have more than one BitNami Stack or a different server installed check that they are not using the same ports. You can also check the Apache log file or the MySQL log file.

    If the servers are running but you can not access to your application, check the URL where you are tyring to access. The default URL is http://127.0.0.1:8080/wordpress or http://127.0.0.1/wordpress if you has installed the Stack as "root" user.

    Virtual Machine

    First, you should check that the URL is correct and the servers are running. If you go to the Virtual Machine, you can see the IP address where you can access your application.

    virtual_machine.png

     

    If you can not see any IP address in this message, the problem is that the machine could not get it using DHCP so it is necessary to set the network configuration manually.

    If everything is correct, check that the servers are running. The main script is "/opt/bitnami/ctlscript.sh" and you can use it to manage the servers.

    $ sudo /opt/bitnami/ctlscript.sh status
    $ sudo /opt/bitnami/ctlscript.sh start
    

    If one of the servers are not started, you can check the Apache log file or the MySQL log file.

    AMI

    Fist, you can check if the URL is correct and the servers are running. If you have restarted your instance, the domain name could be changed and the IP address too. Check in the Amazon administration panel that you are trying to access to the correct URL.

    To check if your servers are running, you have to connect to the remote machine and run the following commands:

    $ sudo /opt/bitnami/ctlscript.sh status
    $ sudo /opt/bitnami/ctlscript.sh start

    If one of the servers are not started, you can check the Apache log file or the MySQL log file.

    Tabs end

     

    WordPress can not load images or CSS

    This issue usually happens when the machine IP address has changed. WordPress saves the IP address or the domain name in the database so if the machine IP address has changed it is necessary to update in the database as well.

    wordpress-issue2.png

     

    In previous WordPress versions ( < 3.3.1-5 ), it is necessary to update the domain name in the database. This error does not exist in recent versions of regular WordPress.

    The WordPress configuration gets the domain automatically but if you want to set by default, you can modify the wp-config.php file. You can find more info at /Applications/BitNami_Wordpress#How_to_change_the_WordPress_domain_name.3f

    WordPress Multisites requires to specify the domain in the database so you can check the following configuraton steps if you find this error.

    Native Installer

    The Hostname or IP address is configured to the machine IP address by default during the installation. If you set this option to "127.0.0.1" you can always access from your own computer always but others will not be able to access from your local network. This is a solution for developers.

    You can also update the IP address in the WordPress database. There are three options:

    • Using the Manager Tool. Since 3.2.1-5 version, this tool has a tab for "Advanced" configuration. In this tab you can reconfigure the IP address for the WordPress application. You can specify your public IP (it could change when you change your network), the local IP "127.0.0.1" or a custom domain name "example.com".

      manager-updateip.png

    • Using phpMyAdmin application. In this case it is necessary to change the following field in the "bitnami_wordpress" database: "wp_options->siteurl". You can access to your phpMyAdmin application at http://127.0.0.1:8080/phpmyadmin or http://127.0.0.1/phpmyadmin.

      Default user: root
      Default password: the same that you set during the installation

     

    • Using the MySQL client tool from the command line. In this case you should run the following commands from a "Terminal" or "Command Prompt".

       

      $ cd installdir 
      $ mysql/bin/mysql -u root -p -e "USE bitnami_wordpress; UPDATE wp_options SET option_value='http://NEW_IP:PORT/wordpress/' WHERE option_name='siteurl' OR option_name='home';"

      You can set your NEW_IP address or you can set to "127.0.0.1" if you are going to access your application from your own computer always.

    Virtual Machine/AMI

    The Virtual Machine and AMIs already contain a tool for updating the WordPress database using the new IP machine address called "updateip". This tool is in the "/opt/bitnami" directory and you can execute to change the Hostname or the IP in the application:

    $ sudo /opt/bitnami/updateip --machine_hostname NEW_IP
    

    If you already configured WorPress to access to a custom hostname, you can rename this tool to avoid to update it after booting the machine.

    $ sudo mv /opt/bitnami/updateip /opt/bitnami/updateip.back

    You can also use the MySQL command to change the exact field in the database:

    $ sudo mysql -u root -p -e "USE bitnami_wordpress; UPDATE wp_options SET option_value='http://NEW_IP:PORT/wordpress/' WHERE option_name='siteurl' OR option_name='home';"

    You can find more info about how to change the WordPress URL here.

    BitNami Hosting

    BitNami Cloud Hosting includes a tool for updating the WordPress database using the new IP machine address called "updateip". This tool is run automatically on every IP/dns change done in the BitNami Hosting console. It is located in the "/opt/bitnami/apps/wordpress" directory and you can execute it manually to change the Hostname or the IP in the application as follows:

    $ sudo /opt/bitnami/apps/wordpress/updateip --machine_hostname NEW_IP
    

    If you already configured WorPress to access to a custom hostname, you should rename this tool to avoid updates after booting the machine.

    $ sudo mv /opt/bitnami/apps/wordpress/updateip /opt/bitnami/apps/wordpress/updateip.disabled

    To restore your custom domain configuration, you can use the MySQL command to change the exact field in the database:

    $ mysql -u root -p -e "USE bitnami_wordpress; UPDATE wp_options SET option_value='http://DOMAIN/wordpress/' WHERE option_name='siteurl' OR option_name='home';"
    

    Replacing DOMAIN with your custom domain and removing "wordpress/" in case you have configured your application to be served in the root url.

    You can find more info about how to change the WordPress URL here.

     

    Tabs end

     

    My WordPress tries to contact external sites when I log in. What can I do?

    If you are monitoring your network outgoing connections you may realize that your WordPress installation tries to contact external resources such as api.wordpress.com, wordpress.org, planet.wordpress.org or blogsearch.google.com.

    Most of these connections are performed to feed the widgets in the dashboard and are completely harmless. If you still want to prevent them, you can remove the widgets by going to "Screen Options" in the top right corner:

    screen_options.png


    And deselecting all the desired widgets:

     

    dashboard_widgets.png

     

     

    Please note you will still see some connections because of WordPress checking for updates or if you have any plugins enabled.

    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    22692 view(s), 35 edit(s) and 14226 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments

    FileSizeDateAttached by 
     dashboard_widgets.png
    No description
    82.23 kB12:01, 16 Jan 2012JuanjoActions
    manager-osx.png
    manager-osx
    167.02 kB13:58, 3 Nov 2011AdminActions
    manager-osx2.png
    No description
    166.99 kB14:51, 3 Nov 2011AdminActions
     manager-osx3.png
    No description
    166.99 kB14:53, 3 Nov 2011AdminActions
     manager-updateip.png
    manager updateip
    54.93 kB08:50, 2 Dec 2011AdminActions
    manager.png
    manager
    34.75 kB13:58, 3 Nov 2011AdminActions
     manager2.png
    No description
    34.75 kB13:59, 3 Nov 2011AdminActions
     phpmyadmin-wp.png
    No description
    175.61 kB14:26, 3 Nov 2011AdminActions
     phpmyadmin-wp1.png
    No description
    60.64 kB14:26, 3 Nov 2011AdminActions
     phpmyadmin-wp2.png
    No description
    175.75 kB14:54, 3 Nov 2011AdminActions
     screen_options.png
    No description
    140.13 kB12:01, 16 Jan 2012JuanjoActions
     virtual_machine.png
    No description
    26.09 kB15:16, 3 Nov 2011AdminActions
     wordpress-issue.png
    No description
    25.41 kB14:11, 3 Nov 2011AdminActions
     wordpress-issue2.png
    No description
    51.75 kB14:13, 3 Nov 2011AdminActions