Reply
php processing
Old 07-15-2004, 11:08 AM php processing
Junior Talker

Posts: 2
Location: California / Massachusetts
Hey all. I have a question about php. Ive looked through the php and apache documentation but I cant seem to find out why my computer is being retarded. I have Red Hat 8.0 with Apache and PhP. The defalt web directory is var/www/html/something/something/something....its pretty deep in there. phpMyAdmin is in var/www/html/phpMyAdmin. PHP works fine when I load up the regular web page in mozilla, but when I try loading the index.php for phpMyAdmin the browser just shows all the php code. This is when I run it from the machine itself. Should I be setting the default directory up a few to just var/www? If so, how would I do that? Or maybe there is an error with PHP? Not too sure, but its not terribly useful to have php code displayed in the browser. THanks in advance for your help!
leemaj is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-15-2004, 11:29 AM
Republikin's Avatar
Super Moderator

Posts: 3,191
You must edit the httpd.conf file to recognize .php files as just that.
Republikin is offline
Reply With Quote
View Public Profile
 
Old 07-15-2004, 02:38 PM
Junior Talker

Posts: 2
Location: California / Massachusetts
i modified the httpd.conf file and that didnt seem to chagne anything. I basically set the root directory to be var/www but that didnt do anything. When i go to http://servername, it still shows the same web page
leemaj is offline
Reply With Quote
View Public Profile
 
Old 07-15-2004, 02:43 PM
Republikin's Avatar
Super Moderator

Posts: 3,191
Sorry, I should have been more clear. I meant that you have to add the mimetype for php.
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php processing
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11408 seconds with 12 queries