Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > Bugs > Topic : Multiple PHP-Versions



Normal Mode | Print  

Multiple PHP-Versions
drapet
Group: Member
Post Group: Newbie
Posts: 1
Status:
Quote From : daniel.bair November 22, 2019, 12:29 am
This is my solution:
First edit /usr/local/apps/php56/bin/fpmctl56
Code
sudo vi /usr/local/apps/php56/bin/fpmctl56
And modify it like this:
Code
pidfile=/var/run/php-fpm56.pid
OPTIONS="-R --pid /var/run/php-fpm56.pid --fpm-config /usr/local/apps/php56/etc/php-fpm.conf -c /usr/local/apps/php56/etc/php.ini"
After that run:
Code
sudo /usr/local/apps/php56/bin/fpmctl56 start

Then edit your .htaccess and add this:
Code
# Use PHP5.6 as default
<FilesMatch \.php$>
        <If "-f %{REQUEST_FILENAME}">
                SetHandler "proxy:unix:/usr/local/apps/php56/var/php56_9000.sock|fcgi://localhost"     
        </If>
</FilesMatch>

This works for me, and it keeps going with updates to Apache (but of course will not with updates to PHP 5.6 - you will have to make the /usr/local/apps/php56/bin/fpmctl56 edits again then).
Reason: I had set the default PHP to 7.2 due to security reasons, but one subdomain needed PHP 5.6 to work.


when I start
sudo / usr / local / apps / php56 / bin / fpmctl56 start
I get an error:

Starting php-fpm: [19-Jul-2020 05:04:38] ERROR: An another FPM instance seems to already listen on /usr/local/apps/php56/var/php56_9000.sock
[19-Jul-2020 05:04:38] ERROR: FPM initialization failed
[root @ vps ~] # Starting php-fpm: [19-Jul-2020 05:04:38] ERROR: An other FPM instance seems to already listen on /usr/local/apps/php56/var/php56_9000.sock

Any idea.
IP: --   


Threads
 codesight   Multiple PHP-Versions (26 Replies, Read 331971 times)
    |--  valley   Hi, Sir you...   on October 26, 2013, 3:49 am
    |--  codesight   Hi, Try restarting...   on October 26, 2013, 9:05 am
    |--  codesight   Now there is...   on October 26, 2013, 9:25 am
    |--  valley    OK, seems to...   on October 26, 2013, 9:55 am
    |--  codesight    Sir at the...   on October 26, 2013, 10:04 am
    |--  valley    That would be...   on October 26, 2013, 10:10 am
    |--  codesight   Hello, I have...   on November 14, 2014, 1:05 pm
    |--  codesight   I'm still missing...   on November 14, 2014, 2:09 pm
    |--  codesight   Argh.... PHPInfo says...   on November 14, 2014, 2:33 pm
    |--  valley   Could you post...   on November 19, 2014, 5:40 am
    |--  codesight   Could you post...   on November 19, 2014, 2:27 pm
    |--  codesight   Is there any...   on November 28, 2014, 6:24 am
    |--  valley   Did you check...   on November 28, 2014, 6:39 am
    |--  codesight   Sure. Suphp53.log is...   on November 28, 2014, 6:46 am
    |--  codesight   Hi Valley, any...   on December 4, 2014, 5:13 pm
    |--  valley   Sir I shall...   on December 5, 2014, 5:54 am
    |--  jcsv75   This is an...   on September 17, 2018, 6:09 am
    |--  webuzo_manager   Hi jcsv75, Currently,...   on September 17, 2018, 7:00 am
    |--  trondandre   Hi jcsv75, Currently,...   on October 21, 2018, 6:36 am
    |--  Dhanya   Hi trondandre, At...   on October 27, 2018, 12:17 pm
    |--  trondandre   Yes i can...   on October 28, 2018, 6:09 am
    |--  Dhanya   Hi trondandre, Because...   on October 29, 2018, 6:29 am
    |--  trondandre   Is this possible...   on May 20, 2019, 8:16 am
    |--  vbarlakoski   WOW, 5 years...   on October 29, 2019, 12:45 pm
    |--  daniel.bair   This is my...   on November 22, 2019, 12:29 am
    |--  drapet   This is my...   on July 19, 2020, 10:44 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 30, 2025, 3:28 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.781