Activity Stream
48,167 MEMBERS
6870 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1.     
    #1
    Member

    Default Strange php and mySQL warining suddenly appeard

    Hi, i need some help.
    I have problems with mySQL. In some of my sites, i get warnings at the top of the pages:

    Code: 
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in  Warning: session_start() [function.session-start]: open(/tmp/sess_2768563f6f13c08c044c710c554aaa37, O_RDWR) failed: No space left on device (28) in /home/stranifi/public_html/musicvideo.php on line 17  Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/stranifi/public_html/musicvideo.php:17) in /home/stranifi/public_html/musicvideo.php on line 17  Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/stranifi/public_html/musicvideo.php:17) in /home/stranifi/public_html/musicvideo.php on line 17

    Mentioned problems appeared suddenly. I didn't do anything.
    My server configuration is:

    HDD 2x 500 GB SATARAM
    6 GB DDR2-RAM
    CPU AMD Athlon 64 X2 3400+, Dual-Core
    Template CentOS 6 - minimal - RAID 1

    I have about 15k unique visitors every day.

    My present my.cnf file looks like this:

    Code: 
    [mysqld]
    set-variable = max_connections=500
    query_cache_limit       = 2M
    query_cache_size        = 256M
    table_cache = 400
    thread_cache_size = 286
    log-slow-queries
    safe-show-database
    What i should tweak to get error disappear and get mySQL to work again?

    THANKS,
    Igor
    igordr Reviewed by igordr on . Strange php and mySQL warining suddenly appeard Hi, i need some help. I have problems with mySQL. In some of my sites, i get warnings at the top of the pages: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in Warning: session_start() : open(/tmp/sess_2768563f6f13c08c044c710c554aaa37, O_RDWR) failed: No space left on device (28) in /home/stranifi/public_html/musicvideo.php on line 17 Warning: session_start() : Cannot send session cookie - headers already sent by (output started at Rating: 5

  2.   Sponsored Links

  3.     
    #2
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Your space is full on your server.
    I can always be contacted by sending a tweet @twilightws

  4.     
    #3
    Respected Developer
    from your above error
    "No space left on device (28)"
    I guess your ran out of HDD space

    Edit: Whoo beats me to it..
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  5.     
    #4
    Member
    It says Total Space Used 11491.92 MB I have HDD 2x 500 GB SATA.

    What could cause the problem than?

  6.     
    #5
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    check the root partition

  7.     
    #6
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    What is the size of your MySQL db's?

  8.     
    #7
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Run the command below and see which use is as 100%:
    Code: 
    df -h
    I can always be contacted by sending a tweet @twilightws

  9.     
    #8
    Respected Developer
    you need to increase ur tmp folder size. if you are on Cenots, it uses tmpfs for /tmp. modify ur /etc/fstab to increase tmp size. an example how it should look
    Code: 
    tmpfs /tmp tmpfs size=1g 0 0
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  10.     
    #9
    Member
    check the root partition
    How i do that?

    What is the size of your MySQL db's?
    That should not be the problem .They are not bigger than 500 MB, together.

    Run the command below and see which use is as 100%:
    Results:


    Code: 
    root@bravo612 [~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/md1              586G   22G  535G   4% /
    tmpfs                 2.8G     0  2.8G   0% /dev/shm
    /dev/md0              496M   63M  409M  14% /boot
    /usr/tmpDSK           4.0G  151M  3.6G   4% /tmp
    Any help?


    you need to increase ur tmp folder size. if you are on Cenots, it uses tmpfs for /tmp. modify ur /etc/fstab to increase tmp size. an example how it should look
    I just need to type this in SHH?

    Code: 
    tmpfs /tmp tmpfs size=1g 0 0

  11.     
    #10
    Respected Developer
    Quote Originally Posted by igordr View Post
    I just need to type this in SHH?

    Code: 
    tmpfs /tmp tmpfs size=1g 0 0
    no you need to modify that file but before run this command and post results here

    df -h /tmp

    also have you tried to clear your cache?
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Number of visitors suddenly took a plunge.
    By m1mi.dan0s in forum Webmaster Discussion
    Replies: 13
    Last Post: 1st Oct 2012, 01:03 PM
  2. Site suddenly declining in SERPs
    By jfambrini in forum Whitehat SEO
    Replies: 6
    Last Post: 3rd Jul 2012, 06:43 AM
  3. Google maps suddenly stops working?
    By mrHunt in forum General Discussion
    Replies: 3
    Last Post: 22nd Nov 2011, 04:02 AM
  4. Suddenly CPANEL & WEBSITE
    By SmartBoy786 in forum Hosting Discussion
    Replies: 4
    Last Post: 15th May 2009, 03:38 PM

Tags for this Thread

BE SOCIAL