Support » Installing WordPress » stuck before setup screen

  • I am trying to install WORDPRESS on a dedicated desktop that I have which I have
    installed UBUNTU SERVER 16.04. From another computer’s browser on my home
    network when typing the servers address I obtain “it works” with the apache2
    ubuntu default page. If I type in I can read the content of
    “PHP Version 7.0.8-0ubuntu0.16.04.3 etcetera. I can log in to Mysql & prompt.

    I then downloaded & extracted the latest wordpress file I firstly transferred the ‘wordpress’
    directory and its files & subdirectories to /var/www/html. Then I saw in another article that
    I should not have transferred the ‘wordpress’ directory but only all its contents of files & subdirectories. So I did that and have included shots of the content of my var/www/html/
    directory and my wp-config.php file.

    I have spent lots of time trying to obtain the setup screen with no luck. Hoping someone
    might give me a clue as to why I am going nowhere. It would be much appreciated.

    Also could the file index.html be a problem? I’m not sure what needs to be done here!.

    As I don’t appear to be able to attach photos so the contents of my wp-config.php file are

    define(‘DB_NAME’, ‘wp_myblog’);
    define(‘DB_USER’, ‘wp_user’);
    define(‘DB_PASSWORD’, ‘possum36!’);
    define(‘DB_HOST’, ‘localhost’);
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    Contents of my /var/www/html/ folder

    index.html license.txt wp-admin wp-config.php wp-login.php wp-includes wp-login.php
    index.php readme.html wp-blog-header.php wp-content wp-links-opml.php wp-mail.php
    info.php wp-activate.php wp-comments.php wp-cron.php wp-load.php wp-settings.php

    NOTE wp-admin,wp-includes,wp-content are FOLDERS

    I have used information from the following wesites that I used as help to get as far asI have.

    Install WordPress 4-6 in ubuntu 16.04 with lamp stack [updated] – OSTECHNIX.

    How to install WordPress 4.6 on ubuntu 16.04 using lampstack (

    Installing WordPress (

    From the wp-includes folder however ,in the file version.php, I am using WordPress 4.7

    Thanks John

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello John,

    You have to configure Apache to serve the PHP files. is your root. You can create a folder /var/www/html/MyExampleSite/ and place all your WordPress files in MyExampleSite to keep it organized.

    The Digital Ocean guide should be very helpful for you. They have detailed explanation on how you can set up Ubuntu and Apache to prep your local web server.

    Thread Starter lwinsa


    Thankyou for your prompt response MDD. I want to know whether the contents of the unpacked wordpress download in my folder /home/john/wordpress are to be transfered to /var/www/html/MyExampleSite or to /var/www/html/MyExampleSite/wordpress. That is do I include the original folder or not. Of course I won’t call the new folder MyExampleSite. Thanks again

    Hey John,

    Glad that my answer helped.

    The answer to your question really depends on the URL structure that you require. If you prefer to have something like then you can just copy the contents of WordPress to your root folder. If you prefer to have then, copy the contents to /blog/ in your root.

    Note: You can have a site like and still have WordPress files in a sub-directory. This is done to keep things organized. It boils down to your preference. WordPress Codex will help you achieve this method if you prefer to use it.

    Keith Driscoll


    Just wanted to add that you could also just copy the wordpress folder to /var/www/html and rename it to the name of the site you will be creating. For example, you could rename the folder to

    Then just access the site at WordPress will run the install and automatically create the wp-config file for you. As per MySQL docs, you can use the built in test database for development along with the user root with no password (blank). Just be sure to use a unique table prefix for each WordPress install.

    Thread Starter lwinsa


    Also thankyou to Keith Driscoll for your reply. Will do my best to follow all suggestions and get my head around them

    Keith Driscoll


    adding #modlook tag because @royce8811 is a spam account.

    Keith Driscoll


    @lwinsa Welcome!

    Moderator Jan Dembowski


    Forum Moderator and Brute Squad

    You would have added modlook but you typoed it. It’s modlook without the single quotes.

    *Drinks coffee*

    Fixed. 😉

    Thread Starter lwinsa


    Just to let you know, The suggestion from Keith worked for me first shot. I have also followed the Digital Ocean “How to setup Apache Virtual Hosts on Ubuntu 14.04 LTS. I can successfully follow the steps and having installed the Browser ‘LINKS” on the server machine and typing and I can get the relevant page “Success! The virtual host is working!” or “Success! The virtual host is working”. Got no idea how to get that response from a client machine on my own internal network.
    Also it makes a document roots under the /var/www directory as /var/www/ & /var/www/ Could the WordPress folder be put under one of these and say the Joomla folder under the other. I could be sprouting a lot of rubbish here as I am not understanding the method of addressing as given me by Keith Thanks

    Keith Driscoll


    You should just copy the contents of the wordpress folder to the public_html folder. Joomla (or any other CMS) should work very similar…as long as it is in the public_html folder since this is going to serve as the root folder of each website.

    Having your local workstations access the internal/local websites is possible but requires setting up Ubuntu to act as a DNS server. It can seem a bit complicated if you’re not familiar with servers, but can be done!

    Thread Starter lwinsa


    Thanks to all who have helped me. I watched a youtube video by Eli the computer guy who showed me how to modify the hosts file on another machine to point to my server and so when I type in my browser ‘’ or other of my virtual host names I get the correct pages Thanks again.

    Maria Daniel Deepak




Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘stuck before setup screen’ is closed to new replies.