apache + php + mysql startup order

Dmitry Pryanishnikov dmitry at atlantis.dp.ua
Thu Nov 30 01:20:20 PST 2006


Hello!

On Thu, 30 Nov 2006, Andrew Pantyukhin wrote:
> On 11/30/06, Dmitry Pryanishnikov <dmitry at atlantis.dp.ua> wrote:
>> I'm trying to write an automated rc.d-script that should
>> check MySQL database before it's used by the
>> Apache+PHP hosting.
>
> If I were you, I'd make my php scripts handle temporary
> db outages. Don't forget that most hosting providers have
> web and sql servers on separate machines.

   You seem to miss my point - I'm sysadmin, _not_ webmaster, so those
scripts are not mine. Let every person handle he's own set of tasks ;)
I just want to ensure that apache+php (or +CGI or whatever) will not
access broken DB before it's repaired. There is a non-zero probability
for DB to be damaged due to power supply outage, but 'mysqlcheck -r'
always fixes those damages for me - so why don't automate this procedure?


Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE


More information about the freebsd-ports mailing list