• ptrochim

    (@ptrochim)


    Hi

    It’s my first time configuring a web server, not to mention installing WordPress on it, so I’m probably doing something wrong.

    I’ve installed Apache 2.4 server, installed PHP and enabled it on it, installed a MySql 5.6 server, and even the suggested MySqli 1.1 plugin I found on your page.
    Each step of that way ( except for after installing the Apache – I knew I had to have a web server installed first ), I was trying to start the wp-admin/install.php script ( from a localhost of course, I’m omitting the fore part of the address here ).

    The error messages I received from the script evolved from the ‘php not enabled’ page, through the ‘no sql database’ to this – a blank page.

    Since I’ve nothing more to go on here, I was hoping you could help and tell me what else am I missing.

    The thing that has me worried is the mysql connection configuration in my php.ini file:

    [MySQL]
    ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
    ; https://php.net/mysql.allow_local_infile
    mysql.allow_local_infile = On
    
    ; Allow or prevent persistent links.
    ; https://php.net/mysql.allow-persistent
    mysql.allow_persistent = On
    
    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; https://php.net/mysql.cache_size
    mysql.cache_size = 2000
    
    ; Maximum number of persistent links.  -1 means no limit.
    ; https://php.net/mysql.max-persistent
    mysql.max_persistent = -1
    
    ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
    ; https://php.net/mysql.max-links
    mysql.max_links = -1
    
    ; Default port number for mysql_connect().  If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
    ; at MYSQL_PORT.
    ; https://php.net/mysql.default-port
    mysql.default_port = 3306
    
    ; Default socket name for local MySQL connects.  If empty, uses the built-in
    ; MySQL defaults.
    ; https://php.net/mysql.default-socket
    mysql.default_socket =
    
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    ; https://php.net/mysql.default-host
    mysql.default_host = localhost
    
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    ; https://php.net/mysql.default-user
    mysql.default_user = 
    
    ; Default password for mysql_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
    ; and reveal this password!  And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    ; https://php.net/mysql.default-password
    mysql.default_password = 
    
    ; Maximum time (in seconds) for connect timeout. -1 means no limit
    ; https://php.net/mysql.connect-timeout
    mysql.connect_timeout = 60
    
    ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    ; SQL-Errors will be displayed.
    ; https://php.net/mysql.trace-mode
    mysql.trace_mode = Off

    I removed my login credentials, but I have them filled in here, and it still doesn’t work.

    Anyway – all help will be greatly appreciated.
    Thank you very much,
    Piotr Trochim

Viewing 7 replies - 1 through 7 (of 7 total)
  • RossMitchell

    (@rossmitchell)

    Can you load “https://localhost/readme.html” ? It should tell you which WordPress version you have. It will test that your essential apache config is correct.

    Otherwise all I can suggest is that you search out whatever error logs your apache creates.

    Myself I have only ever installed Ubuntu (Linux) all in one Apache/MySQL/PHP bundles, have never had to look at my php.ini file.

    Suggest that you install “phpmyadmin” to help with managing your databases.
    Which platform are you running ? Linux / Windows / Mac

    Thread Starter ptrochim

    (@ptrochim)

    Thanks for the hint Ross.
    I’m trying to set mine up on Windows, and I couldn’t find a bundle that would consist of all those apps – I have to go step by step.

    I checked the readme.html out – well, the version is 4.0.1, and apart from making a false claim to be a 5 minute process, it doesn’t say anything else that would help – specifically it doesn’t test any web server configuration or anything…

    Anything else I can check?

    Senff

    (@senff)

    In my experience, installing Apache and PHP and MySQL separately always caused problems of all kinds, and I rarely have that when I install a bundle (WAMP in my case).

    What do you mean when you say you can’t find a bundle? What OS are you using? There are bundles available for Mac, PC, Linux so perhaps you missed that? I definitely recommend that over installing each part individually.

    Thread Starter ptrochim

    (@ptrochim)

    Wamp… I’ll check it out. Thanks for the name

    RossMitchell

    (@rossmitchell)

    The point of loading readme.html is that it tests about half the configuration, that your name is mapped right, that it can do html.
    Believe me that when all the holes in the swiss cheese are lined up, 5 minutes is not too unrealistic.

    @mark makes a good point on finding a bundle.

    Thread Starter ptrochim

    (@ptrochim)

    I installed the bundle and indeed everything started working fine – thanks for the hint and the name.

    But I still don’t see whrere are those diagnostics you mention on the readme page. The one I found in the main wordpress dir shows only the installation and upgrade instructions – nothing else.

    RossMitchell

    (@rossmitchell)

    Sorry, just being able to load the readme page IS the diagnostic.

    Don’t worry about this for the moment, but it is very worthwhile:
    At the moment you are probably loading your WordPress as “https://localhost/”
    A more advanced configuration lets you run multiple websites, all with their own names. The names go into the hosts file, details here:
    https://en.wikipedia.org/wiki/Hosts_%28file%29
    And also some lines added into apache config files.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘installation script renders a blank page’ is closed to new replies.