0

Hey there guys, I have a strange problem, I have many linux servers (ubuntu) I have a script installed on them
all servers works fine but one server dont keep login information, everytime I logged in its says hello to server then back to previous page wothout logging in, I've checked many artcles n internet about sessions save path and it was /tmp like ohter servers
I've checked the permession for folder /var/lib/php5 and its writeable
what can I do to solve this problem, no one on this server can login.

3
Contributors
5
Replies
30
Views
4 Years
Discussion Span
Last Post by OsaMasw
0

603e93991414dc7dbd8ca2ab1de4f6cc

I found my Space is nearly full is that affect ? and how to reduce it ?

Edited by OsaMasw

0

I found a file in /var/log/upstart called mysql.log.1 with size 40GB is it safe to delete it ?

1

Also mysql.log.1 is not the current log file, it's an old copy, so it can be moved to another location for further analysis or deleted, the main in use is mysql.log. Since it's a general log you can stop it, by commenting the line related to the general_log_file.
Just enable: error.log, mysql-slow.log and expires_logs_days, so you can limit the amount of data. To edit these options run:

sudo editor_of_choice /etc/mysql/my.cnf

Example settings:

#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
log_error = /var/log/mysql/error.log
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
log-queries-not-using-indexes
expire_logs_days = 10

Reload mysql after you've done.

Edited by cereal

Votes + Comments
AWESOME
0

every thing solved by deleting this file, and thanks for the tips about expire_logs_days

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.