• Resolved DDoubleD

    (@ddoubled)


    Running Ubuntu server 12.04.4 64 bit with LAMP installed. Running WordPress 3.9 (I think thast teh lates version) I installed teh BigBlueButton plugin.

    If I browsers into the server with its IP https:// 172.16.0.10 all I get the default apache page

    It works!
    This is the default web page for this server.
    The web server software is running but no content has been added, yet.

    https://172.16.0.10/login – I get the same as above
    https://172.16.0.10/wp-admin – I get the log on page and I am able to log in create pages and such but if I click view page I get the dreaded default apache page

    It works!
    This is the default web page for this server.
    The web server software is running but no content has been added, yet.

    Help How do I fix this ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DDoubleD

    (@ddoubled)

    OK I figured it out

    The WordPress Ubuntu Install instructions were for a virtual server. I was installing local so while doing the installation WP was installed to to the user’s home directory. The instructions did issue the following command sudo rsync -avP ~/wordpress/ /var/www/ but the worppress directry didn’t seem to make it to /var/www – Not sure why or may be I had remnants from a previous install attempt

    I deleted everything WordPress including the MySQL db. CDed to /var/www wget the latest of WP and proceeded to do the install skipping the RSYNC instruction

    I think all is well now when I view y site it actually works. In my config I have to http/server ip/wordpress I suppose if I want to change the site name I can alias it in apache

    My only question now is – Is ths the correct way to install Word Press and is it OK that all the WordPress directories are in /var/www/wordpress

    THANKS for ALL THE HELP

    Step One—Download WordPress
    We can download WordPress straight from their website:

    cd /var/www
    sudo wget https://www.ads-software.com/latest.tar.gz

    This command will download the zipped wordpress package straight to your user’s home directory. You can unzip it the the next line:
    sudo tar -xzvf latest.tar.gz

    Step Two—Create the WordPress Database and User
    After we unzip the wordpress files, they will be in a directory called wordpress in the home directory.

    Now we need to switch gears for a moment and create a new MySQL directory for wordpress.

    Go ahead and log into the MySQL Shell:
    mysql -u root -p

    Login using your MySQL root password, and then we need to create a wordpress database, a user in that database, and give that user a new password. Keep in mind that all MySQL commands must end with semi-colon.

    First, let’s make the database (I’m calling mine wordpress for simplicity’s sake; feel free to give it whatever name you choose):
    CREATE DATABASE {enter WordPress db name here};
    Query OK, 1 row affected (0.00 sec)

    Then we need to create the new user. You can replace the database, name, and password, with whatever you prefer:
    CREATE USER {enter WordPress SQL User here}@localhost;
    Query OK, 0 rows affected (0.00 sec)

    Set the password for your new user:
    SET PASSWORD FOR {enter WordPress SQL User here}@localhost= PASSWORD(“{enter password}”);
    Query OK, 0 rows affected (0.00 sec)

    Finish up by granting all privileges to the new user. Without this command, the wordpress installer will not be able to start up:
    GRANT ALL PRIVILEGES ON {enter WordPress db name here}.* TO {enter WordPress SQL User here}@localhost IDENTIFIED BY ‘{enter password}’;
    Query OK, 0 rows affected (0.00 sec)

    Then refresh MySQL:
    FLUSH PRIVILEGES;
    Query OK, 0 rows affected (0.00 sec)

    Exit out of the MySQL shell:
    exit
    Step Three—Setup the WordPress Configuration
    The first step to is to copy the sample wordpress configuration file, located in the wordpress directory, into a new file which we will edit, creating a new usable wordpress config:
    sudo cp ./wordpress/wp-config-sample.php ./wordpress/wp-config.php

    Then open the wordpress config:
    sudo vi ./wordpress/wp-config.php

    Find the section that contains the field below and substitute in the correct name for your database, username, and password:
    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wordpress’);

    /** MySQL database username */
    define(‘DB_USER’, ‘wordpressuser’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password’);
    Save and Exit.

    Step Four—Copy the Files WE ARE INSTALLING LOCAL NOT A TO VIRTUAL SERVER so skip this
    We are almost done uploading WordPress to the virtual private server. The final move that remains is to transfer the unzipped WordPress files to the website’s root directory.
    sudo rsync -avP ~/wordpress/ /var/www/

    Finally we need to set the permissions on the installation. First, switch in to the web directory:
    cd /var/www/

    Give ownership of the directory to the apache user.
    sudo chown username:www-data /var/www -R
    sudo chown www-data:www-data /var/www -R
    sudo chmod g+w /var/www -R

    From here, WordPress has its own easy to follow installation form online.

    However, the form does require a specific php module to run. If it is not yet installed on your server, download php-gd:

    sudo apt-get install php5-gd

    sudo rm /var/www/latest.tar.gz

    cd /var/www/wordpress/wp-includes/
    sudo vi class-snoopy.php

    find the following lines and chage accordingly

    var $proxy_host = “172,16.50.1”; // proxy host to use
    var $proxy_port = “8080”; // proxy port to use
    var $proxy_user = “”; // proxy user to use
    var $proxy_pass = “”; // proxy password to use

    and

    var $_isproxy = true; // set if using a proxy server

    Thread Starter DDoubleD

    (@ddoubled)

    OK Still having issues – lets start all over from scratch

    I’ll open a new post if I run into trouble

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress – View not working for anything Posts, Pages’ is closed to new replies.