• Resolved dzarelli

    (@dzarelli)


    Hello –

    CentOS 7 – We have a multi-site that was recently installed a directory authentication plugin on (WpDirAuth). After installation, we noticed a banner at the top of our wp-admin stating that php-ldap was required for the plugin to work properly. I attempted to install the php-ldap package via yum using sudo yum install php56-php-ldap and was told it conflicted with the existing php package install. After some googling I decided to remove the existing PHP install using the following command: sudo yum remove php which appeared to work fine. I already had the remi repo installed and used sudo yum-config-manager --enable remi-php56 to enable php56. Then I ran the following command to install PHP56 packages sudo yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfowhich installed the packages. Running php -v now shows PHP 5.6.37 (cli) installed. However, after this, I restarted httpd and when browsed the main blog page, it displayed fine, however, when I tried to access wp-admin I get connection refused. I’ve tried this in multiple browsers in “in-private” and “incognito” modes to eliminate caching and cookine issues, but the wp-admin.php still won’t come up.

    I tried removing all packages using sudo yum remove php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo and reinstalling, but the results are the same. Can anyone please provide me with some assistance to help determine what the issue is? This is a critical site for our team and I would like to recover it ASAP.

    Thanks for the help!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dzarelli

    (@dzarelli)

    I checked /var/www/log/html/error_log and see the following message(s) repeated numerous time after the PHP upgrade –

    [Mon Aug 27 09:49:44.776717 2018] [:error] [pid 38351] [client 10.184.192.155:50577] PHP
    Warning: Creating default object from empty value in /var/www/html/wp-content/themes/platformpro/core/library/class.layout.php on line xxx

    Thread Starter dzarelli

    (@dzarelli)

    Also noticing that while I am able to resolve the main site – call it https://blog, It’s redirecting me to https if I try to access wp-admin. There is no cert installed on the backup site. Could this cause the issue I’m seeing? Thanks

    Thread Starter dzarelli

    (@dzarelli)

    Discovered this was due to wpdirauth having the “require SSL login” option checked and no certificate installed. Attempts to access wp-admin were being redirected to https. Luckily, I was able to resolve this by using a previously opened window that was already authenticated to access the wpdirauth settings and disable this option. After that, wp-admin was displayed correctly over http.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Connection Refused to wp-admin after PHP upgrade’ is closed to new replies.