Re: how use php4 / php5 in localhost



Also sprach artev:

no; but now I have php4 installed how module and my applications
work; so now I not want change (only because if I have some
difficulty I not know if simple return at previous settings);

Just make a backup of your httpd.conf. Then it's no problem to switch back.
(Just remember to restart Apache.) I have simply added an Include directive
to the httpd.conf file to load my additional config with the CGI settings.
If anything should go wrong, I can either comment out the include or replace
the included file with an empty one.

also I not know if when one application run on php cgi is possible
that some application not run more (I am not an php expert so not
know potential problmes);

It is true that there are a few things one cannot do with the CGI version,
like HTTP authentication or setting PHP config values or flags in an
..htaccess file, but if your application does not make use of either, I see
no problem.

also I know that moduel is more fast but not know if this is so
important for small applications in localhost;

Yes, the module version is faster (as it is loaded only once when Apache
starts). But there are many other factors that influence the speed, so I do
not think this issue is of much importance.

a question when you move an application from php cgi to server you on
server use module ? and you had some problems?

An application that runs fine under CGI should run fine under a PHP module.
I've never had any problems with that. Just give it a try!

Greetings,
Thomas

--
C'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)


.



Relevant Pages

  • Re: sendmail config double check
    ... > my bsd LAMP machine won't send any emails through php. ... > now, if my brain is straight, these settings should reject outside ... e-mail without an MTA process in there somewhere, ... I'm not exactly sure how PHP sends e-mail on a Unix system. ...
    (freebsd-questions)
  • Re: Error reporting
    ... seems that it indeed was my mistake in configuring PHP. ... looking at the output from phpinfo(). ... later in the same file the same settings were set to Off. ... > to the fake function. ...
    (comp.lang.php)
  • Re: [PHP] Sending E-mail
    ... try to use a local email address first. ... is borked (in which case php won't be able to use it to send any email!). ... smtp and smtp_port are ini settings that are only valid for windows, ... other than that I can only suggest looking at the moon - it won't ...
    (php.general)
  • Re: netscape mozilla iexplorer standard
    ... >> PHP with default settings ... >> You will end up with validation errors. ... >> (Bug and workarounds can be found in the php bug database) ...
    (comp.lang.php)
  • Re: [PHP] Sending E-mail
    ... Janet Smith wrote: ... is borked (in which case php won't be able to use it to send any email!). ... smtp and smtp_port are ini settings that are only valid for windows, ... other than that I can only suggest looking at the moon - it won't ...
    (php.general)