Ubuntu 7.10 + Snort, Apache, Mysql....

Discussion in 'HOWTO-Related Questions' started by g0tb00st, Jan 23, 2008.

  1. Joe Mama

    Joe Mama New Member

    well, I have 2 php.ini's, /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini, both seem to be the same for include_path. Lemme guess, I need to uncomment something??


    [email protected];~# grep include_path /etc/php5/apache2/php.ini

    ; (directory must also be in include_path or full path must
    ;include_path = ".:/usr/share/php"
    ;include_path = ".;c:\php\includes"

    [email protected];~#
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, try
    Code:
    include_path = ".:/usr/share/php"
    and restart Apache.
     
  3. Joe Mama

    Joe Mama New Member

    same thing. I go to:
    http://localhost/web/base-php4/

    and get:

    Warning: include_once(Mail.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web/base-php4/includes/base_action.inc.php on line 29

    Warning: include_once() [function.include]: Failed opening 'Mail.php' for inclusion (include_path='.:/usr/share/php') in /var/www/web/base-php4/includes/base_action.inc.php on line 29

    Warning: include_once(Mail/mime.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web/base-php4/includes/base_action.inc.php on line 30

    Warning: include_once() [function.include]: Failed opening 'Mail/mime.php' for inclusion (include_path='.:/usr/share/php') in /var/www/web/base-php4/includes/base_action.inc.php on line 30

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/web/base-php4/includes/base_action.inc.php:29) in /var/www/web/base-php4/base_common.php on line 1077
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    updatedb
    locate Mail.php
    locate mime.php
    ?
     
  5. Joe Mama

    Joe Mama New Member

    This is where I reveal the egg on my face.
    Those files are not found, which makes me think I left something major out.

    Fri Aug 8 10:03:38 CDT 2008
    [email protected]localhost:~# updatedb
    [email protected]localhost:~# locate Mail.php
    [email protected]localhost:~# locate mime.php
    [email protected]localhost:~# date
    Fri Aug 8 10:03:48 CDT 2008
    localhost:~#

    The only place i divirged from the steps at http://www.howtoforge.com/intrusion-detection-with-snort-mysql-apache2-on-ubuntu-7.10, (I think) is that my version of Base is 1.4.1, which give me a /var/www/web/base-php4 rather than a /var/www/web/base-1.3.8 directory
     
    Last edited: Aug 8, 2008
  6. shakey_1

    shakey_1 New Member

    Try issuing these commands and see if it helps.

    pear install Mail
    pear install Mail_Mime
     
  7. Joe Mama

    Joe Mama New Member

    That did it. Thank you. Did I miss something in the instructions??
     
  8. shakey_1

    shakey_1 New Member

    Glad it helped. Honestly I am not sure if something was missed in the instructions or not as I haven't read them. I was actually helping a friend build out a Snort server this weekend and came across this post while searching for some other info. I had seen this before, so I knew what the problem was.
     

Share This Page