LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   webcbq can't show in webpage (https://www.linuxquestions.org/questions/linux-networking-3/webcbq-cant-show-in-webpage-471912/)

shipon_97 08-08-2006 05:38 AM

webcbq can't show in webpage
 
Dear Friends ,

I have configured my "webcbq(webcbq-0.2.tar.gz)" into my Linux Enterprise 4 server in the following way :

Configuration
----------------

a) Edit "config.php" from where you copy WebCBQ files

Here you configure the following:
- Network interfaces on your machine
- Language you would like to see in WebCBQ (english or spanish)
- Directory where you save cbq.init rules files
- Directory where you have cbq.init script

b) Aggregates in apache config file

cp /var/www/html/webcbq/webcbq.conf /etc/httpd/conf/
vi /etc/httpd/conf/httpd.conf
(add the following line at the end:)
Include /etc/httpd/conf/webcbq.conf

c) Add the users that will be granted to access WebCBQ

htpasswd -c /etc/httpd/conf/webcbq.passwd admin
(enter the user password)

htpasswd /etc/httpd/conf/webcbq.passwd AnotherUser
(enter the user password)

d) Change some directories permissions:

chmod 755 /var/www/html/webcbq
chown root:apache /etc/sysconfig/cbq
chmod -R 775 /etc/sysconfig/cbq

*NOTE*: If you have rules files, YOU MUST add "P__" to the name or
description.
Ej.: cbq-1000.eth0 --> cbq-1000.P__eth0

e) THIS IS INSECURE BUT I COULD NOT FIND THE WAY TO RUN cbq.init AS ROOT.

vi /etc/sudoers
(add the following line at the end:)
apache ALL = (ALL) NOPASSWD: /sbin/cbq.init,/sbin/tc,/sbin/ip

f) Restart APACHE service

/usr/sbin/apachectl restart

(or)

service httpd restart

Test
---------------
Test enter to http://localhost/webcbq


Now when i use "http://localhost/webcbq" link into the web page then i can't get "webcbq" based pages into my browser .It shows just "index.php" page with some "sentence" . I don't understand where is the problem .Plz help me how i can view "webcbq" page into my web browser .

Thx..........

unSpawn 08-09-2006 04:13 PM

It shows just "index.php" page with some "sentence"
What is the exact message?
What do your Apache logs say?
What does your PHP log say?

Also have you noticed WebCBQ requires PHP register_globals to be "on"? This is a security risk which means you must restrict access to WebCBQ to only "trusted" IP's or ranges.


All times are GMT -5. The time now is 11:57 PM.