ippy98 Posted January 3, 2010 Share Posted January 3, 2010 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 Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2010 Share Posted January 3, 2010 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 Quote Link to comment Share on other sites More sharing options...
ippy98 Posted January 3, 2010 Author Share Posted January 3, 2010 Yes I had that in there already, it started partially working. Now it parses some pages, but now phpmyadmin no longer connects to the mysql, and some pages work, some dont. a simple: <? phpinfo(); ?> comes up as a blank page Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2010 Share Posted January 3, 2010 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. Quote Link to comment Share on other sites More sharing options...
ippy98 Posted January 4, 2010 Author Share Posted January 4, 2010 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.