I'm installing NagiosQL, and it's not displaying the http://mybox.com/nagiosql/index.php page, so I suspect that PHP isn't working correctly. " -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070702/0427e5a4/attachment.html>
On 7/2/07, Rogelio Bastardo <scubacuda at gmail.com> wrote:> I'm installing NagiosQL, and it's not displaying the > http://mybox.com/nagiosql/index.php page, so I suspect that > PHP isn't working correctly.Okay. Let's start small then. 1. Do you have php installed? 2. Do you have php-mysql and the other likely php packages which may be required, installed. (rpm -qa php\*) 3. Have you looked in your logs to see WHY it's not working? (what error messages are being generated) 4. Is selinux affecting your page loads? Do you have selinux enabled/disabled/permissive? -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
> > the files/directories should be readable by the user that your apache > process is running as, but not owned or writable by it.So, does that mean (something like) the following? chmod 600 /var/www/html/nagiosQL (where the index.php file is located) also, have you added "index.php" to the appropriate DirectoryIndex> directive line in your httpd.conf? [when you install php via an rpm > that may get done by default, but you'll want to check.]Actually, I do have that setup httpd.conf -> DirectoryIndex index.html index.html.var index.php And afterwards, I ran "/etc/init.d/httpd reload" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070702/c4aedc47/attachment.html>
On 7/2/07, Rogelio Bastardo <scubacuda at gmail.com> wrote:> > > the files/directories should be readable by the user that your apache > > process is running as, but not owned or writable by it.Okay, that's reasonable.> So, does that mean (something like) the following? > chmod 600 /var/www/html/nagiosQL (where the index.php file is located)No, basically it means it should be owned by root, with permissions like 644. so 'chown -R root:root /var/www/html/nagiosQL' then 'chmod -R 644 /var/www/html/nagiosQL'> > also, have you added "index.php" to the appropriate DirectoryIndex > > directive line in your httpd.conf? [when you install php via an rpm > > that may get done by default, but you'll want to check.] > > Actually, I do have that setupYep. that gets set by default.> > > httpd.conf -> DirectoryIndex index.html index.html.var index.phpNo, you don't need to do this, as php gets included earlier in the config, and is set up by the file /etc/httpd/conf.d/php.conf -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell