472,958 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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.
Jul 16 '05 #1
1 2214
In article <ba**************************@posting.google.com >,
ch**********@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?
Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Aldo Polli | last post by:
Hi, I have this error when I start apache2 with php4 Syntax error on line 233 of /mypath/apache2/conf/httpd.conf: Cannot load /mypath/apache2/modules/libphp4.so into server: dynamic linker:...
6
by: Greg Bryant | last post by:
PHP Newbie question: I installed the above, and if I point directly to a ..php file (i.e. http://localhost/phpinfo.php, I get the php script executed properly. If I put a <?php ... ?> tag in...
1
by: FL | last post by:
Hi, I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I know, I'm nuts :o) First, there is no php5apache2.dll in the beta2 package but a php4apache2.dll (php.net doc...
5
by: Ad Astra | last post by:
I am completely new to PHP and am finding installation the most difficult part to understand and implement. Could someone please review the rather long missive below and assist me? I have...
4
by: Mxsmanic | last post by:
The require() I'm using in a PHP script has stopped working after I moved from PHP4 and Apache 1.3.x to PHP5 and Apache 2.x. Now I get messages like this: Warning:...
3
by: Martin Lucas-Smith | last post by:
I've noticed since moving from Apache1/mod_php4/linux to Apache2/mod_php5/linux that when an error is produced by PHP and put in the error_log, the date is no longer logged as well: ...
1
by: news8080 | last post by:
I downloaded a GUI for nagios that uses PHP but when I point the browser at the PHP file, it shows me the source of .php file instead of executing it, if i use command line 'php filname.php'...
3
by: masterx | last post by:
I developed and maintained a site for someone using Apache 1.3 and PHP 4.0.3 and used to be able to reference a page without explicitly specifying the .php extension. ie....
1
by: Randell D. | last post by:
Folks, I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.