Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.