FreeBSD9 + PHP
I created a jail and within a jail I did pkg_add -r apache22 pkg_add -r php5 now I have apache and php, but whenever I'm trying to hit phpinfo.php, I see source code... I dont think php5 added inside of apache22 -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
> I created a jail and within a jail I did > > pkg_add -r apache22 > pkg_add -r php5 > > now I have apache and php, but whenever I'm trying to hit phpinfo.php, > I see source code... I dont think php5 added inside of apache22 > > -- > http://alexus.org/ I don't think the package has the apache module by default: pkbsd:#pwd /usr/ports/lang/php5 pkbsd:#make config [ ] APACHE Build Apache module That is unchecked. You'll have to select that and build the port. ...Or you can use the CGI version which is included in the package: [*] CGIBuild CGI version ]Peter[ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
there is no way to make it like that? so it has to be build via ports? On Mon, Jan 9, 2012 at 3:02 PM, Peter wrote: >> I created a jail and within a jail I did >> >> pkg_add -r apache22 >> pkg_add -r php5 >> >> now I have apache and php, but whenever I'm trying to hit phpinfo.php, >> I see source code... I dont think php5 added inside of apache22 >> >> -- >> http://alexus.org/ > > I don't think the package has the apache module by default: > pkbsd:#pwd > /usr/ports/lang/php5 > pkbsd:#make config > [ ] APACHE Build Apache module > > That is unchecked. You'll have to select that and build the port. > ...Or you can use the CGI version which is included in the package: > [*] CGI Build CGI version > > > ]Peter[ > -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On Jan 9, 2012, at 12:02 PM, alexus wrote: > there is no way to make it like that? so it has to be build via ports? The PHP maintainer decides the default options, which is what the precompiled package you got used. While many people want PHP in the form of an Apache module, other folks use it via fastcgi and so forth... Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
Op 9-1-2012 21:06, Chuck Swiger schreef: On Jan 9, 2012, at 12:02 PM, alexus wrote: there is no way to make it like that? so it has to be build via ports? The PHP maintainer decides the default options, which is what the precompiled package you got used. While many people want PHP in the form of an Apache module, other folks use it via fastcgi and so forth... Yes that might be so. But it's far better to *have* this module and disable it in Apache than not have it at all and for that reason only *buiild* apache from ports in stead of using a package. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
Op 9-1-2012 21:02, alexus schreef: there is no way to make it like that? so it has to be build via ports? On Mon, Jan 9, 2012 at 3:02 PM, Peter wrote: I created a jail and within a jail I did pkg_add -r apache22 pkg_add -r php5 now I have apache and php, but whenever I'm trying to hit phpinfo.php, I see source code... I dont think php5 added inside of apache22 -- http://alexus.org/ I don't think the package has the apache module by default: pkbsd:#pwd /usr/ports/lang/php5 pkbsd:#make config [ ] APACHE Build Apache module That is unchecked. You'll have to select that and build the port. ...Or you can use the CGI version which is included in the package: [*] CGIBuild CGI version Yes there is no other way. Personally I find this unchecking rather weird. To me apache/PHP are a happily married couple. It makes building a webserver on packages only *not* possible and that's stupid imo. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On Tue, Jan 10, 2012 at 5:09 AM, Dick Hoogendijk wrote: > Op 9-1-2012 21:02, alexus schreef: >> >> there is no way to make it like that? so it has to be build via ports? >> >> On Mon, Jan 9, 2012 at 3:02 PM, Peter wrote: I created a jail and within a jail I did pkg_add -r apache22 pkg_add -r php5 now I have apache and php, but whenever I'm trying to hit phpinfo.php, I see source code... I dont think php5 added inside of apache22 -- http://alexus.org/ >>> >>> I don't think the package has the apache module by default: >>> pkbsd:#pwd >>> /usr/ports/lang/php5 >>> pkbsd:#make config >>> [ ] APACHE Build Apache module >>> >>> That is unchecked. You'll have to select that and build the port. >>> ...Or you can use the CGI version which is included in the package: >>> [*] CGI Build CGI version >>> > Yes there is no other way. Personally I find this unchecking rather weird. > To me apache/PHP are a happily married couple. It makes building a webserver > on packages only *not* possible and that's stupid imo. > +1 I second you again here! I've read in some PHP forums to stay away from Apache and mod_php and to use FCGI instead. Maybe this is a trend in the PHP community, but I couldn't care less because IMO it hurts FBSD in the long run, not to have the module built by default. -- Alejandro Imass ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On Mon, Jan 9, 2012 at 22:52, alexus wrote: > I created a jail and within a jail I did > > pkg_add -r apache22 > pkg_add -r php5 > > now I have apache and php, but whenever I'm trying to hit phpinfo.php, > I see source code... I dont think php5 added inside of apache22 > > `grep php /usr/local/etc/apache22/httpd.conf ` [wash@jaribu ~]$ grep php /usr/local/etc/apache22/httpd.conf LoadModule php5_modulelibexec/apache22/libphp5.so DirectoryIndex index.php index.php3 index.html index.htm index.shtml index.phtml index.inc index.pl index.cgi index.jsp index.txt AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps The last two lines are very important. However, I seriously doubt this documentation that you read, as it lied to you so badly. Which one is it?? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On 1/10/12 11:11 AM, Dick Hoogendijk wrote: > Op 9-1-2012 21:06, Chuck Swiger schreef: >> On Jan 9, 2012, at 12:02 PM, alexus wrote: >>> there is no way to make it like that? so it has to be build via ports? >> The PHP maintainer decides the default options, which is what the >> precompiled package you got used. While many people want PHP in the >> form of an Apache module, other folks use it via fastcgi and so forth... > Yes that might be so. But it's far better to *have* this module and > disable it in Apache than not have it at all and for that reason only > *buiild* apache from ports in stead of using a package. > Yeah, no thank you. What about those people that don't even *use* apache and want to install PHP ? We get stuck with a useless module ? Really, *no thank you* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On 1/10/12 3:09 PM, Alejandro Imass wrote: > On Tue, Jan 10, 2012 at 5:09 AM, Dick Hoogendijk wrote: >> Op 9-1-2012 21:02, alexus schreef: >>> >>> there is no way to make it like that? so it has to be build via ports? >>> >>> On Mon, Jan 9, 2012 at 3:02 PM, Peter wrote: > > I created a jail and within a jail I did > > pkg_add -r apache22 > pkg_add -r php5 > > now I have apache and php, but whenever I'm trying to hit phpinfo.php, > I see source code... I dont think php5 added inside of apache22 > > -- > http://alexus.org/ I don't think the package has the apache module by default: pkbsd:#pwd /usr/ports/lang/php5 pkbsd:#make config [ ] APACHE Build Apache module That is unchecked. You'll have to select that and build the port. ...Or you can use the CGI version which is included in the package: [*] CGIBuild CGI version >> Yes there is no other way. Personally I find this unchecking rather weird. >> To me apache/PHP are a happily married couple. It makes building a webserver >> on packages only *not* possible and that's stupid imo. >> > > +1 > I second you again here! > > I've read in some PHP forums to stay away from Apache and mod_php and > to use FCGI instead. Maybe this is a trend in the PHP community, but I > couldn't care less because IMO it hurts FBSD in the long run, not to > have the module built by default. > And that's your MO. Mine is, as I pointed out in my earlier reply to Dick, that people who don't even *use* apache shouldn't get stuck with a *useless apache module* just because they installed PHP. A possible alternative that would keep everyone happy would be *another* package that actually includes the module, like for example a package called "mod_php5", it would install the stuff from php5 + the apache module. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On Tue, Jan 10, 2012 at 9:32 AM, Damien Fleuriot wrote: > > [...] > > Mine is, as I pointed out in my earlier reply to Dick, that people who > don't even *use* apache shouldn't get stuck with a *useless apache > module* just because they installed PHP. > > > A possible alternative that would keep everyone happy would be *another* > package that actually includes the module, like for example a package > called "mod_php5", it would install the stuff from php5 + the apache module. Could be, something like mod_perl, but contrary from Perl, PHP is not very useful without Apache anyway. -- Alejandro Imass ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
Op 10-1-2012 15:30, Damien Fleuriot schreef: On 1/10/12 11:11 AM, Dick Hoogendijk wrote: Op 9-1-2012 21:06, Chuck Swiger schreef: On Jan 9, 2012, at 12:02 PM, alexus wrote: there is no way to make it like that? so it has to be build via ports? The PHP maintainer decides the default options, which is what the precompiled package you got used. While many people want PHP in the form of an Apache module, other folks use it via fastcgi and so forth... Yes that might be so. But it's far better to *have* this module and disable it in Apache than not have it at all and for that reason only *buiild* apache from ports in stead of using a package. Yeah, no thank you. What about those people that don't even *use* apache and want to install PHP ? We get stuck with a useless module ? Really, *no thank you* Wow, that really IS bad.. considering the price of drivespace.. No it really is much better to *force* everyone who wants to run apache/PHP to *build* from source. No pkgadd for those guys.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
Op 10-1-2012 15:32, Damien Fleuriot schreef: A possible alternative that would keep everyone happy would be *another* package that actually includes the module, like for example a package called "mod_php5", it would install the stuff from php5 + the apache module. That is the way CentOS handles things and that works very well too. So +1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On 1/10/12 4:34 PM, Alejandro Imass wrote: > On Tue, Jan 10, 2012 at 9:32 AM, Damien Fleuriot wrote: >> >> > > [...] > >> >> Mine is, as I pointed out in my earlier reply to Dick, that people who >> don't even *use* apache shouldn't get stuck with a *useless apache >> module* just because they installed PHP. >> >> >> A possible alternative that would keep everyone happy would be *another* >> package that actually includes the module, like for example a package >> called "mod_php5", it would install the stuff from php5 + the apache module. > > Could be, something like mod_perl, but contrary from Perl, PHP is not > very useful without Apache anyway. > > And who are you to claim that "php is not very useful w/o apache anyway" ? I mean, just because it falls within your needs doesn't mean it's a good option for everyone. In the same way, I could claim that rsyslogd should replace syslogd in the base system because I find it better, so everyone should use it. We use PHP here in a production environment on many servers that have never seen, and will never ever see, apache. On some it runs daemons, on some it runs scripts, on yet some others it's served by either nginx or lighttpd, not to mention dedicated fastcgi servers that don't have a web server running to begin with. IMO the best option would be a separate package, enforcing an apache module on people that will never ever use it is just plain dumb. This also seems to be the opinion of the port's manager, seeing mod_php is unselected by default. Just my 2 cents. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On 1/10/12 5:01 PM, Dick Hoogendijk wrote: > Op 10-1-2012 15:30, Damien Fleuriot schreef: >> >> On 1/10/12 11:11 AM, Dick Hoogendijk wrote: >>> Op 9-1-2012 21:06, Chuck Swiger schreef: On Jan 9, 2012, at 12:02 PM, alexus wrote: > there is no way to make it like that? so it has to be build via ports? The PHP maintainer decides the default options, which is what the precompiled package you got used. While many people want PHP in the form of an Apache module, other folks use it via fastcgi and so forth... >>> Yes that might be so. But it's far better to *have* this module and >>> disable it in Apache than not have it at all and for that reason only >>> *buiild* apache from ports in stead of using a package. >>> >> Yeah, no thank you. >> >> What about those people that don't even *use* apache and want to install >> PHP ? >> >> We get stuck with a useless module ? >> >> Really, *no thank you* > Wow, that really IS bad.. considering the price of drivespace.. No it > really is much better to *force* everyone who wants to run apache/PHP to > *build* from source. No pkgadd for those guys.. > It's not about disk space, it's about the philosophy behind it. Following the same line of thinking, the CGI binary should also be included, along with spawn-fcgi, php-fpm and so on. A separate package would be ideal, it'd be the same as php5 but would also include the apache module. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
On Tue, 10 Jan 2012 17:14:30 +0100 Damien Fleuriot wrote: > > > On 1/10/12 4:34 PM, Alejandro Imass wrote: > > On Tue, Jan 10, 2012 at 9:32 AM, Damien Fleuriot wrote: > >> > >> > > > > [...] > > > >> > >> Mine is, as I pointed out in my earlier reply to Dick, that people > >> who don't even *use* apache shouldn't get stuck with a *useless > >> apache module* just because they installed PHP. > >> > >> > >> A possible alternative that would keep everyone happy would be > >> *another* package that actually includes the module, like for > >> example a package called "mod_php5", it would install the stuff > >> from php5 + the apache module. > > > > Could be, something like mod_perl, but contrary from Perl, PHP is > > not very useful without Apache anyway. > > > > > > And who are you to claim that "php is not very useful w/o apache > anyway" ? I mean, just because it falls within your needs doesn't > mean it's a good option for everyone. > > > In the same way, I could claim that rsyslogd should replace syslogd in > the base system because I find it better, so everyone should use it. > > > > We use PHP here in a production environment on many servers that have > never seen, and will never ever see, apache. > > On some it runs daemons, on some it runs scripts, on yet some others > it's served by either nginx or lighttpd, not to mention dedicated > fastcgi servers that don't have a web server running to begin with. > > The thing is much more users probably use PHP with Apache than standalone. Although you described other way, it is not the way majority of user would use. > > IMO the best option would be a separate package, enforcing an apache > module on people that will never ever use it is just plain dumb. > > This also seems to be the opinion of the port's manager, seeing > mod_php is unselected by default. Separate package would probably be the best option. But default flags/packages should be ready-configured for most of users, shouldn't they? For others there are still ports. > > Just my 2 cents. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscr...@freebsd.org" -- František Farka ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD9 + PHP
I appreciate everyone's input on this matter and the bottom line is: mod_php and/or php-fpm should be created as a _separate_package_ for users who have no need for it, should _NOT_ install it in fact if this package exists or not it shouldn't even concern you (since you not using it) for users who finds it useful then can go ahead and install it using pkg_add I don't understand why so much fuss about that at the first place? a lot of other distributions are doing that way and it's pretty much "win win" for everyone, at least I didn't see anyone complaining I posted this message to ports@ and to maintenances for these packages, hopefully they'll do as time permits. -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"