Upgrading to php 5.4 and can't access ispconfig anymore.

Discussion in 'Installation/Configuration' started by coreyman, Jul 2, 2014.

  1. coreyman

    coreyman New Member

    First: I checked the log files in /var/log and ran the handy 'common problems' script. I didn't see anything in the script or logs that would help. I also googled my problem.

    I installed the remi repository and removed php 5.3 from the server and installed php 5.4 from remi. I restarted the httpd service and browsed to my server here -http://167.160.93.147:8080/ as you can see the browser just sits there and loads, nothing ever shows up. What do I need to do?
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Which webserver software do you use, apache or nginx?

    • Post the errors that you find in the global webserver error.log and the ones from the error.log of the website. The global log file is e.g. in /var/log/apache2/ for the apache server and the website error log is in /var/www/yourdomain.tld/log/
     
  3. srijan

    srijan New Member HowtoForge Supporter

    To my correction of above post please check the global apache error.log for errors.
     
  4. helly88

    helly88 Member

    I'm having the same problem. I updated to PHP 5.4(.29)from IUS.. ISPconfig page loads and loads until I get a timeout.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    We cant help you if you dont post the requested details from the error.log.
     
  6. helly88

    helly88 Member

    I'm not sure my error is php upgrade related.
    I don't get a new entry in the error log when trying to access ISPconfig. It's like the server does not know where to find ISPconfig (timeout).


    tail -f /var/log/httpd/error_log
    [Sun Jun 29 03:50:24 2014] [notice] Digest: generating secret for digest authentication ...
    [Sun Jun 29 03:50:24 2014] [notice] Digest: done
    [Sun Jun 29 03:50:24 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
    [Sun Jun 29 03:50:24 2014] [notice] mod_python: using mutex_directory /tmp
    [Sun Jun 29 03:50:25 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Sun Jun 29 03:50:25 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.9 PHP/5.4.29 mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, maybe the php update removed or overwrote some config files. Try to download the ispconfig tar.gz again, unpack it and run the update.php script in the install folder. choose to reconfigure services during update.
     
  8. helly88

    helly88 Member

    Done.
    Still can't load the page. Nothing in the error_log..

    Any other suggestions? I'm also having trouble with roundcube. I will not send mails. Sending mail via thunderbird etc works. Don't know if the problems are related. Tried updating RC with out any change.

    EDIT: The update fixed the problem with roundcube!
     
    Last edited: Jul 2, 2014
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    netstat -tap

    and

    iptables -L
     
  10. helly88

    helly88 Member

    netstat -tap
    Code:
    [root@px08 install]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:imaps                     *:*                         LISTEN      23030/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      23030/dovecot
    tcp        0      0 localhost.localdomain:10024 *:*                         LISTEN      22982/amavisd (mast
    tcp        0      0 localhost.localdomain:10025 *:*                         LISTEN      22907/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      22775/mysqld
    tcp        0      0 localhost.localdomain:10027 *:*                         LISTEN      22907/master
    tcp        0      0 *:submission                *:*                         LISTEN      22907/master
    tcp        0      0 *:pop3                      *:*                         LISTEN      23030/dovecot
    tcp        0      0 localhost.local:dyna-access *:*                         LISTEN      15210/clamd
    tcp        0      0 *:imap                      *:*                         LISTEN      23030/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      829/rpcbind
    tcp        0      0 *:37778                     *:*                         LISTEN      847/rpc.statd
    tcp        0      0 *:ftp                       *:*                         LISTEN      23117/pure-ftpd (SE
    tcp        0      0 *:ssh                       *:*                         LISTEN      1048/sshd
    tcp        0      0 localhost.localdomain:ipp   *:*                         LISTEN      992/cupsd
    tcp        0      0 *:smtp                      *:*                         LISTEN      22907/master
    tcp        0      0 localhost.localdomain:49298 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49323 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49315 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49336 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49324 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49308 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49305 localhost.localdomain:mysql ESTABLISHED 26775/smtp
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49334 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43755 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49303 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43753 TIME_WAIT   -
    tcp        0      0 px08.net:imaps              gatekeeper.alesund.ko:21929 ESTABLISHED 23768/dovecot/imap-
    tcp        0      0 localhost.localdomain:49300 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49305 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49306 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49299 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49322 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49326 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49327 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43728 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49290 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49294 TIME_WAIT   -
    tcp        0      0 px08.net:imaps              gatekeeper.alesu:inovaport1 ESTABLISHED 23928/dovecot/imap-
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49309 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49325 localhost.localdomain:mysql ESTABLISHED 26817/smtpd
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49343 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49313 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43734 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49329 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:10025 localhost.localdomain:50470 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49327 localhost.localdomain:mysql ESTABLISHED 26817/smtpd
    tcp        0      0 px08.net:ssh                gatekeeper.alesund.ko:12165 ESTABLISHED 14365/sshd
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49317 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:smtp  localhost.localdomain:42174 TIME_WAIT   -
    tcp        0      0 px08.net:imaps              gatekeeper.alesund.ko:22981 ESTABLISHED 23922/dovecot/imap-
    tcp        0   5472 px08.net:ssh                gatekeeper.alesund.ko:19373 ESTABLISHED 16895/sshd
    tcp        0      0 localhost.localdomain:49295 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49310 TIME_WAIT   -
    tcp        0      0 px08.net:imaps              gatekeeper.alesund.ko:23178 ESTABLISHED 23934/dovecot/imap-
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43775 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49325 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:48942 localhost.localdomain:mysql ESTABLISHED 23004/amavisd (ch3-
    tcp        0      0 px08.net:34135              julie.alesund.kommune.:smtp TIME_WAIT   -
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43733 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43772 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49303 localhost.localdomain:mysql ESTABLISHED 26773/smtp
    tcp        0      0 localhost.localdomain:49304 localhost.localdomain:mysql ESTABLISHED 26772/error
    tcp        0      0 px08.net:imaps              gatekeeper.alesund.ko:23156 ESTABLISHED 23932/dovecot/imap-
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43748 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:48942 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43744 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:48973 ESTABLISHED 22775/mysqld
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43749 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49343 localhost.localdomain:mysql ESTABLISHED 26844/smtp
    tcp        0      0 localhost.localdomain:48973 localhost.localdomain:mysql ESTABLISHED 23005/amavisd (ch3-
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43730 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49304 ESTABLISHED 22775/mysqld
    tcp        0      0 px08.net:imaps              gatekeeper.alesund.ko:12909 ESTABLISHED 23186/dovecot/imap-
    tcp        0      0 localhost.localdomain:43751 localhost.localdomain:imap  TIME_WAIT   -
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43768 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49320 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:imap  localhost.localdomain:43776 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49337 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49319 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49326 localhost.localdomain:mysql ESTABLISHED 26817/smtpd
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:49292 TIME_WAIT   -
    tcp        0      0 localhost.localdomain:49328 localhost.localdomain:mysql TIME_WAIT   -
    tcp        0      0 *:imaps                     *:*                         LISTEN      23030/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      23030/dovecot
    tcp        0      0 *:pop3                      *:*                         LISTEN      23030/dovecot
    tcp        0      0 *:imap                      *:*                         LISTEN      23030/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      829/rpcbind
    tcp        0      0 *:webcache                  *:*                         LISTEN      23058/httpd
    tcp        0      0 *:http                      *:*                         LISTEN      23058/httpd
    tcp        0      0 *:tproxy                    *:*                         LISTEN      23058/httpd
    tcp        0      0 *:ftp                       *:*                         LISTEN      23117/pure-ftpd (SE
    tcp        0      0 *:ssh                       *:*                         LISTEN      1048/sshd
    tcp        0      0 localhost6.localdomain6:ipp *:*                         LISTEN      992/cupsd
    tcp        0      0 *:60663                     *:*                         LISTEN      847/rpc.statd
    tcp        0      0 *:https                     *:*                         LISTEN      23058/httpd
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:35193 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10646 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10499 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesun:MOS-lower TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10493 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10820 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10497 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10539 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10821 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:35194 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:35197 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10625 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10498 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10779 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10496 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:35196 TIME_WAIT   -
    tcp        0      0 px08.net:http               gatekeeper.alesund.ko:10810 TIME_WAIT   -
    
    Iptables -L

    Code:
    [root@px08 install]# iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain fail2ban-SSH (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
     
  11. coreyman

    coreyman New Member

    I too already ran the update before posting this. I'm running apache and here are the log files even though I already said there is nothing relevant in them.

     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to turn off the firewall with:

    iptables --flush
     
  13. coreyman

    coreyman New Member

    Wow

    I just did
    and it is accessible now, even though I couldn't see any rules in iptables -L
    How did upgrading php modify iptables rules?
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe it reactivated the centos system fireawll or the firewall was just temporarily disabled and got activated by a reboot.
     
  15. helly88

    helly88 Member

    That didn't help me. Can you see anything wrong?
     

Share This Page