LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-02-2003, 08:09 AM   #1
George2
Member
 
Registered: Oct 2003
Posts: 354

Rep: Reputation: 30
Unhappy Meeting when browse php page on Apache.


Hello, everyone!

I meet with a trouble when browsing php page on Apache based web server. After setting up several virtual hosts, and FTP some static html page to the server, all goes perfectly.

But when FTP some php pages to a virtual host, when browsing from my browser, the source code of php is displayed instead of the php generated dynamic web page.

Can anyone help?


Thanks in advance,
Geo
 
Old 11-02-2003, 08:12 AM   #2
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
They either dont have php support installed or they/you are using the wrong extensions..

try

.php
.php4
.php3

etc..

if they have php it will probably either be .php or .php4 and if niether of them works then you need to ask them if they support php and if so what extension on the php files should you use.
 
Old 11-02-2003, 08:15 AM   #3
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks, _KDF buddy!

The situation is... I am the admin of my web site and I want to add php support to each virtual hosts.

How to do that? Are there some samples or tutorials?


Best regards,
Geo
 
Old 11-02-2003, 12:24 PM   #4
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
Well to add php support you just need to install php and edit your apache conf files, add the extensions .php etc, which are probably already in the conf file but commentated out.

So first you need to install php, try and find an rpm for your distro or alternativly just build it yourself from www.php.net
 
Old 11-03-2003, 01:43 AM   #5
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks, _KDF buddy!

Geo
 
  


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
403 when trying to browse users' home pages with apache and mandriva 10.1 Niklas5000 Mandriva 3 03-14-2006 12:40 PM
nvu and page browse? hraposo Slackware 4 04-30-2005 10:50 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
Reloading page with php emilioestevezz Programming 1 09-07-2004 04:40 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM

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

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