Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 21:32:39

Author Topic: PHP 5.5 with Drupal  (Read 14279 times)

0 Members and 2 Guests are viewing this topic.

Offline kahanbey

  • Junior Member
  • *
  • Posts: 11
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #15 on: 2016-06-01, 14:59:01 »
Use this

Code: [Select]

###Start Kloxo PHP config Area

### begin content - please not remove this line

#<IfModule mod_rewrite.c>
# ## MR -- authentically for letsencrypt for webroot-based
# RewriteRule /\.|^\.(?!well-known/) - [F]
#</FilesMatch>

### MR -- using php version different with default php
### 1. Using suphp
### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
###   then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'

<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
SetHandler x-httpd-php55
#SetHandler x-httpd-php56
#SetHandler x-httpd-php70
</FilesMatch>

### OR

### 2. Using fcgid
### - Copy from '#Options' to '#FCGIWrapper' and
###   then remove '#' for one of '#FCGIWrapper'

#Options +ExecCGI
#<FilesMatch \.php$>
# SetHandler fcgid-script
#</FilesMatch>
#FCGIWrapper /usr/bin/php-cgi .php
#FCGIWrapper /usr/bin/php52m-cgi .php
#FCGIWrapper /usr/bin/php53m-cgi .php
#FCGIWrapper /usr/bin/php54m-cgi .php
#FCGIWrapper /usr/bin/php55m-cgi .php
#FCGIWrapper /usr/bin/php56m-cgi .php
#FCGIWrapper /usr/bin/php70m-cgi .php

### end content - please not remove this line

###End Kloxo PHP config Area




Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #16 on: 2016-06-01, 15:12:13 »
After use this code PHP is not working. See here - http://openid11.tk/phpinfo.php

Offline kahanbey

  • Junior Member
  • *
  • Posts: 11
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #17 on: 2016-06-01, 15:18:21 »
Try This

Code: [Select]
###Start Kloxo PHP config Area

### begin content - please not remove this line

#<IfModule mod_rewrite.c>
# ## MR -- authentically for letsencrypt for webroot-based
# RewriteRule /\.|^\.(?!well-known/) - [F]
#</FilesMatch>

### MR -- using php version different with default php
### 1. Using suphp
### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
###   then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'

##<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
#SetHandler x-httpd-php56
#SetHandler x-httpd-php70
##</FilesMatch>

### OR

### 2. Using fcgid
### - Copy from '#Options' to '#FCGIWrapper' and
###   then remove '#' for one of '#FCGIWrapper'

Options +ExecCGI
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
#FCGIWrapper /usr/bin/php-cgi .php
#FCGIWrapper /usr/bin/php52m-cgi .php
#FCGIWrapper /usr/bin/php53m-cgi .php
#FCGIWrapper /usr/bin/php54m-cgi .php
FCGIWrapper /usr/bin/php55m-cgi .php
#FCGIWrapper /usr/bin/php56m-cgi .php
#FCGIWrapper /usr/bin/php70m-cgi .php

### end content - please not remove this line

###End Kloxo PHP config Area




Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #18 on: 2016-06-01, 15:29:32 »
Use this code and seeing 'Internal Server Error'. http://openid11.tk/phpinfo.php

Also I have send you login info by PM.
« Last Edit: 2016-06-01, 15:34:17 by sandipcd »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5 with Drupal
« Reply #19 on: 2016-06-01, 15:59:25 »
I found this issue where using firefox. Need clear firefox cache.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #20 on: 2016-06-01, 19:02:48 »
I found this issue where using firefox. Need clear firefox cache.

Open in Chrome, open in mobile, change the folder - but it still showing php 5.4.45 version.

Any idea ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5 with Drupal
« Reply #21 on: 2016-06-01, 19:20:34 »
Inform here "cat /opt/configs/apache/conf/domains/yourdomain.com.conf|grep '.sock'" (change yourdomain.com with your real domain.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5 with Drupal
« Reply #22 on: 2016-06-01, 19:28:22 »
Try Kloxo-MR 7.0 to 2016060105.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #23 on: 2016-06-01, 19:48:52 »
Try Kloxo-MR 7.0 to 2016060105.

My version is 7.0.0.b-2016053003. How to get 2016060105 ?

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #24 on: 2016-06-01, 19:50:36 »
Inform here "cat /opt/configs/apache/conf/domains/yourdomain.com.conf|grep '.sock'" (change yourdomain.com with your real domain.

Code: [Select]
[root@server1 ~]# cat /opt/configs/apache/conf/domains/openid11.tk.conf|grep '.s                                                                 ock'
                        FastCGIExternalServer "/home/kloxo/httpd/cp/cp.openid11.                                                                 tk.0fake" -socket /opt/configs/php-fpm/sock/php55m-apache.sock -idle-timeout 300                                                                 0 -pass-header Authorization
                                SetHandler "proxy:unix:/opt/configs/php-fpm/sock                                                                 /php55m-apache.sock|fcgi://localhost"
                        FastCGIExternalServer "/home/kloxo/httpd/webmail/webmail                                                                 .openid11.tk.0fake" -socket /opt/configs/php-fpm/sock/php55m-apache.sock -idle-t                                                                 imeout 3000 -pass-header Authorization
                                SetHandler "proxy:unix:/opt/configs/php-fpm/sock                                                                 /php55m-apache.sock|fcgi://localhost"
                        FastCGIExternalServer "/home/hostingultraso123/openid11/                                                                 openid11.tk.0fake" -socket /opt/configs/php-fpm/sock/php55m-hostingultraso123.so                                                                 ck -idle-timeout 3000 -pass-header Authorization
                                SetHandler "proxy:unix:/opt/configs/php-fpm/sock                                                                 /php55m-hostingultraso123.sock|fcgi://localhost"
                        FastCGIExternalServer "/home/kloxo/httpd/cp/cp.openid11.                                                                 tk.1fake" -socket /opt/configs/php-fpm/sock/php55m-apache.sock -idle-timeout 300                                                                 0 -pass-header Authorization
                                SetHandler "proxy:unix:/opt/configs/php-fpm/sock                                                                 /php55m-apache.sock|fcgi://localhost"
                        FastCGIExternalServer "/home/kloxo/httpd/webmail/webmail                                                                 .openid11.tk.1fake" -socket /opt/configs/php-fpm/sock/php55m-apache.sock -idle-t                                                                 imeout 3000 -pass-header Authorization
                                SetHandler "proxy:unix:/opt/configs/php-fpm/sock                                                                 /php55m-apache.sock|fcgi://localhost"
                        FastCGIExternalServer "/home/hostingultraso123/openid11/                                                                 openid11.tk.1fake" -socket /opt/configs/php-fpm/sock/php55m-hostingultraso123.so                                                                 ck -idle-timeout 3000 -pass-header Authorization
                                SetHandler "proxy:unix:/opt/configs/php-fpm/sock                                                                 /php55m-hostingultraso123.sock|fcgi://localhost"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5 with Drupal
« Reply #25 on: 2016-06-02, 02:29:04 »
So, look like your domain conf is normal.

Try using 'phpversion();' instead 'phpinfo()' in your php file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #26 on: 2016-06-04, 18:50:59 »
After installing CentOS 6.8, now got success. But have to check for other domain also.

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #27 on: 2016-06-04, 19:40:07 »
So, look like your domain conf is normal.

Try using 'phpversion();' instead 'phpinfo()' in your php file.

In Rackspace Cloud Server, I have CentOS 6.7, Kloxo-Mr 7. Here php version is not taking by website. I have selected php 5.5 under Domain name. Tried using 'phpinfo();' - showing php 5.4. And try 'phpversion();', showing nothing but white screen. Here it is - http://sandipchoudhury.com/phpinfo.php

Also here using php type - suphp.

So, what is the solution ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5 with Drupal
« Reply #28 on: 2016-06-04, 19:47:37 »
Need select 'php-fpm' for 'php type' if using apache or proxy.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5 with Drupal
« Reply #29 on: 2016-06-04, 19:56:39 »
Need select 'php-fpm' for 'php type' if using apache or proxy.

I have selected php-fpm_event. Is this right ?

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.033 seconds with 18 queries.

web stats analysis