What to restart after editing php.ini?
After editing the php.ini file. Do I have to restart apache, mysql, or both? If apache only, would a graceful restart make the changes take effect immediately?
One more question, if MySQL and PHP are the same version, is the php.ini file universal? Like could I use a php.ini file from cPanel and replace the one on the DirectAdmin server? Webmin to cPanel? Directadmin to Webmin? |
You would just need to restart Apache using "/etc/init.d/apache restart" or "apachectl restart" depending on your system. MySQL server would not need to be restarted. Also, the php.ini has to no relation to what version of MySQL you are running.
|
Okay, thanks.
1 more question, what is the difference between these commands: /etc/rc.d/init.d/httpd restart /usr/local/apache/bin/apachectl restart Is it the version difference or what? Because I see some of my servers are different. 1 final question, what's a quick way to delete 15000+ files? I used this command rm -f * and it says argument too long. |
apachectl lets you run a couple of extra commands such as check the valididity (spelling?) of your config file, and view full status of the Apache server. The script in /etc/rc.d/init.d/ will be what your system uses whilst switching runlevels booting or shutting down the system to simply start or stop the Apache server. Try typing both command without any arguments from the command line to view what extra parameters you can pass to them.
|
***remove long file lists in unix that start with 'spam-'
find . -name 'spam-*' | xargs rm |
All times are GMT -5. The time now is 03:48 AM. |