Starting Apache2 and MySQL Automagically? rc.conf woes. . .



I've been running FreeBSD machines for about 5 years now, NetBSD much
less intensively for about the same time. For the life of me, I can't
get Apache or MySQL to start up from scripts. What am I doing wrong?

First, I tried putting "apache=YES" and "apache_start="start" " into
rc.conf. When that didn't work, I copied the apache.sh script from
/usr/pkgsrc/www/apache2 into /etc/rc.d and tried again. When that
didn't work, I uncommented the lines in rc.local concerning apache.
When that didn't work, I copied the apache.sh script to
/usr/pkg/etc/rc.d/ and tried again. Now that that doesn't work, I'm
turning to the good people of the newsgroup.

Was Gibt's?

Seems like in FreeBSD, you put the script in /usr/local/etc/rc.d, add a
line to rc.conf like apache_enable="YES" and away you go. Not so here.

--
J'm Sm'th

To Reply Direct, Remove Clothes
....-.-
.



Relevant Pages

  • Re: Starting Apache2 and MySQL Automagically? rc.conf woes. . .
    ... > NetBSD is the same, although the variable name might be ... Check the script that you copied to /etc/rc.d to see what ... so if apache is not starting up I'd say something else is ... initialization file and, if it exists, run it as `apache start'. ...
    (comp.unix.bsd.netbsd.misc)
  • Re: OVER 10,000 People Join Every Week! FREE SIGN-UP! CLICK HERE!
    ... just block all those that constantly reply to spammers too. ... I wrote a very simple AI script. ... stimulation in life. ... Their lives are already over, they just don't realize it yet. ...
    (rec.photo.digital)
  • Update: tomcat startup
    ... we run Apache on this system, it is not for the benefit of tomcat. ... The relevant extract of the init script now looks like this: ... I get the expected tomcat startup lines in /tmp/tomcat_start.log. ...
    (Tru64-UNIX-Managers)
  • Re: HELP: send binary replies back and forth ???
    ... > My php application needs to do the following: ... > My PHP script loops through all records and sends each of them ONE BY ONE. ... > other than to be able to communicate with apache. ... All communication is binary because the connection used is pricy and ...
    (comp.lang.php)
  • Re: Apache Security Issue: File Access
    ... > I just recognized that with Apache configured for VirtualHosts, ... > - no one can ready files using a file system call in CGI or ASP ... Does the target program name have a / or .. ... Does the user who owns the target script exist on the system? ...
    (comp.security.unix)