[TriLUG] help re:apache 1.3.22 and php 4.3.0 with postgrsql on SUSE

Turnpike Man turnpike420 at yahoo.com
Mon Jun 9 11:39:25 EDT 2003


I'm not sure how much this may help, as it includes support for M$SQL7 as
opposed to postgresql, but the apache/php4 portion may be what you are needing.
 This is what I did in the past on a SuSE 7.1 PPC installation.  I would ignore
the freetds stuff from the configs:

Install Apache as DSO w/ PHP4 on RH 7.1 connecting to MSSQL7 on W2KS
--------------------------------------------------------------------

01.  Copy freetds, apache, php to /usr/local/src
02.  cd /usr/local/src


Install and Configure FreeTDS
-----------------------------

03.  tar -xzvf freetds-0.52.tgz
04.  cd freetds-0.52
05.  ./configure --prefix=/usr/local/freetds --with-tdsver=4.2 --enable-dbmfix
06.  make && make install
07.  add '/usr/local/freetds/lib' to end of /etc/ld.so.conf
08.  ldconfig
09.  cd /usr/local/src


Install and Configure Apache for DSO
------------------------------------

10.  tar -xzvf apache_1.3.20.tar.gz
11.  cd apache_1.3.20
12.  ./configure --prefix=/usr/local/apache --enable-module=so
13.  make && make install
14.  cd /usr/local/src


Install and Configure PHP4
--------------------------

15.  tar -xzvf php-4.0.6.tar.gz
16.  cd php-4.0.6
17.  vi ext/sybase/config.m4, replace 'dbopen' with 'tdsdbopen' (line 27 in
php_4.0.6)
18.  ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mssql=/usr/local/freetds  --with-sybase=/usr/local/freetds --with-mysql
--enable-track-vars
19.  make && make install
20.  cp php.ini-dist /usr/local/lib/php.ini (also possibly
/usr/local/lib/php/php.ini)


Hack PHP Installation
---------------------

21.  vi /usr/local/lib/php.ini, look for 'sybase.interface_file' directive,
uncomment it and change the value to "/usr/local/freetds/interfaces"


Test Setup
----------
22.  Reboot your machine to test the startup of ldconfig, then configure httpd
and start Apache.


I hope that helps.
David

--- david grant wrote:
> hello,
>  
> i have been trying to load apache, php with postgresql on my suse system with
> no luck..
>  
> i have tried using what was suggested (scripts) with no luck --- i would lose
> the mod_so or mod_php4.....now i have them both but can not load some modules
> (httpd.conf script ) and get :
>   "can not remove module ----(about 12 listed)----- not found in module list"
>  
> and need to increase DYNAMIC_MODULE_LIMIT
>  
>  
> i have used "make clean" but to  no avail....
>  
>  
> please help...
>  
> thanks
> david grant
> 

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com



More information about the TriLUG mailing list