[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Qube2, PHP4.0.6, Apache 1.3.20 question...
- Subject: [cobalt-users] Qube2, PHP4.0.6, Apache 1.3.20 question...
- From: Doug Forman <doug.forman@xxxxxxx>
- Date: Tue Jul 10 09:00:42 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Greetings list,
I've been trying to get PHP 4.0.6 and Apache 1.3.20 working nicely on my
Qube2. I'm <<real close>> to getting it all to work, but I'm still
missing something... after I'm all done, Apache is working fine, but
PHP code in an html page (the typical <?phpinfo()?> test page) is
ignored.
I built PHP into Apache (static), and when I run `/usr/sbin/httpd -l`
for a list of apache's built-in modules, "mod_php4.c" is in the list.
If I use the command `tail /var/log/httpd/home-error | grep PHP` to see
if Apache thinks PHP is there, the results are: [Tue Jul 10 11:05:42
2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6 configured -- resuming
normal operations
Of course I have the lines (uncommented) in my /etc/httpd/conf/srm.conf
file:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I created two test pages containing
<html><body><?phpinfo()?></body></html> and named them "index.php" and
"indexphp.html" - when I browse to the "index.php" page, I get "page
cannot be displayed" and when I browse to "indexphp.html" I get a blank
page (viewing source confirms the php code which is being ignored).
Below are the steps I'm using to compile everything... (everything
seems to finish successfully)
[apache src dir]> ./configure --prefix=/etc/httpd
[php src dir]> ./configure --with-mysql --with-apache=../apache_1.3.20/
--enable-track-vars
[php src dir]> make
[php src dir]> make install
[apache src dir]> ./config.status
(config.status contains:
./configure \
"--with-layout=Apache" \
"--prefix=/etc/httpd" \
"--enable-module=rewrite" \
"--enable-module=so" \
"--enable-module=mmap_static" \
"--enable-module=log_agent" \
"--enable-module=log_referer" \
"--enable-module=mime_magic" \
"--enable-module=info" \
"--enable-module=speling" \
"--enable-module=auth_anon" \
"--enable-module=auth_dbm" \
"--enable-module=auth_db" \
"--enable-module=digest" \
"--enable-module=cern_meta" \
"--enable-module=expires" \
"--enable-module=headers" \
"--enable-module=usertrack" \
"--enable-module=example" \
"--enable-module=unique_id" \
"--activate-module=src/modules/php4/libphp4.a" \
"$@"
[apache src dir]> make
[php src dir]> cp php.ini-dist /usr/local/lib/php.ini
[apache src dir]> cp src/httpd /usr/sbin/httpd
...confirm "AddType" lines are active in srm.conf
..restart httpd daemon