Developing a small site with PHP...For dev purpose, I need to tell Apache where my php files are. Something to do with htdocs or docroot, but I can't figure out what to do...
Direct Apache to php file
Uh... I'm not sure I understand your question. Scratch that... I KNOW I don't understand your question.
What do you mean tell Apache where the PHP files are? I know that you can set the doc_root in PHP's config file...
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =[code]
Is this what you were looking for?
I need to be able to display the php file in a browser.
As it is, when I point a browser to a php file it doesn't know how to display it and so it starts to download it.
Sounds like PHP isn't configured correctly.
What O/S is the server running on and how did you try to install PHP?
Suse Linux.9.2
Php 4.3.4 is installed.
I don't have much experience installing PHP on 'nix, but... did you add PHP to the Apache conf file? Either as a module or CGI executable?