The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FreeBSD - Kernel Queries/Issues drbabbers BSD 3 11-04-2008 04:02 PM
Some FreeBSD issues cbkihong UNIX for Dummies Questions & Answers 16 06-15-2003 02:06 AM
snort installation on freebsd issues xyyz UNIX for Advanced & Expert Users 13 02-09-2003 11:11 PM
FreeBSD 4.7 X issues - assistance req'd please Calum UNIX Desktop for Dummies Questions & Answers 1 02-03-2003 08:16 PM
apache issues aenemated UNIX for Dummies Questions & Answers 3 09-16-2001 02:34 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-17-2009
Dark Severance Dark Severance is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 5
Using IP.Board on FreeBSD, having SQL/Apache Issues

Server: FreeBSD 7.2-RELEASE
MYSQL Version: MYSQL 5.1.36
PHP Version: 5.2.10 (apache2handler)
IP.Board Version: v3.0.2
Safe Mode: OFF

For the most part previously IP.Board, forum software, has run fine without any issues. Regular web pages and .php pages seem to load fine without any issues. However they reset the server and everything was installed with default settings, as far as I know.

I'm not really an admin who deals with the back-end of things. I usually only admin the software side of things. However I do have root access and am able to modify and set things up. Currently it looks like it is a server configuration issue with something. Possibly optimization or setups for the SQL side of things. It looks like when requesting pages it queries and things are getting stuck or hanging. I either have to repair some of the tables or restart the server.

Anyone have suggestions or ideas on optizing mySQL, apache, php that I can look in trying to make things more stable?
  #2 (permalink)  
Old 08-17-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,681
See this thread:

MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh
  #3 (permalink)  
Old 08-17-2009
Dark Severance Dark Severance is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 5
Thank you. That helped quite a bit. But now I'm getting the following error:
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"

There isn't a mysql.sock in /tmp. However /tmp does have the following permissions:
drwxrwxrwt 6 root wheel 512 Aug 17 20:07 .

Originally it was just a default setup. There was no my.cnf file. I found a .cnf file in /usr/local/share/mysql/my-medium.cnf and used that to configure options in mysql. I moved it to /var/db/mysql and renamed it my.cnf. Restarted, everything seemed fine. I was able to log into mysql but now I can't seem to login and I'm not sure why. I did try commenting out the socket part in my.cnf but that didn't seem to help.

EDIT:


I found a couple other default .cnf files. There was my-medium.cnf (which I originally used), my-small.cnf and my-large.cnf. I ran a diff to compare to the originals. It looks like the issue is related to these two lines:

query_cache_size = 8M
thread_cache_size = 4

That was causing the problem. When I removed them. Everything seemed to work fine... well at least I could use: mysql -u root -p

What did those commands do that caused it to not work?

Last edited by Dark Severance; 08-17-2009 at 05:36 PM..
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0