PHP Selector

Started by Administrator, January 11, 2015, 05:03:05 AM

Previous topic - Next topic

hrace009

Quote from: devnull on March 06, 2016, 01:55:01 PM


What result do you get if you use?:

AddHandler application/x-httpd-php7 .php

That is working for me.

I think the wiki should be updated though.

Php 7 is not there yet ;)

See http://wiki.centos-webpanel.com/php-selector

AddHandler application/x-httpd-php7 .php
just add it

hrace009

how do i load php module?
i try to install imagemagic, it only apply to default php 54 that used by CWP server

vavy

Please tell me where in CWP defined url of php destro for particular php-selector?
Today, I've installed php-5.6 in new php-selector, and CWP downloaded and installed php-5.6.14,
but it's already outdated: php.net offers php-5.6.23. And my soft wants php >= 5.6.19.
What CWP's config should I change in order to download and install the version of php which I need?
Thank you!

Com-QuadTech

#18
Error PHP Selector

if the .htaccess is installed we get the error message, it is deleted everything goes and I can call the phpinfo.php.

Internal Server Error

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

Please contact the server administrator, vxxxxxx@mail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


the logs dosent exent

djheiko

Hello can someone tell me how I get 4.5 on it and not 4.5.45 ??
Since the one script probably only under 4.5 goes right

I thank you ever for an answer

vajenec

Quote from: muhittin on November 07, 2015, 01:27:07 PM
Problem  :-[
İ install all php versions and my server working no problem. But when i want to use any one version php , i create a .htaccess file and type
AddHandler application/x-httpd-php56 .php
in .htaccess file save and restart copmlete VPS or apache server after try my site my site give  to me my index.php to save  my computer.?
how i am solve this problem?
Same problem on my CWP. I try with AddHandler application/x-httpd-php56 .php in htaccess and all i get is file download after web site visit.

Administrator

check that you have installed required php versions in cwp.admin php selector



AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp





Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor











Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

vajenec

Yes, i have 5.6 installed... Is it safe to change PHP to 5.6 on CWP basis?

become

I can't compile PHP 5.2 version.
I get error like this:

/tmp/php-build/php-5.2.17/ext/dom/node.c: In function 'dom_canonicalization':
/tmp/php-build/php-5.2.17/ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type
    ret = buf->buffer->use;
                     ^
In file included from /tmp/php-build/php-5.2.17/main/php.h:38:0,
                 from /tmp/php-build/php-5.2.17/ext/dom/node.c:26:
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
                                        ^
/tmp/php-build/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro 'ZVAL_STRINGL'
   char *__s=(s); int __l=l;  \
              ^
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro 'RETVAL_STRINGL'
     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
     ^
make: *** [ext/dom/node.lo] Error 1
make: *** Waiting for unfinished jobs....
/bin/sh /tmp/php-build/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/dom/ -I/tmp/php-build/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/tmp/php-build/php-5.2.17/include -I/tmp/php-build/php-5.2.17/main -I/tmp/php-build/php-5.2.17 -I/tmp/php-build/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/tmp/php-build/php-5.2.17/ext/mbstring/oniguruma -I/tmp/php-build/php-5.2.17/ext/mbstring/libmbfl -I/tmp/php-build/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/tmp/php-build/php-5.2.17/TSRM -I/tmp/php-build/php-5.2.17/Zend    -I/usr/include -g -O2  -c /tmp/php-build/php-5.2.17/ext/dom/node.c -o ext/dom/node.lo
/tmp/php-build/php-5.2.17/ext/dom/node.c: In function 'dom_canonicalization':
/tmp/php-build/php-5.2.17/ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type
    ret = buf->buffer->use;
                     ^
In file included from /tmp/php-build/php-5.2.17/main/php.h:38:0,
                 from /tmp/php-build/php-5.2.17/ext/dom/node.c:26:
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
                                        ^
/tmp/php-build/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro 'ZVAL_STRINGL'
   char *__s=(s); int __l=l;  \
              ^
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro 'RETVAL_STRINGL'
     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
     ^
make: *** [ext/dom/node.lo] Error 1
Redirecting to /bin/systemctl restart httpd.service

Gogo

@become Why do you need 5.2 at all? Jeez that's deprecated for a long time now. It's freaking insecure, to many known exploits available for <5.5 that can seriously damage your server.

Wamphyri

#25
after clicking install dependencies
https://prnt.sc/hwz8ak

after 5 minutes + nothing shows in tail -f /var/log/php-dependencies.log




Gogo

#26
Can't install 7.2, no errors at all.

EDIT: I found error: configure: error: Problem with libXpm.(a|so) or libX11.(a|so).

n8v8r

Quote from: Nencio on February 28, 2018, 04:33:43 PM
Is CWP PHP Selector blocked and is only in the paid version of CWPpro?`
No

n8v8r

oops. my bad. seems like a pro feature then indeed.

bullten

lol the blocked it :P Now cwppro is required. Bad luck.