Re: php files?

From: Henriette Kress (spamtrap.hetta_at_spamcop.net)
Date: 12/12/03


Date: Fri, 12 Dec 2003 21:25:23 +0200

Dragec wrote:

> I have installed SuSE9.0, Apache with default settings and PHP
> When I try to open (for example) file:/srv/www/htdocs/phprojekt/index.php
> in any web browser, browser windows shows the script, but it is not
> executed. Why's that?

I dimly remember something or other about php.ini. Possibly you'll have to
enable things in the apache config file, too. Oh, and of course you'll
have to start apache:
$ su
(password)
# rcapache start

AND you won't be able to execute any php script by calling it with
file:/whatever.

You'll HAVE to call it with http://localhost/... (in your case,
http://localhost/phproject/index.php), else apache doesn't kick in at all,
which means no php either.

Hetta

-- 
Henriette Kress, AHG                         Helsinki, Finland
Henriette's herbal homepage:    http://www.ibiblio.org/herbmed
Best of RHOD:              http://www.ibiblio.org/herbmed/rhod


Relevant Pages

  • Re: How to turn off taint checking in cgi
    ... By removing the -T option from the shebang in the script and/or the ... apparently it is an apache problem -- or at least I have an ... It's called Rock v. 1.0. ... execute malicious code, because it won't execute any code at all. ...
    (comp.lang.perl.misc)
  • Re: Perl errors
    ... >> Apache won't touch it other than displaying the target script instead of ... > what specific Apache configuration do you use? ... do a symbolic link Apache will definitely execute the script and it works. ... Even doing a container for the directory I want to execute perl ...
    (Fedora)
  • Re: cgi
    ... Apache does NOT execute based on file extension type - it ... If you are trying to execute a script OUTSIDE of the cgi-bin directory, ...
    (comp.lang.tcl)
  • Re: External program from Lisp CGI
    ... I'm working on Lisp CGI based mostly on Maxima functions. ... I use Apache with mod_cgi on Debian. ... What happens if you attempt to execute the cgi script as the same user the ...
    (comp.lang.lisp)
  • Re: PHP problems
    ... > script on the screen. ... You'll probably either have to build PHP yourself from scratch, ... Apache httpd.conf file. ... and try to view that file through your web browser. ...
    (comp.unix.solaris)