Discussion:
How to change php version
EyeLand
2014-06-09 20:30:11 UTC
Permalink
Hello, on VPS Debian I use PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12
2013 10:55:22), and I want to change to PHP Version 5.2.17, (because I
want to use old script), can you consult? Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
chris
2014-06-09 20:34:08 UTC
Permalink
I would recommend re-writing the script for security and performance
reasons, as PHP 5.2 is no longer supported.
Post by EyeLand
Hello, on VPS Debian I use PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12
2013 10:55:22), and I want to change to PHP Version 5.2.17, (because I
want to use old script), can you consult? Thank you.
--
Christopher Tombleson

Blog: http://blog.cribznetwork.com
Github: http://github.com/chtombleson
Twitter: http://twitter.com/chtombleson
LinkedIn: http://nz.linkedin.com/pub/christopher-tombleson/58/b08/b9a

GPG: 2136 8EFB D8B5 B73C 2A76 4736 CBA7 BC10 9BF9 DCFE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
EyeLand
2014-06-09 21:40:32 UTC
Permalink
it is very expensive to write my old script, I need temporary use for PHP 5.2
Post by chris
I would recommend re-writing the script for security and performance
reasons, as PHP 5.2 is no longer supported.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Design in Motion Webdesign
2014-06-10 07:38:11 UTC
Permalink
I agree with Chris. But if you really want to swith PHP version, you can add
the following line to your .htaccess file:

AddHandler x-httpd-php52 .php

Assuming that php version 5.2 is available on the server of course.

Best regards.
Steven

----- Original Message -----
From: "chris" <***@cribznetwork.com>
To: <php-***@lists.php.net>
Sent: Monday, June 09, 2014 10:34 PM
Subject: Re: [PHP] How to change php version
Post by chris
I would recommend re-writing the script for security and performance
reasons, as PHP 5.2 is no longer supported.
Post by EyeLand
Hello, on VPS Debian I use PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12
2013 10:55:22), and I want to change to PHP Version 5.2.17, (because I
want to use old script), can you consult? Thank you.
--
Christopher Tombleson
Blog: http://blog.cribznetwork.com
Github: http://github.com/chtombleson
Twitter: http://twitter.com/chtombleson
LinkedIn: http://nz.linkedin.com/pub/christopher-tombleson/58/b08/b9a
GPG: 2136 8EFB D8B5 B73C 2A76 4736 CBA7 BC10 9BF9 DCFE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
EyeLand
2014-06-10 07:55:44 UTC
Permalink
1) how I can test if on server is install php version 5.2 ?
2) the line AddHandler x-httpd-php52 .php I need to write on .htaccess
file in main script folder?
Post by Design in Motion Webdesign
I agree with Chris. But if you really want to swith PHP version, you can add
AddHandler x-httpd-php52 .php
Assuming that php version 5.2 is available on the server of course.
Best regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Design in Motion Webdesign
2014-06-10 12:01:57 UTC
Permalink
----- Original Message -----
From: "EyeLand" <***@gmail.com>
To: <php-***@lists.php.net>
Sent: Tuesday, June 10, 2014 9:55 AM
Subject: Re: [PHP] How to change php version
Post by EyeLand
1) how I can test if on server is install php version 5.2 ?
2) the line AddHandler x-httpd-php52 .php I need to write on .htaccess
file in main script folder?
2014-06-10 10:38 GMT+03:00 Design in Motion Webdesign
Post by Design in Motion Webdesign
I agree with Chris. But if you really want to swith PHP version, you can add
AddHandler x-httpd-php52 .php
Assuming that php version 5.2 is available on the server of course.
Best regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1) Do you have access to the control panel of your hosting? You may find
some information there. Or you can ask your hosting provider
2) Yes you can use the .htaccess file in the root folder.

Beste regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
EyeLand
2014-06-10 12:16:12 UTC
Permalink
- I have VPS Debian with PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12 2013 10:55:22)
- control panel webmin, ispconfig, ssh, mailman, phpmyadmin (hoster
can not help me there)
- my web sites is located on /var/www, root folder is /root, I need
create /root/.htaccess ?
Post by Design in Motion Webdesign
1) Do you have access to the control panel of your hosting? You may find
some information there. Or you can ask your hosting provider
2) Yes you can use the .htaccess file in the root folder.
Beste regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Lucas
2014-06-10 16:30:16 UTC
Permalink
Post by EyeLand
- I have VPS Debian with PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12 2013 10:55:22)
- control panel webmin, ispconfig, ssh, mailman, phpmyadmin (hoster
can not help me there)
- my web sites is located on /var/www, root folder is /root, I need
create /root/.htaccess ?
Post by Design in Motion Webdesign
1) Do you have access to the control panel of your hosting? You may find
some information there. Or you can ask your hosting provider
2) Yes you can use the .htaccess file in the root folder.
Beste regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not your ssh root user. in the DOCUMENT_ROOT for your web server.

probably located in /var/www/html/ or /var/www/htdocs/
--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
EyeLand
2014-06-10 16:39:20 UTC
Permalink
on ispconfig, clients folder is /var/www/clients, my site (with old
script) will work on /var/www/clients/client0/web5, in this case I
think I need to create on /var/www/clients/.htaccess ?
Post by Jim Lucas
not your ssh root user. in the DOCUMENT_ROOT for your web server.
probably located in /var/www/html/ or /var/www/htdocs/
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Design in Motion Webdesign
2014-06-10 18:31:04 UTC
Permalink
----- Original Message -----
From: "EyeLand" <***@gmail.com>
To: <php-***@lists.php.net>
Sent: Tuesday, June 10, 2014 6:39 PM
Subject: Re: [PHP] How to change php version
Post by EyeLand
on ispconfig, clients folder is /var/www/clients, my site (with old
script) will work on /var/www/clients/client0/web5, in this case I
think I need to create on /var/www/clients/.htaccess ?
Post by Jim Lucas
not your ssh root user. in the DOCUMENT_ROOT for your web server.
probably located in /var/www/html/ or /var/www/htdocs/
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you place the .htaccess file in /var/www/clients/, the .htaccess file
will have an effect on all folders in /var/www/clients/. If you want only
the web5 folder to be affected, you place the .htaccess file in there.

Best regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jigar Dhulla
2014-06-10 16:41:22 UTC
Permalink
Hi,

I doubt there is even PHP 5.2.17 installed. Search for the rpm of the same
for your distro and install it. Or even better, compile it. So that your
default PHP 5.4 doesn't conflicts with PHP 5.2

In ISPConfig the web root (DOCUMENT_ROOT) is something like this
/var/www/clients/client0/test.nl/web/ where test.nl is the site.
Post by Jim Lucas
Post by EyeLand
- I have VPS Debian with PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12 2013 10:55:22)
- control panel webmin, ispconfig, ssh, mailman, phpmyadmin (hoster
can not help me there)
- my web sites is located on /var/www, root folder is /root, I need
create /root/.htaccess ?
2014-06-10 15:01 GMT+03:00 Design in Motion Webdesign <
1) Do you have access to the control panel of your hosting? You may find
Post by Design in Motion Webdesign
some information there. Or you can ask your hosting provider
2) Yes you can use the .htaccess file in the root folder.
Beste regards.
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not your ssh root user. in the DOCUMENT_ROOT for your web server.
probably located in /var/www/html/ or /var/www/htdocs/
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Regards,
Jigar Dhulla
EyeLand
2014-06-10 16:44:16 UTC
Permalink
very good, but my question is how I can install that version?
Post by Jigar Dhulla
I doubt there is even PHP 5.2.17 installed. Search for the rpm of the same
for your distro and install it. Or even better, compile it. So that your
default PHP 5.4 doesn't conflicts with PHP 5.2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jigar Dhulla
2014-06-10 16:53:21 UTC
Permalink
Hi,

You need PHP 5.4 ?

And what is the debian version ?
Post by EyeLand
very good, but my question is how I can install that version?
Post by Jigar Dhulla
I doubt there is even PHP 5.2.17 installed. Search for the rpm of the
same
Post by Jigar Dhulla
for your distro and install it. Or even better, compile it. So that your
default PHP 5.4 doesn't conflicts with PHP 5.2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Regards,
Jigar Dhulla
EyeLand
2014-06-11 10:51:58 UTC
Permalink
1) on /var/www/clients/client0/web5/web/.htaccess I add AddHandler
x-httpd-php52 .php
2) I create file info.php with <?php phpinfo(); ?> on
http://wp.ournet.biz/info.php, but when access that file start
download
Post by Design in Motion Webdesign
I agree with Chris. But if you really want to swith PHP version, you can add
AddHandler x-httpd-php52 .php
Assuming that php version 5.2 is available on the server of course.
Best regards.
Steven
3) can you recommend how do (article/manual) step by step for
"build/install this from
source -- taking *great care* to be certain to install it in other
than the default location (e.g., /usr/local/bin, rather than
/usr/bin) so that it doesn't trample on your existing 5.4.4 version"

2014-06-11 4:10 GMT+03:00 lists-php
Post by Design in Motion Webdesign
I suspect that you are going to need to build/install this from
source -- taking *great care* to be certain to install it in other
than the default location (e.g., /usr/local/bin, rather than
/usr/bin) so that it doesn't trample on your existing 5.4.4 version.
Installing from an old rpm will likely blow away your 5.4.4 version,
which could cause things like the installed phpmyadmin to stop
working.
Note -- the 5.4.4 release will have, among other things, security
fixes. So, going back to 5.2.17 will probably leave you with some
vulnerabilities.
I obviously have no knowledge of your application, but I don't think
that anything so major changed that would keep a 5.2.17-centric
application from working in a 5.4.4 environment. I have made
applications built for much older versions of php work with 5.4,
without great pain. I suspect that a couple of careful changes to
the default php.ini would take care of the majority of the
compatibility issues.
- Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
EyeLand
2014-06-10 13:19:11 UTC
Permalink
I need a virtual online server on data centre, localhost it is not a
good way for me
What about just setting up a virtual box with that version? Use virtualbox
or VMware
Bastien
Sent from Acompli
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...