Re: can't start apache 1.3 inside jail

2006-05-24 Thread Cheng-Lung Sung
Have you checked log file?
On Wed, May 24, 2006 at 01:53:35PM -0400, Andy Greenwood wrote:
> I've built and installed apache13 from ports in my jail, but apachectl
> start just gives me
> 
> [EMAIL PROTECTED] ~]# apachectl start
> /usr/local/sbin/apachectl start: httpd could not be started
> 
> and httpd -X exits immediately with no output. I've tried to run truss
> on apachectl start, but I'm not really sure on how to interpret the
> output (attached). Any help would be much appreciated.
> 
> [EMAIL PROTECTED] ~]# uname -a
> FreeBSD prison.example.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May
> 21 08:46:15 EDT 2006
> [EMAIL PROTECTED]:/jail/obj/jail/src/sys/BEHEMOTH  i386


-- 
Cheng-Lung Sung - clsung@


pgp7NSSced9SM.pgp
Description: PGP signature


Re: /usr/local/libexec/apache22/libphp4.so not installed

2006-05-22 Thread Cheng-Lung Sung
Check /usr/ports/UPDATING, mod_php now is not default installed.

20060506:
  AFFECTS: users of PHP
  AUTHOR: [EMAIL PROTECTED]

On Sun, May 21, 2006 at 08:13:29PM -0800, Noah wrote:
> FreeBSD-4.11
> 
> After rebuilding php4-4.4.2_2 with Apache Module and apache-2.2.2 from
> /usr/ports - I no longer am finding that
> /usr/local/libexec/apache22/libphp4.so is getting installed.
> 
> Any clues as to what I am doing wrong?  I cant figure it out at the moment.  
> 
> 
> --- snip ---
> 
> # /usr/local/etc/rc.d/apache22.sh restart
> Performing sanity check on apache22 configuration:
> httpd: Syntax error on line 101 of /usr/local/etc/apache22/httpd.conf: Cannot
> load /usr/local/libexec/apache22/libphp4.so into server: Cannot open
> "/usr/local/libexec/apache22/libphp4.so"
> 
> # grep php4 /usr/local/etc/apache/httpd.conf
> LoadModule php4_modulelibexec/apache22/libphp4.so
> 
> # pkg_info | grep apache
> apache-2.2.2Version 2.2 of Apache web server with prefork MPM.
> 
> # pkg_info | grep php
> php4-4.4.2_2PHP Scripting Language (Apache Module and CLI)
> php4-bz2-4.4.2_2The bz2 shared extension for php
> php4-ctype-4.4.2_2  The ctype shared extension for php
> php4-domxml-4.4.2_2 The domxml shared extension for php
> php4-ftp-4.4.2_2The ftp shared extension for php
> php4-gd-4.4.2_2 The gd shared extension for php
> php4-gettext-4.4.2_2 The gettext shared extension for php
> php4-iconv-4.4.2_2  The iconv shared extension for php
> php4-imap-4.4.2_2   The imap shared extension for php
> php4-ldap-4.4.2_2   The ldap shared extension for php
> php4-mbstring-4.4.2_2 The mbstring shared extension for php
> php4-mcal-4.4.2_2   The mcal shared extension for php
> php4-mcrypt-4.4.2_2 The mcrypt shared extension for php
> php4-mysql-4.4.2_2  The mysql shared extension for php
> php4-openssl-4.4.2_2 The openssl shared extension for php
> php4-pcre-4.4.2_2   The pcre shared extension for php
> php4-session-4.4.2_2 The session shared extension for php
> php4-xml-4.4.2_2The xml shared extension for php
> php4-xmlrpc-4.4.2_1 The xmlrpc shared extension for php
> php4-zlib-4.4.2_2   The zlib shared extension for php
> 
> 
> # ls /usr/local/libexec/apache22
> httpd.exp   mod_cache.somod_log_config.so
> mod_actions.so  mod_cern_meta.somod_logio.so
> mod_alias.somod_cgi.so  mod_mime.so
> mod_asis.so mod_charset_lite.so mod_mime_magic.so
> mod_auth_basic.so   mod_dav.so  mod_negotiation.so
> mod_auth_digest.so  mod_dav_fs.so   mod_rewrite.so
> mod_authn_anon.so   mod_deflate.so  mod_setenvif.so
> mod_authn_dbm.somod_dir.so  mod_speling.so
> mod_authn_default.somod_disk_cache.so   mod_ssl.so
> mod_authn_file.so   mod_env.so  mod_status.so
> mod_authz_dbm.somod_expires.so  mod_unique_id.so
> mod_authz_default.somod_file_cache.so   mod_userdir.so
> mod_authz_groupfile.so  mod_filter.so   mod_usertrack.so
> mod_authz_host.so   mod_headers.so  mod_version.so
> mod_authz_owner.so  mod_imagemap.so mod_vhost_alias.so
> mod_authz_user.so   mod_include.so
> mod_autoindex.somod_info.so
> 
> _______
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
Cheng-Lung Sung - clsung@


pgp40KXhnwrl8.pgp
Description: PGP signature


Re: Software RAID guidance

2006-05-04 Thread Cheng-Lung Sung
Hi,

newfs first?

In my experiment, there is only one mirror/gm0s1 exists (no s1a, s1c...)

On Thu, May 04, 2006 at 09:40:17PM -0400, Robert Fitzpatrick wrote:
> On Fri, 2006-05-05 at 09:20 +0800, Cheng-Lung Sung wrote:
> > > Great, I believe I have this setup right. I'm not sure what the fdisk
> > > issue may be with the message 'fdisk: Geom not found', but all looks to
> > > have setup properly. Now, just to have a clear understanding, what is
> > > the purpose of /dev/mirror/datas1c as it is not used in creating the
> > > mirror it seems?
> > 
> > Have you tried to mount it?
> > 
> 
> files# mount /dev/mirror/datas1c
> mount: /dev/mirror/datas1c: unknown special file or file system

-- 
Cheng-Lung Sung - clsung@


pgpK0zIgjIVTI.pgp
Description: PGP signature


Re: Software RAID guidance

2006-05-04 Thread Cheng-Lung Sung

IMHO, fdisk is unnecessary. I got my two brand 
new HDs ad[46] mirrored w/o fdisk.

On Thu, May 04, 2006 at 09:15:39PM -0400, Robert Fitzpatrick wrote:
> On Thu, 2006-05-04 at 19:59 -0400, Ian Jefferson wrote:
> > I think if you want mirroring only you should consult the geom pages.
> 
> Great, I believe I have this setup right. I'm not sure what the fdisk
> issue may be with the message 'fdisk: Geom not found', but all looks to
> have setup properly. Now, just to have a clear understanding, what is
> the purpose of /dev/mirror/datas1c as it is not used in creating the
> mirror it seems?

    Have you tried to mount it?

-- 
Cheng-Lung Sung - clsung@


pgpn7j51uTNwz.pgp
Description: PGP signature


Re: Software RAID guidance

2006-05-04 Thread Cheng-Lung Sung
You can try gmirror(8)
Ref: 
1. http://people.freebsd.org/~rse/mirror/
2. http://www.onlamp.com/lpt/a/6309
On Thu, May 04, 2006 at 07:24:15PM -0400, Robert Fitzpatrick wrote:
> I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
> controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
> and 2 Seagate 35GB). From what I googled, *nix does not support the
> controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
> onto the two IBM drives. Now, I wanted to mirror the other two for data
> and looking for guidance as to whether it is first of all suited for
> software RAID and if so, CCD or vinum. I am contemplating vinum because
> the handbook mentions CCD is when cost is the important factor and for
> me, is reliability. What would someone suggest? If vinum, one thing I
> don't quite understand is do I create the partitions to be used in the
> device? There doesn't seem to be a man for gvinum and the link to it in
> the handbook section 19.6.1 is broken.
> 
> Thanks in advance.

-- 
Cheng-Lung Sung - clsung@


pgp5qEjA4LT8h.pgp
Description: PGP signature


Re: Moving MySQL database

2004-09-08 Thread Alan, Cheng-Lung Sung
Hi, 
 Why not just use mysqldump --alldatabases ?
 Export all, then import all.
 It can make sure all your DB data consistency.

Regards,

On Wed, 8 Sep 2004 16:40:01 -0400 (EDT), Jerry McAllister
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> > On Sep 3, 2004, at 10:46 AM, Jerry McAllister wrote:
> > >> I have a server that is rapidly filling the var partition with a MySQL
> > >> database.  I'd like to move it to a subdirectory somewhere under /usr.
> > 
> > > If you don't want to move all the stuff in /var/db, then you will
> > > have to be more selective and make the link from within /var/db
> > > rather than just the whole db directory from within /var.
> > >
> > > For example, the MySQL stuff is likely to all be in a directory
> > > called /var/db/mysql.   So:
> > >
> > > Stop MySQL or reboot to single user.
> > > Then
> > >  cd /var/db/mysql
> > >  tar cf /usr/mysql.tar *
> > >  cd /usr
> > >  mkdir var.db.mysql
> > >  cd var.db.mysql
> > >  tar xf ../../mysql.tar
> > >  cd /var/db
> > >  mv mysql mysql.old
> > >  ln -s /usr/var.db.mysql mysql
> > > Now, reboot and let MySQL start and make sure it all is happy and
> > > works just fine.
> > > Then clean up.
> > >  cd /usr
> > >  rm mysql.tar
> > >  cd /var/db
> > >  rm -rf mysql.old
> > >
> > > jerry
> >
> > Thank you to everyone who replied.  I followed the above steps and the
> > SQL server seems to be happy and running on the /usr partition instead
> > of /var for now.  We'll be watching it, and if all seems to be working
> > well, we'll delete the old data off /var.
> >
> > Thanks again! (especially for the specific directions on moving the
> > data over, Jerry...)
> 
> Good.  I am glad it works for you.
> It seemed to be shorter and more clear to just make an example than
> to try and write out an explaination for it.
> 
> jerry
> 
> 
> 
> >
> > -Bart
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 



-- 
COBRA Lab in NTU EE
IAS Lab in SINICA IIS
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"