<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: restart apache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912032#M406322</link>
    <description>Thread closed.</description>
    <pubDate>Thu, 21 Jul 2005 14:05:24 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2005-07-21T14:05:24Z</dc:date>
    <item>
      <title>restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912023#M406313</link>
      <description>I have apache installed on HP-UX 11.11. I get frequent request from the web user to restart the apache as root.&lt;BR /&gt;&lt;BR /&gt;Can I grant access to a normal user to only start apache as root? What are the options available?&lt;BR /&gt;&lt;BR /&gt;thanks,</description>
      <pubDate>Tue, 12 Jul 2005 08:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912023#M406313</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2005-07-12T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912024#M406314</link>
      <description>You can get SUDO and include the user for starting apache in the sudoers file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jul 2005 08:05:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912024#M406314</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-12T08:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912025#M406315</link>
      <description>create a cron job under root's crontab which checks for existence of a request file in this users's home directory and if it exists it restarts apache httpd's and deletes the file. &lt;BR /&gt;&lt;BR /&gt;when the user needs restart he simply creates this file, naming convention of which needs to be determined by you and the user.&lt;BR /&gt;&lt;BR /&gt;frequency of the cronjob running also needs to be determined by you and the user.</description>
      <pubDate>Tue, 12 Jul 2005 08:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912025#M406315</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-12T08:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912026#M406316</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;Can I get the step by step procedure required for the sudo configuration for a user to start apache?&lt;BR /&gt;&lt;BR /&gt;thanks,</description>
      <pubDate>Tue, 12 Jul 2005 08:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912026#M406316</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2005-07-12T08:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912027#M406317</link>
      <description>if you do not have sudo package, download it from:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p7/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p7/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;uncompress install it using gunzip and swinstall.&lt;BR /&gt;&lt;BR /&gt;after installation is complete, edit /etc/sudoers file and add a line like this&lt;BR /&gt;&lt;BR /&gt;username servername = NOPASSWD: /sbin/init.d/apache apache stop&lt;BR /&gt;username servername = NOPASSWD: /sbin/init.d/apache apache start&lt;BR /&gt;&lt;BR /&gt;-or- write a script to do your custom stop and start of apache web server and give the user the capability of running this script only in the sudoers file like this &lt;BR /&gt;&lt;BR /&gt;username servername = NOPASSWD: /my_path/my_script.sh&lt;BR /&gt;&lt;BR /&gt;notes:&lt;BR /&gt;1.username is the userid of the user who will be capable of doing this action&lt;BR /&gt;2.servername is the hostname of this server&lt;BR /&gt;&lt;BR /&gt;hope this helps.</description>
      <pubDate>Tue, 12 Jul 2005 09:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912027#M406317</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-12T09:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912028#M406318</link>
      <description>Been in meetings. Mel has it well listed.</description>
      <pubDate>Tue, 12 Jul 2005 10:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912028#M406318</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-12T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912029#M406319</link>
      <description>Mel,&lt;BR /&gt;&lt;BR /&gt;I tried both the options given by you but it is asking for a password.&lt;BR /&gt;*****************************************&lt;BR /&gt;We trust you have received the usual lecture from the local System&lt;BR /&gt;Administrator. It usually boils down to these two things:&lt;BR /&gt;&lt;BR /&gt;        #1) Respect the privacy of others.&lt;BR /&gt;        #2) Think before you type.&lt;BR /&gt;&lt;BR /&gt;Password:&lt;BR /&gt;********************************************&lt;BR /&gt;I tried giving root password but it take it as a wrong password.&lt;BR /&gt;&lt;BR /&gt;Any idea.</description>
      <pubDate>Wed, 13 Jul 2005 00:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912029#M406319</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2005-07-13T00:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912030#M406320</link>
      <description>Raje,&lt;BR /&gt;&lt;BR /&gt;Are you issuing the command as root or as yourself?  The intent of sudo is to execute root commands as a non-root user.  &lt;BR /&gt;Assuming that you are logged in as your username, use your password when prompted.&lt;BR /&gt;&lt;BR /&gt;Stuart</description>
      <pubDate>Wed, 13 Jul 2005 05:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912030#M406320</guid>
      <dc:creator>Stuart Powell</dc:creator>
      <dc:date>2005-07-13T05:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912031#M406321</link>
      <description>Mel,&lt;BR /&gt;&lt;BR /&gt;Yes. It works.&lt;BR /&gt;&lt;BR /&gt;username servername = NOPASSWD: /sbin/init.d/apache apache start&lt;BR /&gt;&lt;BR /&gt;Earlier I missed a space between NOPASSWD: /usr/init.d/apache.&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 14:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912031#M406321</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2005-07-21T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: restart apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912032#M406322</link>
      <description>Thread closed.</description>
      <pubDate>Thu, 21 Jul 2005 14:05:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restart-apache/m-p/4912032#M406322</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2005-07-21T14:05:24Z</dc:date>
    </item>
  </channel>
</rss>

