Hello,
Continued from previous email - ongoing adventures in S/W builds :-) ...
Next, I copied the perl binary from /usr/bin to /usr/local/bin (as is
specified in apxs perl script). Same result as shown in last email.
So I started over, building Apache and PHP without apxs:
bombur:/usr/local/src/apache_1.3.12 # ./configure
--prefix=/usr/local/src/apache
_1.3.12 --enable-module=so
...
bombur:/usr/local/src/php-4.0.0 # ./configure
--with-apache=/usr/local/src/apach
e_1.3.12 --enable-track-vars
...
bombur:/usr/local/src/php-4.0.0 # make
<SNIP>
ext/gd/php_gd.h:50: gd.h: No such file or directory
make[1]: *** [internal_functions.lo] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.0'
make: *** [all-recursive] Error 1
...
...
bombur:/usr/local/src/php-4.0.0 # ./configure
--with-apache=/usr/local/src/apach
e_1.3.12 --enable-track-vars --without-gd
...
bombur:/usr/local/src/php-4.0.0 # make
...
bombur:/usr/local/src/php-4.0.0 # make install
...
bombur:/usr/local/src/apache_1.3.12 # make
...
bombur:/usr/local/src/apache_1.3.12 # make install
...
Looked at the conf/httpd.conf file (complete, less comments shown below).
Saw that I had the php extension defined:
bombur:/usr/local/src/apache_1.3.12 # grep .php conf/httpd.conf
AddType application/x-httpd-php .php
And that I needed to reference the php shared object library...
bombur:/usr/local/src/apache_1.3.12 # find / -name libphp4.so
/usr/lib/apache/libphp4.so
I added the following line to conf/httpd.conf as well:
LoadModule php4_module /usr/lib/apache/libphp4.so
bombur:/usr/local/src/apache_1.3.12 # bin/apachectl configtest
Syntax error on line 207 of /usr/local/src/apache_1.3.12/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: libldap.so.1: cannot open
sh
ared object file: No such file or directory
bombur:/usr/local/src/apache_1.3.12 # ll /usr/lib/apache/libphp4.so
-rwxr-xr-x 1 root root 1207996 Mar 11 2000
/usr/lib/apache/libphp4.so
Here's the complete conf/httpd.conf file, less comments:
bombur:/usr/local/src/apache_1.3.12 # grep -v \# conf/httpd.conf
ServerType standalone
ServerRoot "/usr/local/src/apache_1.3.12"
PidFile /usr/local/src/apache_1.3.12/logs/httpd.pid
ScoreBoardFile /usr/local/src/apache_1.3.12/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
LoadModule php4_module /usr/lib/apache/libphp4.so
Port 80
User nobody
Group nogroup
ServerAdmin root@bombur
DocumentRoot "/usr/local/src/apache_1.3.12/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/usr/local/src/apache_1.3.12/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /usr/local/src/apache_1.3.12/conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/local/src/apache_1.3.12/conf/magic
</IfModule>
HostnameLookups Off
ErrorLog /usr/local/src/apache_1.3.12/logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combine
d
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /usr/local/src/apache_1.3.12/logs/access_log common
ServerSignature On
<IfModule mod_alias.c>
Alias /icons/ "/usr/local/src/apache_1.3.12/icons/"
<Directory "/usr/local/src/apache_1.3.12/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/usr/local/src/apache_1.3.12/cgi-bin/"
<Directory "/usr/local/src/apache_1.3.12/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
</IfModule>
<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv
</IfModule>
AddType application/x-httpd-php .php
AddType application/x-tar .tgz
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
Any assistance appreciated - I've been reading up on PHP programming, have
Oracle 8i and java installed and running (realizing I'll still need to add
"with-oci8" support to PHP). I'm anxious to get started seeing what PHP can
do.
Regards,
Eric Stahl
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]