Results 1 to 10 of 14
-
16th Jul 2012, 11:06 AM #1OPMember
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
THANKS,
Igorigordr 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
-
16th Jul 2012, 11:08 AM #2The Wise OneWebsite's:
twilight.ws ddlrank.comYour space is full on your server.
I can always be contacted by sending a tweet @twilightws
-
16th Jul 2012, 11:09 AM #3Respected 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.
-
16th Jul 2012, 11:18 AM #4OPMember
It says Total Space Used 11491.92 MB I have HDD 2x 500 GB SATA.
What could cause the problem than?
-
16th Jul 2012, 11:24 AM #5MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comcheck the root partition
-
16th Jul 2012, 11:24 AM #6MemberWebsite's:
Elite.SO Defendos.com Motionite.comWhat is the size of your MySQL db's?
-
16th Jul 2012, 11:25 AM #7The Wise OneWebsite's:
twilight.ws ddlrank.comRun the command below and see which use is as 100%:
Code:df -h
I can always be contacted by sending a tweet @twilightws
-
16th Jul 2012, 11:27 AM #8Respected 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.
-
16th Jul 2012, 11:34 AM #9OPMembercheck the root partition
What is the size of your MySQL db's?
Run the command below and see which use is as 100%:
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
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
-
16th Jul 2012, 11:52 AM #10Respected DeveloperBots 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.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Number of visitors suddenly took a plunge.
By m1mi.dan0s in forum Webmaster DiscussionReplies: 13Last Post: 1st Oct 2012, 01:03 PM -
Site suddenly declining in SERPs
By jfambrini in forum Whitehat SEOReplies: 6Last Post: 3rd Jul 2012, 06:43 AM -
Google maps suddenly stops working?
By mrHunt in forum General DiscussionReplies: 3Last Post: 22nd Nov 2011, 04:02 AM -
Suddenly CPANEL & WEBSITE
By SmartBoy786 in forum Hosting DiscussionReplies: 4Last Post: 15th May 2009, 03:38 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...