473,378 Members | 1,138 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 2231
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.