The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Configure apache to run with perl ... while running from browser it asks to save .pl sriram003 Linux 4 09-13-2008 02:13 AM
USN-568-1: PostgreSQL vulnerabilities iBot Security Advisories (RSS) 0 01-14-2008 02:40 PM
Configure apache web server for coldfusionmx7 sagolo SUN Solaris 1 08-29-2006 05:30 PM
How to install and configure Apache on SCO openserver 5 cstovall UNIX for Dummies Questions & Answers 1 11-16-2002 01:18 PM
SCO OpenServer 5.0.6 and PostGreSQL\Apache lsenft UNIX for Advanced & Expert Users 1 11-28-2001 07:54 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-20-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Thumbs up configure php with postgresql and apache

Hi,
I'm trying to configure php4 to run alongside postgresql and apache. Postgres and apache are already installed and running, but I am getting an error when doing:
host84:~/php-4.4.9#./configure --with-apache=/usr/local/apache --with-postgresql=/usr/local/pgsql

loading cache ./config.cache
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
expr: syntax error
./configure: test: =: unary operator expected
expr: syntax error
./configure: test: =: unary operator expected
expr: syntax error
./configure: test: =: unary operator expected
expr: syntax error
./configure: test: =: unary operator expected
expr: syntax error
./configure: test: =: unary operator expected
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for re2c... (cached) exit 0;
checking whether ln -s works... (cached) yes
checking for gawk... (cached) gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking flex version... 2.5.4 (ok)
checking whether byte ordering is bigendian... (cached) no
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)

Configuring SAPI modules

checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache

I'm sure the path to apache is fine. I'd appreciate any advice. Thank you.
Reply With Quote
Forum Sponsor
  #2  
Old 09-20-2008
Resident BOFH
 

Join Date: Dec 2007
Posts: 262
What OS? What shell are you running?

try running

Code:
sh ./configure ...
Reply With Quote
  #3  
Old 09-20-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Hi Frank,
This is what I have in place.
OS: Red Hat Linux 3.2.3-54
shell: /bin/bash
Reply With Quote
  #4  
Old 09-20-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
I tried:
sh ./configure...
Same results, invalid apache directory.
How do I know if I need to install the shared or the static version?
Thanks in advance.
Reply With Quote
  #5  
Old 09-20-2008
Resident BOFH
 

Join Date: Dec 2007
Posts: 262
Can you confirm that the apache is install is at /usr/local/apache ? What does ls -lart /usr/local/apache show?
Reply With Quote
  #6  
Old 09-21-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Thanks Frank for get back to the post.
1)Checked httpd.conf out and it shows the top of directory tree:
/usr/local/apache

2) ls -lart /usr/local/apache
drwxr-xr-x 4 root root 4096 Aug 4 11:48 man
drwxr-xr-x 2 nobody nobody 4096 Aug 4 11:48 proxy
drwxr-xr-x 3 root root 4096 Aug 4 11:48 include
drwxr-xr-x 2 root root 4096 Aug 4 11:49 cgi-bin
drwxr-xr-x 12 root root 4096 Aug 21 22:55 .
drwxr-xr-x 2 root root 4096 Sep 2 19:57 bin
drwxr-xr-x 3 root root 4096 Sep 2 19:57 icons
drwxr-xr-x 2 root root 4096 Sep 2 20:54 libexec
drwxr-xr-x 2 root root 4096 Sep 2 20:54 conf
drwxr-xr-x 3 root root 4096 Sep 2 21:46 htdocs
drwxr-xr-x 14 root root 4096 Sep 3 00:00 ..
drwxr-xr-x 2 nobody nobody 4096 Sep 19 01:36 logs

Are the php extensions the ones I suppose to use?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0