I successfully installed fink Apache2 in my Ibook with Panther, but I can't have it as default. I disabled web sharing and put these files into /Library/StartupItems/Apache2
#!/bin/sh
## # Apache2 Web Server #
APACHECTL="/sw/sbin/apachectl"
. /etc/rc.common
StartService () { if [ "${WEBSERVER:=-NO-}" = "-YES-" ]; then ConsoleMessage "Please disable Personal Web Sharing and restart." else ConsoleMessage "Starting Apache2 Web Server" $APACHECTL start fi }
StopService () { ConsoleMessage "Stopping Apache2 Web Server" $APACHECTL stop }
RestartService ()
{
if [ "${WEBSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Please disable Personal Web Sharing and restart."
StopService
else
ConsoleMessage "Restarting Apache2 Web Server."
$APACHECTL restart
fi
}
RunService "$1"
and
{ Description = "Apache2 Web Server"; Provides = ("Web Server"); Requires = ("DirectoryServices"); Uses = ("Disks", "NFS"); OrderPreference = "None"; }Are they correct or do I have to modify other network configurations too? Thanks! Francesco
The easy way to set apache2 as the default server is to disable the built in apache1 server, then run
sudo daemonic enable apache2
which creates the startup item for you. However, what this doesn't do is allow Apache2 to run when you click the button in System Preferences. Is this what you want to do?
-- Alexander Hansen Fink Documentarian [Day Job] Levitated Dipole Experiment http://www.psfc.mit.edu/LDX
------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
