mikelynn2 / blacklistmonitor

Web based application for monitoring Domains and IPs on RBLs
MIT License
85 stars 42 forks source link

Can I install on Centos with cpanel? #16

Closed beserious closed 9 years ago

beserious commented 9 years ago

Hi

I am trying to install on centos with capnel... But dont know its not working. When I am trying to login, it shows blank page... could you please help on this...

mikelynn2 commented 9 years ago

whats in /var/log/httpd/error_log

beserious commented 9 years ago

I get following in log

[Mon Jun 29 00:23:04 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Jun 29 00:23:04 2015] [notice] Digest: generating secret for digest authentication ... [Mon Jun 29 00:23:04 2015] [notice] Digest: done [Mon Jun 29 00:23:04 2015] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations [Mon Jun 29 01:58:00 2015] [notice] caught SIGTERM, shutting down

beserious commented 9 years ago

What I did is, Uploaded the script to public_html , Created the database and made changes in blacklistmonitor.cfg... do I need to do anything else?

mikelynn2 commented 9 years ago

i dont see any errors in that log. But the config script (https://github.com/mikelynn2/blacklistmonitor/blob/master/setup/blacklistmonitor.cfg) must be installed here: /etc/blacklistmonitor.cfg

the service script (https://github.com/mikelynn2/blacklistmonitor/blob/master/setup/blacklistmonitor.conf) assumes its installed here:

/var/www/html/blacklistmonitor/

rajcz commented 9 years ago

Hi! I have problem too with Centos 7 (clear install). First is that if i add ScriptAlias directive to config, so .js and .css and .png are forbiden with errot 500 and in error log is perm. denied. Second problem is that I dont know how set service script. @beserious can you send me your file servie version for centos?

beserious commented 9 years ago

I dont see any /etc folder in my public_html folder.... also dont have this path /var/www/html/blacklistmonitor/

please advise..

beserious commented 9 years ago

ok I found that path.... but showing me this error

root@host [/var/www/html]# mysql -p < /var/www/html/blacklistmonitor/setup/blacklistmonitor.sql Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

and

root@host [/var/www/html]# cp /var/www/html/blacklistmonitor/setup/blacklistmonitor-apache.conf /etc/apache2/sites-enabled/ cp: cannot create regular file `/etc/apache2/sites-enabled/': No such file or directory

I am logged in to the root

mikelynn2 commented 9 years ago

run it without the -p - like this:

mysql < /var/www/html/blacklistmonitor/setup/blacklistmonitor.sql

centos doesnt set a password by default on mysql.

you may also need to run this to setup a user/pass for your mysql. So you'd run "mysql" then run this command below with the user and pass you want. then restart mysql.

GRANT ALL PRIVILEGES ON blacklistmonitor.* To 'newusername'@'localhost' IDENTIFIED BY 'password';

On Thu, Jul 2, 2015 at 3:20 AM, beserious notifications@github.com wrote:

ok I found that path.... but showing me this error

root@host [/var/www/html]# mysql -p < /var/www/html/blacklistmonitor/setup/blacklistmonitor.sql Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I am logged in to the root

— Reply to this email directly or view it on GitHub https://github.com/mikelynn2/blacklistmonitor/issues/16#issuecomment-117954630 .

rajcz commented 9 years ago

@beserious mysql must be configured first - run mysql_secure_installation first