Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


PHP_MYSQL Errors

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
echouin12



Joined: 08 Jul 2008
Posts: 48
Location: MSU High Energy Physics

PostPosted: Tue Jul 29, 2008 9:49 am    Post subject: PHP_MYSQL Errors Reply with quote

So I've yum installed Cacti dependencies and installed cacti-0.8.7b.tar.gz but I'm getting a php mysql error and I think I need the libraries but I'm not sure. These are the errors I'm getting in my /etc/httpd/logs/error_log file
[Tue Jul 29 10:42:55 2008] [notice] caught SIGTERM, shutting down
[Tue Jul 29 10:42:55 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jul 29 10:42:55 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 29 10:42:55 2008] [notice] Digest: done
[Tue Jul 29 10:42:55 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Jul 29 10:42:55 2008] [notice] LDAP: SSL support unavailable
PHP Warning: Unknown(): Unable to load dynamic library '/etc/php.d/msql.so' - /etc/php.d/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Jul 29 10:42:55 2008] [notice] Apache/2.0.52 (Scientific Linux) configured -- resuming normal operations

The thing is, the /etc/php.d/mysql.so file is there, but I keep getting errors about it and I don't know how to fix it. The file exists, I can open.
Please help me out, I'm a total newbie so spare no details in offering advice or suggestions.
THANK YOU!!!
Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 501
Location: Canada

PostPosted: Tue Jul 29, 2008 7:29 pm    Post subject: Reply with quote

It's not looking for 'mysql.so', it's looking for 'msql.so'

You're PHP configuration is broken: either comment out the requirement for msql.so (it's not need by Cacti), or install php-msql
Back to top
echouin12



Joined: 08 Jul 2008
Posts: 48
Location: MSU High Energy Physics

PostPosted: Thu Jul 31, 2008 8:34 am    Post subject: Reply with quote

AWESOME!!! So I disabled the extension=msql.so and still can't get my browser up.
But now my httpd/logs/error_log file looks like
[Thu Jul 31 09:29:53 2008] [notice] caught SIGTERM, shutting down
[Thu Jul 31 09:29:54 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 31 09:29:54 2008] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 31 09:29:54 2008] [notice] Digest: done
[Thu Jul 31 09:29:54 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jul 31 09:29:54 2008] [notice] LDAP: SSL support unavailable
[Thu Jul 31 09:29:54 2008] [notice] Apache/2.0.52 (Scientific Linux) configured -- resuming normal operations
[Thu Jul 31 09:30:59 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /cacti2 denied

And I have no idea how to give permission to allow this server to access /cacti2. any help would be greatly appreciated!!!

Thanks!
Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 501
Location: Canada

PostPosted: Thu Jul 31, 2008 8:43 am    Post subject: Reply with quote

Check the permissions on the directory and check your httpd.conf or vhost configuration for a proper Directory setting.
Back to top
echouin12



Joined: 08 Jul 2008
Posts: 48
Location: MSU High Energy Physics

PostPosted: Thu Jul 31, 2008 9:06 am    Post subject: Reply with quote

Well the httpd.conf says the user and group are called apache so I chown -R apache /var/www/html/cacti2 and then checked to make sure and apache has been given ownership of the directory......is that all?
How do I become the apache user so that I can access the directory?
Or should I change the user to cactiuser so that every user is the same?
Sorry I am a newbie so I need specific details.
Thanks
Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 501
Location: Canada

PostPosted: Thu Jul 31, 2008 9:22 am    Post subject: Reply with quote

apache should own everything except for 'rra' and 'log', which should be owned by the user running the crontab.

As long as others have read permission on the directory/files, you will be fine. Read the man pages on 'su' and 'sudo' for basic user switching (type 'man su' or 'man sudo').

If you are having this type of trouble however, I would _seriously_ suggest picking up 'Linux in a Nutshell' from O’Reilly. Picking up commands from forums will lead to bad habits that are almost impossible to break.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group