View Full Version : I need help for Debian and Centos server.
elenh
12-04-2009, 06:23 PM
Hello,
Some questions because i search in google and i cant find the correct results.
How do i with putty commands:
Incrase the connections on Mysql on Debian
Incrase the connections on Mysql on Centos
Incrase the php memory limit (php.ini) on Debian
Incrase the php memory limit (php.ini) on Centos
And where are located this file?
Regards,
Thank you.
snakes1100
12-04-2009, 06:44 PM
Debian = /etc/mysql/my.cnf
Centos = /etc/my.cnf
Run these commands:
updatedb
find / -name my.cnf -print
nano /etc/mysql/my.cnf
vi /etc/mysql/my.cnf
max_connections = 500
find / -name php.ini -print
nano /etc/php.ini
vi /etc/php.ini
memory_limit = 16M
elenh
12-04-2009, 07:48 PM
Thank you.
Run these commands:
updatedb
This is for both os? : find / -name my.cnf -print
this for debian?: nano /etc/mysql/my.cnf
this is for centos?: vi /etc/mysql/my.cnf
Where and how i put it?: max_connections = 500
find / -name php.ini -print
nano /etc/php.ini
vi /etc/php.ini
where i put it?: memory_limit = 16M
(How excactly do i that? after the command vi /etc/mysql/my.cnf i get some lines and at the end they say INSERT only and i dont know how i continue..)
snakes1100
12-05-2009, 12:21 PM
Where and how i put it?: max_connections = 500
You can place it anywhere after this:
[mysqld]
max_connections = 500
where i put it?: memory_limit = 16M
That is already in php.ini, just change the value, ie 32M or 64M or 128M etc
(How excactly do i that? after the command vi /etc/mysql/my.cnf i get some lines and at the end they say INSERT only and i dont know how i continue..)
Use nano instead of vi if you do not know vi commands, just use your keyboard arrow keys to navigate within the file when editing w/ nano
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.