simonwh Posted May 16, 2005 Share Posted May 16, 2005 Hi family =D I'm trying to run a shell command as cron. This is the command: >LoadModule expires_module modules/mod_expires.so I then get a mail from the cron project saying this: /bin/sh: line 1: LoadModule: command not found What's wrong? Quote Link to comment Share on other sites More sharing options...
TweezerMan Posted May 16, 2005 Share Posted May 16, 2005 The command that you're trying to run is not a shell command - it is a line that belongs in an Apache web server's configuration file (httpd.conf). Quote Link to comment Share on other sites More sharing options...
simonwh Posted May 16, 2005 Author Share Posted May 16, 2005 The command that you're trying to run is not a shell command - it is a line that belongs in an Apache web server's configuration file (httpd.conf). <{POST_SNAPBACK}> Thanks, I just figured that out too. How will i be able to run it? Quote Link to comment Share on other sites More sharing options...
TweezerMan Posted May 17, 2005 Share Posted May 17, 2005 It is not something that can be run. Normally, what you would do is uncomment the line in httpd.conf (it appears exactly as you have it in the default Apache httpd.conf, commented out), or add it if it is not there, then restart Apache. You do not have the ability to load server modules or edit the server's httpd.conf file on TCH servers. But TCH servers appear to be configured to load that module already (I checked the server my account is hosted on, and mod_expires was loaded), so I don't know why you feel you need to do this. It might help if you could explain what you're trying to do that led you to believe that you need to 'run' this 'command'. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.