Title: Customized wordpress installation
Last modified: January 30, 2020

---

# Customized wordpress installation

 *  [anaigini](https://wordpress.org/support/users/anaigini/)
 * (@anaigini)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customized-wordpress-installation/)
 * Hi,
 * I need to install wordpress in a development server.
    I have installed prerequisites
   of php 7.2.3, apache-2.4.4.1, and mariadb 10.2. Both php and apache are source
   code installations, because that is our company’s SOP. The problem that I face
   now is after I complete the wordpress installation, when I open the browser to
   point to the web page, I can see that apache is successfully installed as the
   browser shows “It Works!”. However, it does not show the wordpress configuration
   page. I do not know where I am going wrong. Since this is a source code installation
   of apache, the Document Root is not /var/www/html but instead it is /usr/local/
   apache2/htdocs. I have copied the wordpress files to this directory. I have followed
   the wordpress installation steps exactly, and even double checked to confirm.
 * Please help be debug the problem.
    -  This topic was modified 6 years, 3 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [mzaheerdad](https://wordpress.org/support/users/zaheerdad/)
 * (@zaheerdad)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customized-wordpress-installation/#post-12380423)
 * Enable WP debugging,
 * [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
 * You will be able to see the root cause
 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customized-wordpress-installation/#post-12381617)
 * May I summarize what we know about your configuration using what you have told
   us, and point you at what you need to do next.
    1) Your apache server is installed
   and able to display the base HTML file “It works” 2) You have not tested that
   PHP is configured or working. 3) You have not tested that the database is configured
   and working. 4) You need to configure apache to map a network name to the website
   root directory. I would suggest that you use the “VirtualHost” scheme. You may
   end up using settings like these in your “sites-enabled” files:
 *     ```
       <Directory /home/ross/web>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
       </Directory>
       <VirtualHost *:80>
       DocumentRoot /home/ross/web/project
       ServerName domainName.com
       ServerAlias www.domainName.com
       </VirtualHost>
       ```
   
 * 5) Test your work on pt 4 by loading the WordPress supplied file
    `http://domainName.
   com/readme.html` 6) NOW you can run the WordPress install script `http://domainName.
   com/wp-admin/install.php` this will most likely clear pts 2 and 3 above, otherwise
   you will have to fix the issues by searching and asking on other forums since
   these are not WordPress issues. 7) Do even more configuring if you want to use
   SSL (https)
 * I am sure you will learn a lot.
    -  This reply was modified 6 years, 3 months ago by [RossMitchell](https://wordpress.org/support/users/rossmitchell/).
    -  This reply was modified 6 years, 3 months ago by [RossMitchell](https://wordpress.org/support/users/rossmitchell/).
 *  Thread Starter [anaigini](https://wordpress.org/support/users/anaigini/)
 * (@anaigini)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customized-wordpress-installation/#post-12383749)
 * Hi,
 * I managed to resolve pt 2, now the PHP page displays PHP details.
    However I 
   have been stuck in the “Error establishing a database connection” for some time
   now, and after checking so many things, still not able to resolve the problem.
   This is the full error displayed on the page :
 *     ```
       Error establishing a database connection
   
       This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
   
           Are you sure you have the correct username and password?
           Are you sure you have typed the correct hostname?
           Are you sure the database server is running?
   
       If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
       ```
   
 * I checked that my server is listening to the mysql port 3306, I can see the maridb
   process running, and I can even login to the database. The wp-config.php as all
   the details matching the db, ie DB_USER, DB_NAME, DB_PASS, DB_HOST. DB_HOST is
   localhost. I did not put the server domain name.
 * The final thing I did was to reset the DB PASS to a stronger one. I then restarted
   mysql and httpd, and still same error.
 * And I enabled debugging for wp_config.php. So I believe the logs will be generated
   in wp-content/debug.log if there is a problem loading [http://myserverip/wp-admin/install.php](http://myserverip/wp-admin/install.php)
   correctly? Well, I don’t see anything generated here even when the page fails
   to load correctly.
 * How do proceed?
    -  This reply was modified 6 years, 3 months ago by [anaigini](https://wordpress.org/support/users/anaigini/).
 *  Thread Starter [anaigini](https://wordpress.org/support/users/anaigini/)
 * (@anaigini)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customized-wordpress-installation/#post-12384145)
 * It turns out that in wp_config.php, DB_HOST has to be ‘127.0.0.1’ instead of 
   localhost.
    I am sure there is a better way to address this, but I haven’t tried
   it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customized wordpress installation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [anaigini](https://wordpress.org/support/users/anaigini/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/customized-wordpress-installation/#post-12384145)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
