|
|
| Author |
Message |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/28/05 - 20:03 Post subject: upgrading php problems, hepl needed
|
|
|
So I installed fedora 1 like 5 months ago.
and php was running 4.3.8 and apache was running and all was great with the world.
http://abstract.redirectme.net/phpinfo.php
and then I wanted to use php's odbc functions. which are NOT part of the default for the fedora installed version of PHP
and so I downloaded PHP 4.3.10
and I .....
./configure --with-mysql --with-mssql --with-odbc --with-pgsql
./make
./make install
straight from the INSTALL
| Quote: | Different examples of compiling PHP for apache are as follows:
./configure --with-apxs --with-pgsql
This will create a libphp4.so shared library that is loaded into
Apache using a LoadModule line in Apache's httpd.conf file. The
PostgreSQL support is embedded into this libphp4.so library.
|
so it works from console
| Code: | [root@localhost php-4.3.10]# php --version
PHP 4.3.10 (cgi) (built: Jan 28 2005 15:22:05)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
|
yet apache module still is 4.3.8
http://abstract.redirectme.net/phpinfo.php
PHP Version 4.3.8
any ideas?
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 01/28/05 - 20:23 Post subject:
|
|
|
./configure --with-apxs=/path/to/apxs <your options> btw you're gonna wanna remove the current version of php before you upgrade
rpm -e <php-f****t-rpm-i386.rpm>
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/28/05 - 22:34 Post subject:
|
|
|
what a PITA. this is why linux is years away from replacing windows. I realize this is server stuff that 1 out of 10,000 people dont know, but still, I'm following the fricking instructions and no working. and this is basic stuff.
Here's what I just posted on phpbuilder.
******************************************************************************************
I am on a fedora 1 linux box.
I wanted to connect to a MS SQL Server ODBC connection that connects to a MS Access DB.
It's my understanding that fedora 1 PHP doesnt have odbc compiled in.
I was running 4.3.8 php and apache 2.
So i grabbed the latest apache 2 and 4.3.10 php
I untarred both.
next I did this to apache 2.
| Code: | ./configure --enable-module=so
make
make install
|
then I changed dirs to the php-4.3.10
then
| Code: |
./configure --with-mysql --with-mssql --with-odbc --with-pgsql --with-apache2=../httpd-2.0.52 --with-apxs2=../httpd-2.0.52/support/apxs
|
which gives
| Code: |
checking for Apache 2.0 handler-module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /downloads/httpd-2.0.52/support/apxs follows:
./configure: line 5090: /downloads/httpd-2.0.52/support/apxs: Permission denied
configure: error: Aborting
[root@localhost php-4.3.10]# which perl
/usr/bin/perl
ls ../httpd-2.0.52/support/apx*
../httpd-2.0.52/support/apxs
|
what am I doing wrong?
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 01/29/05 - 03:35 Post subject:
|
|
|
heh
in apache dir
./configure --enable-shared=max --enable-module=most
then make && make install then re-run the php configure
|
|
|
Back to top
|
|
|
|
 |
|
|