I decided that I should upgrade to PHP5 to be able to use the new features that it includes. Little did I know that I would spend ALL DAY trying to get it working. But anyway...
I'm running FedoraCore2. I had PHP 4.3.10 installed, and I upgraded to 5.0.4. It took me a while to get configure, make, and make install to go through (because I'm still unexperienced in linux), but finally I got it installed. Here's the configure command I used (I know it's a lot, but it's what was on the previous installation, and I didn't do it. I figured it would be best to keep it the same)
'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2=/usr/bin/bzip2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-apxs2=/usr/sbin/apxs' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-xml'
PHP works fine... from the command line. As soon as Apache comes into contact with a PHP file, it just dies. Everything else works fine - HTML, images, whatever. But PHP files don't work.
I made sure that I added everything correcting to httpd.conf:
AddType application/x-httpd-php .php
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
Both in their respective positions. But I couldn't get anything to work.
Finally, I did a little digging. After restarting Apache through apachectl, I ran the following command:
apachectl -e debug
The last couple lines I've posted here:
[Fri Jul 08 22:33:33 2005] [debug] //home/builder/pb_work_dir/psa_aiconfig_7.5.3/psa/fp/work/fp-5.0/frontpage/version5.0/apache2/mod_frontpage.c(959): FrontPage register_hook
[Fri Jul 08 22:33:33 2005] [debug] mod_so.c(247): loaded module php5_module
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs
I know that port 443 is SSL, but what's the problem? I've tried stopping Apache and doing netstat -ltpne, but nothing else is running on 443. Besides, even if something WAS running on 443. What does that have to do with PHP? Why is it just PHP that's being ignored? Is there something else I have to do to get it working?
Help would be greatly appreciated, since like I said I've been working on this all day. Thanks.