LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2003, 10:22 PM   #1
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
read php files, redhat 8.0


i loded mysql, and it has all these php file
they sure appear somewhat like html files

i need to be able to read php files
redhat 8.0
httpd-2.0.40-11.5

i did :
rpm -qa | grep php
and got:
php-ldap-4.2.2-8.0.8
php-imap-4.2.2-8.0.8
php-4.2.2-8.0.8
 
Old 10-19-2003, 01:00 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
And you've configured apache to use php by adding or editing it in your httpd.conf file?
 
Old 10-19-2003, 08:31 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Yeah - you should have LoadModule and AddType directives for php in httpd.conf
 
Old 10-19-2003, 11:18 AM   #4
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
well i think i have...
there is a dir /etc/httpd/conf.d
in there is php.confi

there is:
Include /etc/httpd/conf.d/*.conf
in httpd.conf,
so, id think that the php.conf IS being executed
(i can post the contesnt, if needed)

i cant, using the gui, get anything associated wit a phop,
and, when i go to a file, with mozilla, it llookks like source
 
Old 10-19-2003, 11:28 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Can you post the php.config and httpd.conf files.
 
Old 10-19-2003, 08:15 PM   #6
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
this is in:
/etc/httpd/conf.d/php.conf



#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


Include /etc/httpd/conf.d/*.conf
appears in /etc/httpd/conf/httpd.conf

and i added this:

AddType application/x-httpd-php .php
 
Old 10-20-2003, 01:44 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
I'm not actually sure that you need the AddType with:
<Files *.php>

Are you getting any error messages in your error_log file?
 
Old 10-21-2003, 09:54 AM   #8
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
OH..... might it be working ?????????

i have this file: phpinfo.php
<?php
phpinfo();
?>

and i have a whole page of info.....
(like so oftern happens.... its working, but i havent a clue why ???)
 
Old 10-21-2003, 01:20 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
That's it working.

Perhaps this is the first time you restarted apache?
 
  


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
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 07:58 PM
Firefox won't read .php files Lagg Linux - Software 1 05-06-2005 01:40 AM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 12:05 PM
how to read *.chm files on Redhat 9 ? La Dima Red Hat 4 12-14-2004 10:38 PM
PHP unable to read .php files tuka Linux - Software 6 10-12-2003 07:40 PM


All times are GMT -5. The time now is 09:34 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration