PHP 5.4.42, 5.5.26, 5.6.10 und (NEU!) PHP 7.0.0

  • Die optionalen PHP-Pakete für Debian wurden eben auf die Versionen 5.4.42, 5.5.26 und 5.6.10 aktualisiert (siehe Wiki).


    NEU: ab sofort stehen diese Pakete auch für Debian 8 (Jessie) zur Verfügung. Anders als bei Squeeze/Wheezy werden wir auch für die eigentlich über die Distribution verfügbare Serie (in diesem Fall 5.6.x) eigene PHP-Pakete bereitstellen (bei Jessie ist standardmäßig PHP 5.6.9 dabei).


    NEU: ab sofort steht zudem PHP 7.0.0-alpha1 zur Verfügung. Vom produktiven Einsatz rät das PHP-Team noch ab, aber erste Tests sind somit schon mal möglich. PHP 7 soll bis zu doppelt so schnell sein wie 5.6. Weitere Infos dazu gibt's auf der PHP-Website.

  • I have a problem with 5.4.42 php version


    I install it from your repos,
    with
    apt-get install php-5.4-opt


    and got this error:


    Internal Server Error


    The server encountered an internal error or misconfiguration and was unable to complete your request.


    Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.


    More information about this error may be available in the server error log.
    Apache/2.4.10 (Debian) Server at domain.com Port 80



    apache error log say:
    [Tue Jul 07 16:35:47.975517 2015] [fcgid:warn] [pid 5326] (104)Connection reset by peer: [client 31.223.129.238:8067] mod_fcgid: error reading data from FastCGI server
    [Tue Jul 07 16:35:47.975533 2015] [core:error] [pid 5326] [client 31.223.129.238:8067] End of script output before headers: index.php




    server is:
    debian jessie 8.1
    apache 2.4.10


    5.5.26 fork fine, and 5.6.10 so.


    but 5.4 is problem.

  • Please select any hosting subscription (eg. "web1"). Back up the php.ini file for PHP 5.4.x from that subscription (something like "~web1/conf/php54/php.ini").
    Then - in LiveConfig - log in as admin, switch to that user (web1), open "Hosting" -> "Webspace", and then edit the php.ini settings for that subscription. Switch "log_errors" to "on".
    Wait a minute, then open the website again. If the error persists, please have a look at ~web1/logs/priv/php_errors.log. If the error has gone, please compare the current (new) php.ini file with the one backed up previously (something like "diff ~web1/conf/php54/php.ini /tmp/old_php.ini")

  • nothing changed,
    the are no logs in ~web/logs/priv/php_errors.log


    the error is shown in /var/log/apache2/error.log


    differences are only


    diff php.ini php.ini.bak


    < log_errors = On
    ---
    > log_errors = Off

  • Please run:


    Code
    sudo -u www-data -H /opt/php-5.4/bin/php-cgi -v


    Should look:


    Code
    ~# sudo -u www-data -H /opt/php-5.4/bin/php-cgi  -v
    PHP 5.4.42 (cgi-fcgi) (built: Jun 14 2015 10:46:39)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    ~#


    Missing librarys will be shown - although the package does install those automatically.

  • And what's with

    Code
    sudo -u web1 -H /opt/php-5.4/bin/php-cgi -c /var/www/web1/conf/php54 /var/www/web1/htdocs/###your_php_script###.php


    (replace "web1" with the affected subscription name, and "###your_php_script###.php" with the path to a real script).


    Have you tried to call a phpinfo() file? Does it work or do you get the same error?

  • Yes they load me phpinfo
    from cli


    but from web dont work



    sudo -u web1 -H /opt/php-5.4/bin/php-cgi -c /var/www/web1/conf/php54 /var/www/web1/htdocs/php.php
    X-Powered-By: PHP/5.4.42
    Content-type: text/html


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    <style type="text/css">
    body {background-color: #ffffff; color: #000000;}
    body, td, th, h1, h2 {font-family: sans-serif;}
    pre {margin: 0px; font-family: monospace;}
    a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
    a:hover {text-decoration: underline;}
    table {border-collapse: collapse;}
    .center {text-align: center;}
    .center table { margin-left: auto; margin-right: auto; text-align: left;}
    .center th { text-align: center !important; }
    td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
    h1 {font-size: 150%;}
    h2 {font-size: 125%;}
    .p {text-align: left;}
    .e {background-color: #ccccff; font-weight: bold; color: #000000;}
    .h {background-color: #9999cc; font-weight: bold; color: #000000;}
    .v {background-color: #cccccc; color: #000000;}
    .vr {background-color: #cccccc; text-align: right; color: #000000;}
    img {float: right; border: 0px;}
    hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
    </style>
    <title>phpinfo()</title><meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" /></head>
    <body><div class="center">
    <table border="0" cellpadding="3" width="600">
    <tr class="h"><td>
    <a href="http://www.php.net/"><img border="0" src="?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /></a><h1 class="p">PHP Version 5.4.42</h1>
    </td></tr>
    </table><br />
    <table border="0" cellpadding="3" width="600">
    <tr><td class="e">System </td><td class="v">Linux NS2 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 </td></tr>
    <tr><td class="e">Build Date </td><td class="v">Jun 14 2015 10:44:14 </td></tr>
    .......

  • Hello,


    problem was that /var/www/web1/conf/php54/
    has root:root permission and chmod 700


    I don’t now have that’s happens, does it liveconfig failed or something else, but now when i manual set web1:web1 privileges
    now fork fine from web.


    regards

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!