apache2.0.47 and php4.3.3 on slackware8.1

This is a discussion on apache2.0.47 and php4.3.3 on slackware8.1 within the PHP Language forums, part of the PHP Programming Forums category; Hello all, I am attempting to install Apache 2.0.47 and php4.3.3 on slackware8.1. I am ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2003
Chris Haynes
 
Posts: n/a
Default apache2.0.47 and php4.3.3 on slackware8.1

Hello all,

I am attempting to install Apache 2.0.47 and php4.3.3 on slackware8.1. I am
pretty new to linux and this is something of a learning experience and so I
was anticipating a few problems along the way. Now I have pretty much
followed the instructions at lamps.efactory.de/e-lamps-2-0.shtml word for
word, but when i try to access a simple php file (<?php phpinfo(); ?>) in
lynx it just shows me the source code (i.e. <?php phpinfo(); ?>). httpd is
definitely running. I have googled for this and there are lots of instances
of the problem, but no real answers.

I have installed apache from source, and it seems to run happily. I can see
the apache welcome page and there were no runtime or compile-time errors, so
I assume there is no problem there.

configure file was:

cd /usr/local/src/lamps/httpd-2.0.47/
../configure --prefix=/usr/local/apache2/2.0.47 \
--enable-modules=all \
--enable-ssl \
--with-ssl=/usr/local/openssl/current \
--enable-so
make
make install


I have also installed php from source, and again it seemed to compile fine.
The configure file was:

cd /usr/local/src/lamps/php-4.3.3
../configure \
--with-apxs2=/usr/local/apache2/current/bin/apxs \
--with-mysql=/usr/local/mysql/current \
--with-zlib-dir=/usr/lib/ \
--enable-versioning \
--enable-track-vars=yes \
--enable-url-includes \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--enable-ftp \
--with-config-file-path=/etc \
--with-gd
make
make install

and copied php.ini into /etc/

I have also added the appropriate lines into httpd.conf, namely

AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps

and

LoadModule php4_module modules/libphp4.so


But no luck with php files, so any ideas? As I said I'm new to this so if
there are any other files that would be helpful in diagnosis just tell me
and I'll post them,

Thanks in advance,

Chris.
Reply With Quote
  #2 (permalink)  
Old 09-10-2003
David Robley
 
Posts: n/a
Default Re: apache2.0.47 and php4.3.3 on slackware8.1

In article <ba1c781c.0309100425.4cf96c60@posting.google.com >,
chris.haynes@imperial.ac.uk says...
> Hello all,
>
> I am attempting to install Apache 2.0.47 and php4.3.3 on slackware8.1. I am
> pretty new to linux and this is something of a learning experience and so I
> was anticipating a few problems along the way. Now I have pretty much
> followed the instructions at lamps.efactory.de/e-lamps-2-0.shtml word for
> word, but when i try to access a simple php file (<?php phpinfo(); ?>) in
> lynx it just shows me the source code (i.e. <?php phpinfo(); ?>). httpd is
> definitely running. I have googled for this and there are lots of instances
> of the problem, but no real answers.
>
> I have installed apache from source, and it seems to run happily. I can see
> the apache welcome page and there were no runtime or compile-time errors, so
> I assume there is no problem there.
>
> configure file was:
>
> cd /usr/local/src/lamps/httpd-2.0.47/
> ./configure --prefix=/usr/local/apache2/2.0.47 \
> --enable-modules=all \
> --enable-ssl \
> --with-ssl=/usr/local/openssl/current \
> --enable-so
> make
> make install
>
>
> I have also installed php from source, and again it seemed to compile fine.
> The configure file was:
>
> cd /usr/local/src/lamps/php-4.3.3
> ./configure \
> --with-apxs2=/usr/local/apache2/current/bin/apxs \
> --with-mysql=/usr/local/mysql/current \
> --with-zlib-dir=/usr/lib/ \
> --enable-versioning \
> --enable-track-vars=yes \
> --enable-url-includes \
> --enable-sysvshm=yes \
> --enable-sysvsem=yes \
> --enable-ftp \
> --with-config-file-path=/etc \
> --with-gd
> make
> make install
>
> and copied php.ini into /etc/
>
> I have also added the appropriate lines into httpd.conf, namely
>
> AddType application/x-httpd-php php
> AddType application/x-httpd-php-source phps
>
> and
>
> LoadModule php4_module modules/libphp4.so
>
>
> But no luck with php files, so any ideas? As I said I'm new to this so if
> there are any other files that would be helpful in diagnosis just tell me
> and I'll post them,


You need to restart apache to read any changes in httpd.conf, of course.

Cheers
--
Quod subigo farinam

$email =~ s/oz$/au/o;
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0