LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
LinkBack Search this Thread
Old 10-28-2005, 08:15 AM   #1
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Rep: Reputation: 15
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?
 
Old 10-28-2005, 08:59 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.
 
Old 10-28-2005, 09:02 AM   #3
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
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.

Last edited by newlinuxnewbie; 10-28-2005 at 09:06 AM.
 
Old 10-28-2005, 11:35 AM   #4
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.
 
Old 10-08-2013, 03:15 PM   #5
sameveritt
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
***remove long file lists in unix that start with 'spam-'
find . -name 'spam-*' | xargs rm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
editing a php.ini file ilustrate Linux - General 4 07-13-2005 12:16 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
editing boot.ini to load fedora Mafia Fedora 6 12-12-2004 05:23 PM
SIGIOT IOT trap after editing ini files iCoach Linux - Games 0 09-07-2004 05:38 PM
editing PHP.INI file question hct224 Linux - Newbie 1 10-31-2003 10:05 AM


All times are GMT -5. The time now is 03:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration