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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-18-2003, 09:22 PM
|
#1
|
Member
Registered: May 2003
Location: philadelhpia pa
Posts: 92
Rep:
|
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
|
|
|
10-19-2003, 12:00 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
And you've configured apache to use php by adding or editing it in your httpd.conf file?
|
|
|
10-19-2003, 07:31 AM
|
#3
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Yeah - you should have LoadModule and AddType directives for php in httpd.conf
|
|
|
10-19-2003, 10:18 AM
|
#4
|
Member
Registered: May 2003
Location: philadelhpia pa
Posts: 92
Original Poster
Rep:
|
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
|
|
|
10-19-2003, 10:28 AM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Can you post the php.config and httpd.conf files.
|
|
|
10-19-2003, 07:15 PM
|
#6
|
Member
Registered: May 2003
Location: philadelhpia pa
Posts: 92
Original Poster
Rep:
|
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
|
|
|
10-20-2003, 12:44 PM
|
#7
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I'm not actually sure that you need the AddType with:
<Files *.php>
Are you getting any error messages in your error_log file?
|
|
|
10-21-2003, 08:54 AM
|
#8
|
Member
Registered: May 2003
Location: philadelhpia pa
Posts: 92
Original Poster
Rep:
|
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 ???)
|
|
|
10-21-2003, 12:20 PM
|
#9
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
That's it working.
Perhaps this is the first time you restarted apache?
|
|
|
All times are GMT -5. The time now is 06:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|