LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2007, 05:13 AM   #1
Cally
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Errors in Using PHP 5 and Apache2


Hi!

I am new in using Linux.

I am installing PHP 5 and apache2 as requred modules for mapserver.

I have installed and compliled the php 5 and apache 2. I am getting problem in displaying the index.php file with the following codes <?php phpinfo(); ?> as the browser display my source code. I have stored the file under "/var/www/html" .

Please help.
 
Old 05-15-2007, 11:39 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to make sure you have the following lines in your httpd.conf
Code:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
 
  


Reply

Tags
php



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
Errors while compiling Neko for Apache2 Bultot Linux - Newbie 0 05-08-2006 10:51 AM
Suse 9.3/apache2/php4 - Firefox tries to download index.php, other *php pages work stefanlasiewski SUSE / openSUSE 1 01-18-2006 06:12 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Apache2 config errors.. SiGmA_X Linux - Software 0 06-17-2003 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration