473,406 Members | 2,404 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,406 software developers and data experts.

PHP 5.0.1 and Apache2

Hello,

I followed all the steps described in the manual of PHP to install PHP 5.0.1
with Apache (even went to recompile the apache server) but when I try a PHP
script, I only see the code. Checked everything in the FAQ about this, but
nothing seems to work :'(

Does anyone has an idea how to solve this?
Jul 17 '05 #1
4 1807
What OS? If this a new installation or an upgrade from a previous version?
Have you had PHP + Apache working on that machine before?

We cannot help you with your problem unless you supply proper details.

--
Tony Marston

http://www.tonymarston.net

"Thierry Vael" <th**********@ifrance.com> wrote in message
news:10***************@ecw.eurocontrol.be...
Hello,

I followed all the steps described in the manual of PHP to install PHP
5.0.1
with Apache (even went to recompile the apache server) but when I try a
PHP
script, I only see the code. Checked everything in the FAQ about this, but
nothing seems to work :'(

Does anyone has an idea how to solve this?

Jul 17 '05 #2
Tony Marston wrote:
We cannot help you with your problem unless you supply proper details.


Indeed, what have you done precisely? Have you added the proper lines to
the httpd.conf file?

S.

--
The most likely way for the world to be destroyed,
most experts agree, is by accident.
That's where we come in; we're computer professionals.
We cause accidents.
--Nathaniel Borenstein
Jul 17 '05 #3
Hello again

Ok, here we go:

OS => Mandrake Linux 10.0 Community Edition

Yes, Apache 2 was installed on the computer, but removed it before
reinstalling it from scratch. Installed it like said on php.net (manual)
with the options: --enable-so

After install and test of Apache, installed php with options like in manual
(--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql)

All went nice, copied the php.ini file to /usr/local/lib/ (used the
recommended and the distri one) and added the AddType and LoadModule (though
the PHP5 module was in /usr/local/apache2/modules/libphp5.so) so I put
modules/libphp5 in the LoadModule part.

Checked all the different options with httpd and all seems working (mod_so.c
is loaded)

If any more information is needed, please reply ;)

"Tony Marston" <to**@NOSPAM.demon.co.uk> wrote in message
news:cf*******************@news.demon.co.uk...
What OS? If this a new installation or an upgrade from a previous version?
Have you had PHP + Apache working on that machine before?

We cannot help you with your problem unless you supply proper details.

--
Tony Marston

http://www.tonymarston.net

"Thierry Vael" <th**********@ifrance.com> wrote in message
news:10***************@ecw.eurocontrol.be...
Hello,

I followed all the steps described in the manual of PHP to install PHP
5.0.1
with Apache (even went to recompile the apache server) but when I try a
PHP
script, I only see the code. Checked everything in the FAQ about this, but nothing seems to work :'(

Does anyone has an idea how to solve this?


Jul 17 '05 #4
Thierry Vael wrote:
Hello again

Ok, here we go:

OS => Mandrake Linux 10.0 Community Edition

Yes, Apache 2 was installed on the computer, but removed it before
reinstalling it from scratch. Installed it like said on php.net (manual)
with the options: --enable-so

After install and test of Apache, installed php with options like in manual
(--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql)

All went nice, copied the php.ini file to /usr/local/lib/ (used the
recommended and the distri one) and added the AddType and LoadModule (though
the PHP5 module was in /usr/local/apache2/modules/libphp5.so) so I put
modules/libphp5 in the LoadModule part.

Checked all the different options with httpd and all seems working (mod_so.c
is loaded)

If any more information is needed, please reply ;)

"Tony Marston" <to**@NOSPAM.demon.co.uk> wrote in message
news:cf*******************@news.demon.co.uk...
What OS? If this a new installation or an upgrade from a previous version?
Have you had PHP + Apache working on that machine before?

We cannot help you with your problem unless you supply proper details.

--
Tony Marston

http://www.tonymarston.net

"Thierry Vael" <th**********@ifrance.com> wrote in message
news:10***************@ecw.eurocontrol.be...
Hello,

I followed all the steps described in the manual of PHP to install PHP
5.0.1
with Apache (even went to recompile the apache server) but when I try a
PHP
script, I only see the code. Checked everything in the FAQ about this,
but
nothing seems to work :'(

Does anyone has an idea how to solve this?




You need to tell apache what to do with .php files u need to add the line:

AddType application/x-httpd-php .php

to your httpd.conf, just stick it with the other Add Type commands
Jul 17 '05 #5

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:...
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...
0
by: vrillusions | last post by:
I had to compile my own php to get ldap support since the latest php packages for slackware don't have it. So I do the compile and then it doesn't work. I check the apache log and it segfaults. ...
2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
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'...
5
by: solitary.wanderer52 | last post by:
I just finished installing PHP5 on Linux (Debian/Ubuntu/Mepis)/Apache2 using Synaptic. I have tried creating simple html pages, placing them in /var/www and pointing the browser at...
2
by: mmr315 | last post by:
i write 2 php files for uploading file ,it is giving error like Undefined index: C:\\Apache2.2 in C:\\Apache2.2\\htdocs\\upload_file.php on line 11, upload.php -------------------- <html>...
5
RedSon
by: RedSon | last post by:
Grr! I've been trying to set up apache2 to serve my bugzilla page for like a week now and I give up! I installed bugzilla: /srv$ ls -l drwxr-xr-x www-data www-data bugzilla I've tried...
2
by: sasimca007 | last post by:
If we are using Apache1.3.31 version then in man apache will come and we can use default functions and variables like document_root and send_http_header() etc... But in Apache2 version what is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.