configure php with postgresql and apache


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users configure php with postgresql and apache
# 1  
Old 09-20-2008
MySQL 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.
# 2  
Old 09-20-2008
What OS? What shell are you running?

try running

Code:
sh ./configure ...

# 3  
Old 09-20-2008
Hi Frank,
This is what I have in place.
OS: Red Hat Linux 3.2.3-54
shell: /bin/bash
# 4  
Old 09-20-2008
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.
# 5  
Old 09-20-2008
Can you confirm that the apache is install is at /usr/local/apache ? What does ls -lart /usr/local/apache show?
# 6  
Old 09-21-2008
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

Do anyone know how to configure document to point to home directory properly in apache?

Hi from Running web apps from your home folder I've more or less follow the guide, the reason why I'm expering 403 Forbidden is because the higher level directory will take precedance. $ ls -lrthd /home/phpmy/www/joomla/ drwxrwxr-x 2 phpmy phpmy 4.0K May 1 20:26... (2 Replies)
Discussion started by: jediwannabe
2 Replies

2. Shell Programming and Scripting

configure options ised while compiling apache

How can I know which all options were used while compiling a apache binary. # /usr/local/apache/bin/httpd -v Server version: Apache/2.2.17 (Unix) Server built: Feb X 2XXX XX:29:08 Cpanel::Easy::Apache v3.2.0 rev5291 (1 Reply)
Discussion started by: anil510
1 Replies

3. IP Networking

configure apache to work with ssl

Hi, I need help to configure the apache to work with ssl. I have managed to create self-signed certificate according to the instruction in the following link. So I have the crt file and the key file. however when I add: <Virtualhost *:443> SSLEngine on ... (1 Reply)
Discussion started by: programAngel
1 Replies

4. Cybersecurity

configure apache to accept request form specific IP

Hi, What should I change in the httpd.conf so that the apache will accept request from page from specific IP and deny all the rest IP. I am reading the document of the apache but it is very long (700 pages) and I searched but I could not find something about this. So if someone can explain... (0 Replies)
Discussion started by: programAngel
0 Replies

5. Solaris

Apache 2 configure not recognizing options

Hello all. I am trying to compile Apache 2 (again!) and the configure script keeps telling me it does not recognize the options. Everything I am including is in the --help list. For example: --enable-so. First I will put in the LD flags, then configure with the --enable-so option. ... (2 Replies)
Discussion started by: RobertSubnet
2 Replies

6. Linux

Configure apache prefork MPM

Hello, i want to know the basics to configure prefork.c module to high Apache performance and i think it's depends on the server hardware details (RAM and Processors) Thanks :) (0 Replies)
Discussion started by: LinuxCommandos
0 Replies

7. Solaris

Configure apache web server for coldfusionmx7

Hi, I have been trying to configure apache web server for coldfusion mx7 on solaris 5.8 using the command: ./wsconfig -server coldfusion -ws apache -dir /usr/local/apache/conf -bin /usr/local/apache/bin/httpd -script /usr/local/apache/bin/apachectl -coldfusion Then it prompted me: Apache... (1 Reply)
Discussion started by: sagolo
1 Replies

8. UNIX for Dummies Questions & Answers

How to install and configure Apache on SCO openserver 5

I have just been made responsible for setting up Apache on our office SCO box. I have searched the internet, but haven't found any details that I can make sense of. I'm unfamiliar with Unix and would appreciate any help members of the forum have to offer. (1 Reply)
Discussion started by: cstovall
1 Replies

9. UNIX for Advanced & Expert Users

SCO OpenServer 5.0.6 and PostGreSQL\Apache

I'm running SCO OpenServer 5.0.6 as of last week. I believe I've conquered all my hardware demons. I'd like to set it up with Apache Server and Tomcat extension to allow JSP pages. Then I'd like to set up PostGreSQL for the data base that my JSP pages will be working with. I'm wondering if... (1 Reply)
Discussion started by: lsenft
1 Replies
Login or Register to Ask a Question