Computing.Net > Forums > Linux > php apache mysql on Redhat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

php apache mysql on Redhat

Reply to Message Icon

Name: Dustin
Date: October 21, 2002 at 07:44:40 Pacific
OS: Redhat 7.2
CPU/Ram: 1 Ghz / 128 M
Comment:

I recently installed Redhat 7.2. Apache, php, and mysql were all installed with it. I have some php scripts that I know work. When I place them in /var/www/html, start up apache, and mysql they do not work. If I point a browser at the .php files, it displays the code instead of interpreting it. This is my first time working with Apache. Is there a way to tell if Apache and php are configured right? Is there a special directory to place the php files? Thanks for any help.



Sponsored Link
Ads by Google

Response Number 1
Name: jwalk
Date: October 21, 2002 at 12:24:14 Pacific
Reply:

put this line in your httpd.conf (maybe
commonhttpd.conf if Redhat installs files
like Mandrake) between the tag and the
tag:

AddType application/x-httpd-php .php


0

Response Number 2
Name: jwalk
Date: October 21, 2002 at 12:26:12 Pacific
Reply:

my tags were omitted from the last post. i
meant between the "IfModule
mod_mime.c" tag and the "/IfModule" tag.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: php apache mysql on Redhat

Cant Install Apache, MYSQL, PHP on www.computing.net/answers/linux/cant-install-apache-mysql-php-on-/21446.html

MySQL, PHP & Apache on Red Hat 7.3 www.computing.net/answers/linux/mysql-php-amp-apache-on-red-hat-73/12765.html

Config PHP with MySQL in RedHat www.computing.net/answers/linux/config-php-with-mysql-in-redhat/7626.html