Installing php5 from ports
Hi everyone, I've run into a bit of an issue while trying to install php5 from ports. I've been playing around trying to create an accurate "howto" for setting up apache, mysql, and php on this machine. So I've actually installed and deinstalled a couple of times already. This last time the message below came up. # make install ===> Installing for php5-5.2.8 ===> php5-5.2.8 depends on file: /usr/local/sbin/apxs - found ===> php5-5.2.8 depends on executable: pkg-config - found ===> php5-5.2.8 depends on shared library: xml2.5 - found ===> Generating temporary packing list ===> Checking if lang/php5 already installed "Makefile", line 612: warning: duplicate script for target "main/internal_functions.lo" ignored Installing PHP SAPI module: apache /usr/local/share/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/build-1/libtool' libs/libphp5.so /usr/local/libexec/apache /usr/local/build-1/libtool --mode=install cp libs/libphp5.so /usr/local/libexec/apache/ cp libs/libphp5.so /usr/local/libexec/apache/libphp5.so Warning! dlname not found in /usr/local/libexec/apache/libphp5.so. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/local/libexec/apache/libphp5.so apxs:Error: Config file /usr/local/etc/apache/httpd.conf not found. *** Error code 1 Stop in /usr/ports/lang/php5/work/php-5.2.8. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. The only sense I can make of it is it wants to install the apache module, but it can't find httpd.conf under /usr/local/etc/apache/ No surprise that as httpd.conf is under /usr/local/etc/apache22/ Is there a way to force the install to look in the correct path? Thanks everyone :) -- Tim ___ 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"
Making changes to ports default install
Hi everyone, I've been working on a new server, and I'd like to install apache from ports to make maintenance easier. The problem is the default layout drives me nuts. I'd like to use a more intuitive layout. Is it possible to pass a custom layout file during make build? Something like make build WITH_LAYOUT=/path/to/layout/file or something along those lines? If it makes any difference, I also need to install PHP and MySQL along with apache. I don't know if using a different layout file would cause issues with either of those. Anyone have any advice on that? Thanks all :) Tim -- Ronald Reagan - "Recession is when a neighbor loses his job. Depression is when you lose yours." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Apache22 Port Install Problem
> > Message: 16 > > Date: Tue, 8 Apr 2008 21:24:58 +0200 > > From: Mel <[EMAIL PROTECTED]> > > Subject: Re: Apache22 Port Install Problem > > To: freebsd-questions@freebsd.org > > Cc: Tim DeBoer <[EMAIL PROTECTED]> > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="iso-8859-1" > > > > On Tuesday 08 April 2008 07:11:47 Tim DeBoer wrote: > > > > > The install goes fine, no obvious errors anyway, when I do apachectl > > > configtest, I get > > > # apachectl configtest > > > Syntax error on line 117 of /usr/local/etc/apache22/httpd.conf: > > > Invalid command 'Order', perhaps misspelled or defined by a module not > > > > > > > > Is this line present and active? > > LoadModule authz_host_module libexec/apache22/mod_authz_host.so > > > > > > -- > > Mel > > > > Problem with today's modular software: they start with the modules > >and never get to the software part. > > > > No. > I do have LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so > though. > [snip] Problem solved. I had to delete the package from distfiles. After I did that make read the config file correctly, downloaded a new tarball, and installed what I needed. Thanks for the help :) -- Tim DeBoer Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you move the wall. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-questions Digest, Vol 210, Issue 6
-- > > Message: 16 > Date: Tue, 8 Apr 2008 21:24:58 +0200 > From: Mel <[EMAIL PROTECTED]> > Subject: Re: Apache22 Port Install Problem > To: freebsd-questions@freebsd.org > Cc: Tim DeBoer <[EMAIL PROTECTED]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > On Tuesday 08 April 2008 07:11:47 Tim DeBoer wrote: > > > The install goes fine, no obvious errors anyway, when I do apachectl > > configtest, I get > > # apachectl configtest > > Syntax error on line 117 of /usr/local/etc/apache22/httpd.conf: > > Invalid command 'Order', perhaps misspelled or defined by a module not > > > > Is this line present and active? > LoadModule authz_host_module libexec/apache22/mod_authz_host.so > > > -- > Mel > > Problem with today's modular software: they start with the modules >and never get to the software part. > No. I do have LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so though. I tried recompiling again without auth_basic, and used the authz options instead, but it's not actually installing them for some reason. # make deinstall ===> Deinstalling for www/apache22 ===> Deinstalling apache-2.2.8 pkg_delete: file '/usr/local/libexec/apache22/mod_authz_dbm.so' doesn't exist pkg_delete: file '/usr/local/libexec/apache22/mod_authz_default.so' doesn't exist pkg_delete: file '/usr/local/libexec/apache22/mod_authz_groupfile.so' doesn't exist pkg_delete: file '/usr/local/libexec/apache22/mod_authz_host.so' doesn't exist pkg_delete: file '/usr/local/libexec/apache22/mod_authz_owner.so' doesn't exist pkg_delete: file '/usr/local/libexec/apache22/mod_authz_user.so' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) It looks like it never really tried to install to begin with? I'm selecting my options via 'make config', then I run make, make install. In theory it should read the new config each time. -- Tim DeBoer Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you move the wall. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Apache22 Port Install Problem
I wasn't sure if I should post here or on the apache list, but since it's an issue with the port version, rather than the tarball, hopefully this is the right place. The install goes fine, no obvious errors anyway, when I do apachectl configtest, I get # apachectl configtest Syntax error on line 117 of /usr/local/etc/apache22/httpd.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration This is the related section in httpd.conf that it's complaining about: # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # AllowOverride None Order deny,allow Deny from all I've tried re-compiling without any extra options at all, and I've tried it with auth_basic enabled. I made sure to use the "fresh" httpd.conf, each time but it made no difference. I'm really not sure how to proceed here. Could someone point me in the right direction, please? Thanks :) -- Tim DeBoer The other day, I dropped a piece of bread and it fell butter side up. I was convinced that I'd buttered the wrong side of the bread. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Override ports security restrictions?
On 9/25/07, Tim DeBoer <[EMAIL PROTECTED]> wrote: [snip] > Hmmm, it seems to want to work, but I end up with a bunch of errors. > > # make -DIGNORE_VULNERABILITIES install > "/usr/ports/Mk/bsd.port.mk", line 2294: warning: String co > mparison operator should be either == or != > "/usr/ports/Mk/bsd.port.mk", line 2294: warning: String co > mparison operator should be either == or != > "/usr/ports/Mk/bsd.port.mk", line 2294: Malformed conditio > nal (((${OSVERSION} < 504105 || (${OSVERSION} >= 60 && > ${OSVERSION} < 600103) || (${OSVERSION} >= 70 && ${OS > VERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_ins > tall") || exists(${LOCALBASE}/sbin/pkg_info)) > "/usr/ports/Mk/bsd.port.mk", line 2295: warning: String co > mparison operator should be either == or != > "/usr/ports/Mk/bsd.port.mk", line 2295: warning: String co > mparison operator should be either == or != > "/usr/ports/Mk/bsd.port.mk", line 2295: Malformed conditio > nal ((${OSVERSION} < 504105 || (${OSVERSION} >= 60 && > ${OSVERSION} < 600103) || (${OSVERSION} >= 70 && ${OSV > ERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_inst > all") > "/usr/ports/Mk/bsd.port.mk", line 6100: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 6100: Need an operator > "/usr/ports/Mk/bsd.port.mk", line 6103: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 6103: Need an operator > make: fatal errors encountered -- cannot continue > > Any thoughts? > > Thanks, I really do appreciate the help :-) > Never mind that. I'm an idiot. I was trying to build on the machine I'm going to replace. Observation skills FTW. make DISABLE_VULNERABILITIES=yes install Did the trick. Thanks for the help! -- Tim DeBoer http://www.freebsd-geek.com Just once, I'd like it if someone called me "Sir". Without adding "You're creating a scene". ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Override ports security restrictions?
On 9/25/07, Erik Trulsson <[EMAIL PROTECTED]> wrote: > On Tue, Sep 25, 2007 at 01:27:05AM -0600, Tim DeBoer wrote: > > I'm trying to install /usr/ports/graphics/png > > > > ===> png-1.2.12_1 has known vulnerabilities: > > => png -- DoS crash vulnerability. > >Reference: > > <http://www.FreeBSD.org/ports/portaudit/4cb9c513-03ef-11dc-a51d-0019b95d4f14.html> > > => Please update your ports tree and try again. > > *** Error code 1 > > > > While I can appreciate the attempt to protect me from doing something > > "stupid", I really do need to get this installed, and from what I've > > read, it looks like a non-issue for me. > > > > Is there a way to get "force" ports to install this package? > > Yes. Use 'make -DIGNORE_VULNERABILITIES install' > (This is documented in the ports(7) manpage.) > > > -- > > Erik Trulsson > [EMAIL PROTECTED] > Hmmm, it seems to want to work, but I end up with a bunch of errors. # make -DIGNORE_VULNERABILITIES install "/usr/ports/Mk/bsd.port.mk", line 2294: warning: String co mparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2294: warning: String co mparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2294: Malformed conditio nal (((${OSVERSION} < 504105 || (${OSVERSION} >= 60 && ${OSVERSION} < 600103) || (${OSVERSION} >= 70 && ${OS VERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_ins tall") || exists(${LOCALBASE}/sbin/pkg_info)) "/usr/ports/Mk/bsd.port.mk", line 2295: warning: String co mparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2295: warning: String co mparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2295: Malformed conditio nal ((${OSVERSION} < 504105 || (${OSVERSION} >= 60 && ${OSVERSION} < 600103) || (${OSVERSION} >= 70 && ${OSV ERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_inst all") "/usr/ports/Mk/bsd.port.mk", line 6100: if-less endif "/usr/ports/Mk/bsd.port.mk", line 6100: Need an operator "/usr/ports/Mk/bsd.port.mk", line 6103: if-less endif "/usr/ports/Mk/bsd.port.mk", line 6103: Need an operator make: fatal errors encountered -- cannot continue Any thoughts? Thanks, I really do appreciate the help :-) -- Tim DeBoer Just once, I'd like it if someone called me "Sir". Without adding "You're creating a scene". ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Override ports security restrictions?
I'm trying to install /usr/ports/graphics/png ===> png-1.2.12_1 has known vulnerabilities: => png -- DoS crash vulnerability. Reference: <http://www.FreeBSD.org/ports/portaudit/4cb9c513-03ef-11dc-a51d-0019b95d4f14.html> => Please update your ports tree and try again. *** Error code 1 While I can appreciate the attempt to protect me from doing something "stupid", I really do need to get this installed, and from what I've read, it looks like a non-issue for me. Is there a way to get "force" ports to install this package? Thanks! -- Tim DeBoer Just once, I'd like it if someone called me "Sir". Without adding "You're creating a scene". ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Questions about passwd files
Hi everyone, I'm building a new FreeBSD 6.2-RELEASE system, and I need to move a ton of users from the old FreeBSD 4.8-RELEASE system. I was hoping it would be as easy as copying the master.passwd, passwd, and group files to the new box and rebooting, but No. It's not. Is there a way to "migrate" users from the old box to the new one? I don't care so much about migrating all their home directory contents or mail, I just want a method to add all the old users & passwords and groups to the new machine, and create the user directories in a batch operation. Thanks! -- Tim DeBoer Just once, I'd like it if someone called me "Sir". Without adding "You're creating a scene". ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"