Hi,
Wondering if some of the ZM developers on list could comment on whether it is possible to run the stock ZM 1.24.x, and a fork of same, simultaneously on the same machine s.t., I could access those like this --
http://localhost/zm (stock)
http://localhost/zmfork (fork) or
http://localhost:9090/zm (alternative way for fork)
And what all I might need to change ? For the first option of fork (i.e. URL being ../zmfork), wondering if running the "./configure" script changing all occurances of "zm" to "zmfork" (s.a. for database name, database credentials etc.) would do the trick ? Note that fork may also have different binaries (zmc etc.), and "make install" may overwrite the stock ones. Any way to avoid that ?
The reason for trying to something this dirty is to see if I can do a near seamless version migration, and also because I don't have another machine at the moment.
thanks,
bdm
installing ZM 1.24.x and a fork on same machine ?
Re: installing ZM 1.24.x and a fork on same machine ?
If your reason is just to migrate versions, there are easier ways to do it. I constantly migrate between 1.24.1, .2 and .3. I keep all of their source in separate directories, and when I want to switch versions, I just run a simple script that runs configure and installs the appropriate one. Since running zmupdate preserves database integrity, there's no issue in doing this:bdmcnxn wrote: The reason for trying to something this dirty is to see if I can do a near seamless version migration, and also because I don't have another machine at the moment.
Code: Select all
#!/bin/bash
echo "Enter old version..."
read OLDVER
echo "Enter new version..."
read NEWVER
echo "Using old version $OLDVER, new version $NEWVER"
OLDDIR=$(pwd)/ZoneMinder-$OLDVER
NEWDIR=$(pwd)/ZoneMinder-$NEWVER
echo "Old directory: $OLDDIR, New Directory: $NEWDIR"
echo "Stopping ZM"
sudo /etc/init.d/zoneminder stop
echo "Making $NEWVER"
cd $NEWDIR
sudo make install
echo "Updating DB"
sudo zmupdate.pl --version=$OLDVER
echo "Starting ZoneMinder"
sudo /etc/init.d/zoneminder start
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com
Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!
Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!
Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml