Ad Widget

Collapse

Frontend issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • king_bongo
    Junior Member
    • Jul 2006
    • 5

    #1

    Frontend issue

    Hi,
    I have finally got the Zabbix server starting up and I am now trying to get the front end running. I have copied the PHP files to a directory wher e my Apache2 server can reach them /var/www/zabbix/
    I try to browse to the site and get the following error:

    Fatal error: Call to undefined function: mysql_pconnect() in var/www/zabbix/include/db.inc.php on line 38


    line 38 is:

    $DB=mysql_pconnect($DB_SERVER,$DB_USER,$DB_PASSWOR D);

    I searched the forum and found a post that suggested I check the PHP.ini file.
    I have just checked the PHP.ini file and I dont see anything wrong. I am a complete newb to Linux so I may have missed something.

    <?php

    // DATABASE CONFIGURATION

    // $DB_TYPE ="ORACLE";
    // $DB_TYPE ="POSTGRESQL";
    $DB_TYPE ="MYSQL";
    $DB_SERVER ="localhost";
    $DB_DATABASE ="zabbix";
    $DB_USER ="zabbix";
    $DB_PASSWORD ="zabbix";
    // END OF DATABASE CONFIGURATION

    global $USER_DETAILS;

    if($DB_TYPE == "MYSQL")
    {
    $DB=mysql_connect($DB_SERVER,$DB_USER,$DB_PASSWORD );
    if(!mysql_select_db($DB_DATABASE))
    {
    echo "Error connecting to database [".mysql_error()."]";
    exit;
  • king_bongo
    Junior Member
    • Jul 2006
    • 5

    #2
    OK got it working - with the help of howtoforge.com



    vi /etc/apache/httpd.conf

    Make this work:

    <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept></Directory>

    /etc/init.d/apache restart


    And it started the Frontend, I can see it reporting the Zabbix server as Down so Im off to investigate this issue now......groan...... I just wanna get to play with this thing now

    Comment

    Working...