The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I ran /scripts/securetmp and now oscommerce won't work

Discussion in 'General Discussion' started by AbeFroman, Sep 8, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    I ran /scripts/securetmp and now oscommerce won't work

    It gives these errors:
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/westcoa/public_html/shop/includes/configure.php:44) in /home/westcoa/public_html/shop/includes/functions/sessions.php on line 67

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/westcoa/public_html/shop/includes/configure.php:44) in /home/westcoa/public_html/shop/includes/functions/sessions.php on line 67

    The error log contains this message many times:
    error_log:[25-Aug-2004 10:21:29] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/westcoa/public_html/shop/includes/functions/database.php on line 19
    error_log:[25-Aug-2004 10:21:44] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/westcoa/public_html/shop/includes/functions/database.php on line 19
    error_log:[25-Aug-2004 10:21:47] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/westcoa/public_html/shop/includes/functions/database.php on line 19
    error_log:[25-Aug-2004 10:21:52] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/westcoa/public_html/shop/includes/functions/database.php on line 19
    error_log:[25-Aug-2004 10:21:52] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/westcoa/public_html/shop/includes/functions/database.php on line 19

    Got any tips?
     
  2. bking

    bking Well-Known Member

    Joined:
    Mar 1, 2004
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney
    Tried restarting MySQL so that it recreates the socket?
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    ...and if that doesn't work, do the following:

    ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
    /etc/init.d/mysql restart
     
  4. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    Hello

    what is /scripts/securetmp and how to Enable/Disable it ?

    Thank you
     
  5. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
Loading...

Share This Page