Jump to content

Recommended Posts

:confused:

 

I recently upgrade from 5.2.8 to 5.3.1 install seemed to go fine, had to recompile a couple times to get it right, now apache restarts fine, and I do not get any errors however now it just downloads php files instead of opening them like any other pages.

 

php -i
phpinfo()
PHP Version => 5.3.1

System => SunOS bender 5.10 Generic_120011-14 sun4u
Build Date => Jan  3 2010 05:20:49
Configure Command =>  './configure'  '--with-openssl=/usr/local/ssl' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/tmp/mysql.sock' '--with-zlib-dir=/usr/local/lib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-iconv-dir=/usr/local/lib' '--enable-ftp' '--libdir=/usr/lib'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/lib
Loaded Configuration File => /usr/lib/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20090626
PHP Extension => 20090626
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS
PHP Extension Build => API20090626,NTS
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar  
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

Link to comment
https://forums.phpfreaks.com/topic/187014-php-upgrade-now-broken/
Share on other sites

Have you configured Apache yet? You need to tell Apache how to handle .php files. Just compiling/installing PHP isn't enough.

 

You need to add something like the following to the httpd.conf

LoadModule php5_module /path/to/libphp5.so
AddType application/x-httpd-php .php

 

You will need to restart Apache after making any changes to the httpd.conf

Short tags are disabled by default. I do not recommend you to use short tags (<? ?> or <?= ?>). You should use the full length tags (<?php ?>). However to enable short tags enable a setting called short_open_tag within the php.ini

 

In order for mysql to work you need to enable the mysql extension within the php.ini too.

Short tags are disabled by default. I do not recommend you to use short tags (<? ?> or <?= ?>). You should use the full length tags (<?php ?>). However to enable short tags enable a setting called short_open_tag within the php.ini

 

In order for mysql to work you need to enable the mysql extension within the php.ini too.

 

Thanks, I think that fixed it, I don't remember having to manually enable those when I installed 5.2.8

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.