Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 05:38:13 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: three questions.....  (Read 646 times)
saeed
Spacescooter Operator
*****
Offline Offline

Posts: 38


« on: August 15, 2005, 12:20:05 AM »

Hi....
I have three questions....
1 - how can i set a crontab in my dedicated server two restart httpd server and mysql ?
2 - how can see list of working apache module (installation test) ?
3 - can i set my server to restart at heavy load automatically ?
thank you ....

Logged
abhilash
Intergalactic Cowboy
*****
Offline Offline

Posts: 61



« Reply #1 on: August 15, 2005, 01:50:54 AM »

Hello saeed,

Regarding your questions,

1)  How often you want to restart the httpd and mysql ? If you want to restart them every hours, you need to create a script, like on below,

Code:
#!/bin/sh
/etc/init.d/httpd restart >/dev/null 2>&1
/etc/init.d/mysql restart >/dev/null 2>&1

Save the file and give it execute able permission, by issuing chmod +x  filename

To restart the services at different intervals, I will write a howto.

2) It depends on the server and the control panel you have. The answers below assumes your control panel is Cpanel.  Also I didn't fully understand your second question.  If you are looking for the statically compiled modules, execute the following command  at your server.

Code:
/usr/local/apache/bin/httpd -l

And if you would like to compile a new module having APXS support  the location of apxs is /usr/local/apache/bin/apxs , all dynamically loaded modules can be seen by opening up the  /usr/local/apache/conf/httpd.conf and searching for 'LoadModule' keyword / directive.

3) You can..You either have to write your custom script or use already available ones lile the System Integrity Monitor (SIM) .

Hope this helps,
Logged

Abhilash

JSA Supervisor - System Admin Team
saeed
Spacescooter Operator
*****
Offline Offline

Posts: 38


« Reply #2 on: August 15, 2005, 03:36:23 AM »

Hi and thank you for your reply....
about question two :
I install one apache module manually...How can i found that it work properly?
thank you again
Logged
abhilash
Intergalactic Cowboy
*****
Offline Offline

Posts: 61



« Reply #3 on: August 21, 2005, 02:16:05 AM »

Do you have any control panel installed on your server ? You can either look into http headers or can  see it by telnetting the IP port to 80
Logged

Abhilash

JSA Supervisor - System Admin Team
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM