<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/03/2009 08:42 PM, chloe K wrote:
<blockquote cite="mid:275614.70858.qm@web57404.mail.re1.yahoo.com"
 type="cite">
  <table cellpadding="0" cellspacing="0" border="0">
    <tbody>
      <tr>
        <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;"
 valign="top">
        <div>Hi all</div>
        <div> </div>
        <div>how I have to set the selinux to disable?</div>
        <div> </div>
        <div>to make webserver work</div>
        <div>and</div>
        <div>mysql work too</div>
        <div> </div>
        <div> </div>
        <div> </div>
        <div>if not setting to 0, apache error log</div>
        <div> </div>
        <div>(13)Permission denied: access to /admin denied</div>
        <div> </div>
        <div>and mysql error </div>
        <div> </div>
        <div>090903 19:43:19  InnoDB: Operating system error number 13
in a file operation.<br>
InnoDB: The error means mysqld does not have the access rights to<br>
InnoDB: the directory.<br>
InnoDB: File name ./ibdata1<br>
InnoDB: File operation call: 'open'.<br>
InnoDB: Cannot continue operation.<br>
        </div>
        <div>Thank you</div>
        <div> </div>
        <div> </div>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
  <hr size="1">Make your browsing faster, safer, and easier with the
new Internet Explorer® 8. Optimized for Yahoo! <a
 moz-do-not-send="true"
 href="http://downloads.yahoo.com/ca/internetexplorer/"><b>Get it Now
for Free! </b></a>
</blockquote>
<br>
One way to disable SELinux is to add the option "selinux=0" to your
"kernel /vmlinuz-..." line in the /boot/grub/grub.conf file.  This
would allow you to set up different modes of booting your system.<br>
<br>
Are you really sure that you want to disable SELinux?  If you are
running a web server that is exposed to the Internet, I would think
that you would want the protection that it offers.<br>
<br>
I run a web server and MySQL on my home network and run SELinux at the
same time.  It was a matter of setting SELinux boolean variables that
directly affect Apache and setting the SELinux Context for the files
and directories that Apache can access.<br>
<br>
Try "man httpd_selinux" for details of SELinux setting that apply to
Apache.<br>
<br>
I did not have any problems with MySQL and SELinux so I am not sure
what SELinux setting affect MySQL.<br>
<br>
<div class="moz-signature">-- <br>
<div>  Steven F. LeBrun<br>
<p>
Quote: <em>"The objection to fairy stories is that they tell children
there are dragons. But children have always known there are dragons.
Fairy stories tell children that dragons can be killed."</em><br>
     -- G.K. Chesterton</p>
</div>
</div>
</body>
</html>