LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-05-2004, 11:39 AM   #1
birv
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Rep: Reputation: 0
Installing PHP as an apache module?


I'm trying to install Logicampus, an open-source alternative to Blackboard, which is an online educational class management system.

I actually have it installed but when I try to run it I get these errors:

Warning: gzuncompress: buffer error in /var/www/html/logicreate/lib/LC_user.php on line 106

Fatal error: Call to undefined function: apache_request_headers() in /var/www/html/logicreate/lib/LC_user.php on line 167

Someone told me they thought I'm getting the apache_request_headers() error because I don't have PHP installed as an apache module. 2 questions --

1. How do I go about changing the apache setup?

2. Will this interfere with other programs I have running -- phpBB, drupal, mamboserver (all of which run fine)?

My set up is
RedHat 9
PHP 4.2.2
MySQL 3.23.58
Apache 2.0.40

Thanks!
Bob Irving
 
Old 04-05-2004, 12:48 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. Determining whether mod_php is installed (and *which* mod_php):

Assuming PHP is installed and working, the easiest way to find
out about mod_php is to use the function "phpinfo()":

a) cd to your Apache DocumentRoot directory
EXAMPLE: cd /var/www/htdocs

b) Write the following PHP script:
EXAMPLE: vi phpinfo.php =>
<?php
phpinfo ();
?>

c) Point your web browser at the script to execute it:
EXAMPLE: http://MYSERVER/phpinfo.php
<= LOOK IN THE "LOADED MODULES" OF THE "APACHE" SECTION.
IF MOD_PHP IS LOADED, YOU SHOULD SEE IT
(NOTE: IT PROBABLY IS, AND YOU PROBABLY WILL...)

2. Have you considered looking at your include_path directive in your php.ini configuration file?
EXAMPLE: vi /etc/php.ini =>
; UNIX: "/path1:/path2"
include_path = ".:/opt/gforge-3.21/hp/includes";

'Hope that helps .. PSM
 
Old 04-05-2004, 01:22 PM   #3
birv
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
OK, I actually had a phpinfo() script written. I ran it, and there are no modules listed under Apache. It says "Additional Modules" and lists sysvhm and sysvsem but doesn't have anything else listed.

Seems weird to me, but I don't know enough to know....

Bob
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing a php module Koven Linux - Software 2 02-23-2005 10:05 AM
Apache + PHP Module chrisk5527 Linux - General 16 04-06-2004 07:09 AM
need help installing php with apache jsbush Linux - Newbie 3 11-17-2003 10:06 PM
Can't load php module in Apache pepino Linux - Newbie 2 10-21-2003 11:26 AM
apache and php module mod_php.so kngharv Linux - General 1 11-21-2001 09:39 PM

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

All times are GMT -5. The time now is 05:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration