1
Kainaij
PHP5 site upgrade issue...
  • 2008/4/5 16:13

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


I have the latest stable release installed and am now having problems logging into my site.

What I did is add this line:

AddHandler application/x-httpd-php5 .php

to my .htaccess file. I use surpass hosting and they mentioned to me that in order for my site to fully utilize php5 I must insert this. I did and now I cannot log into my site. I know I can just as easily remove it, but I'm in the process of installing the Instant Zero shopping cart module and it will not work with anything less that 5.

Help.

2
stefan88
Re: PHP5 site upgrade issue...
  • 2008/4/5 16:34

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

xoops (core) works with PHP5. Probably you have module that causing the problem. What modules/versions are you using?

If you can, try to disable modules and enable them one by one to see where is the problem...
..

3
Peekay
Re: PHP5 site upgrade issue...
  • 2008/4/5 17:26

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


You could try:
AddType x-mapp-php5 .php
AddHandler x
-mapp-php5 .php

assuming your host runs both PHP 4 and 5.
A thread is for life. Not just for Christmas.

4
Kainaij
Re: PHP5 site upgrade issue...
  • 2008/4/5 19:06

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


@Peekay:

Sounded like a great suggestion but only reduced my portal to displaying gibberish, hehe. Thanks for the suggestion.

@Stefan88:

I'll try your suggestion later today when I get back.

5
Kainaij
Re: PHP5 site upgrade issue...
  • 2008/4/9 22:52

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


@Stefan88:

I deactivated all my modules while adding this to my .htaccess file:

AddHandler application/x-httpd-php5 .php

I still was not able to log in. Once I try to login on the main portal page after the php5 code is introduced to the .htaccess file the site just redirects me to the http://kainaistudies.com/user.php page without any message in between. Not allowing a login.

Does anyone have another idea of how I can get my site to PHP5 solely? I need to achieve this as I will not be allowed a refund if I accept the download of the shopping cart module and test compatibility. The module is not compatible with anything less than php5.

6
Kainaij
Re: PHP5 site upgrade issue...
  • 2008/4/10 18:15

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


Respectfully *bump*

7
Anonymous
Re: PHP5 site upgrade issue...
  • 2008/4/10 18:56

  • Anonymous

  • Posts: 0

  • Since:


You have email at the address given in your xoops.org profile. Hope it helps

8
Kainaij
Re: PHP5 site upgrade issue...
  • 2008/4/10 19:40

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


Thanks John, here's the phpinfo.php readout with the extra code in .htaccess:

PHP Version 5.2.4

System Linux pass61.dizinc.com 2.6.9-55.0.12.ELsmp #1 SMP Fri Nov 2 12:38:56 EDT 2007 x86_64
Build Date Feb 5 2008 08:23:23
Configure Command './configure' '--enable-pic' '--with-libdir=lib64' '--prefix=/usr/local/php5' '--exec-prefix=/usr/local/php5' '--program-suffix=5' '--with-xml' '--enable-bcmath' '--with-iconv' '--enable-calendar' '--with-curl' '--with-dom=/opt/xml2/' '--with-dom-xslt=/opt/xslt/' '--with-dom-exslt=/opt/xslt/' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--enable-trans-sid' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-xmlrpc' '--enable-soap' '--with-soap' '--with-zlib' '--enable-force-cgi-redirect' '--enable-pdo' '--with-pdo-sqlite' '--with-sqlite' '--with-pdo-mysql'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/php5/lib
Loaded Configuration File /usr/local/php5/lib/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

And here it is without:

PHP Version 4.4.8

System Linux pass61.dizinc.com 2.6.9-55.0.12.ELsmp #1 SMP Fri Nov 2 12:38:56 EDT 2007 x86_64
Build Date Feb 5 2008 08:00:59
Configure Command './configure' '--enable-bcmath' '--enable-calendar' '--enable-discard-path' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--enable-wddx' '--enable-xslt' '--enable-zend-multibyte' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-dom=/opt/xml2/' '--with-dom-exslt=/opt/xslt/' '--with-dom-xslt=/opt/xslt/' '--with-expat-dir=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-iconv' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pic' '--with-png-dir=/usr' '--with-pspell' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr/X11R6' '--with-xslt-sablot=/opt/sablot/' '--with-zlib' '--with-zlib-dir=/usr'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /home/kainaist/public_html/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib

======================

Is this info acceptable for dissection of my problem? There was a ton more below this.

Thanks.

9
Kainaij
Re: PHP5 site upgrade issue...
  • 2008/4/10 20:03

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


BTW,

Here is a snippet from the reply I received from my web host tech sup:

Quote:
Jeremy,

Your server has both PHP versions 4 and 5. PHP4 runs as default. To use PHP5 you must use .php5 as opposed to the .php extension. (example: index.php5 instead of index.php).

If you would like .php file extensions to run as PHP5 by default you can accomplish this by adding the following line to your .htaccess file:

AddHandler application/x-httpd-php5 .php

I am not sure if this will affect your XOOPS install. However, it is easy to remove this line from your .htaccess if you notice any problems.

Regards,

Nick


Thanks Fellas.

10
Anonymous
Re: PHP5 site upgrade issue...
  • 2008/4/10 20:03

  • Anonymous

  • Posts: 0

  • Since:


Quote:
Kainaij wrote:

Thanks John, here's the phpinfo.php readout with the extra code in .htaccess:

PHP Version 5.2.4



And here it is without:

PHP Version 4.4.8


I'm certainly no expert, but it looks like you need the extra code to run with php5.

Have you searched on here for the /sessions.php code amendment where people can't login? I think I posted the link only yesterday or the day before.

I'm out of my depth here - can anyone else help?

Login

Who's Online

414 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 414


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits