Re: PHP not working



On 5/14/06, Maan Jee <maanjee@xxxxxxxxx> wrote:
Hello,

I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open
index.php file in the browser instead of getting the Output Html page, I get
SAVE "index.php" file popup.

What is the wrong, I have added these lines in httpd.conf
AddType application/x- httpd-php . php
AddType application/x- httpd-php-source . phps


Once modified the httpd.conf file you must restart apache. As root:
apachectl restart

don't forget add enable_apache2="YES" to /etc/rc.conf

regards.

--
Linux is for people who hate Micro$oft. BSD is for people who love Unix ...
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: PHP not working
    ... I have installed Apache HTTP Server 2.20 and PHP 5. ... index.php file in the browser instead of getting the Output Html page, ... You need to add index.php to the DirectoryIndex line ...
    (freebsd-questions)
  • Re: PHP not working
    ... I have installed Apache HTTP Server 2.20 and PHP 5. ... to open index.php file in the browser instead of getting the Output ... Html page, I get SAVE "index.php" file popup. ...
    (freebsd-questions)
  • PHP not working
    ... I have installed Apache HTTP Server 2.20 and PHP 5. ... index.php file in the browser instead of getting the Output Html page, ...
    (freebsd-questions)
  • Re: PHP not working
    ... I have installed Apache HTTP Server 2.20 and PHP 5. ... index.php file in the browser instead of getting the Output Html page, ...
    (freebsd-questions)
  • Re: how to run scripts after a page has already loaded and been sent to a users browser?
    ... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ...
    (alt.php)