How to restart Apache

I am having trouble starting my web server and filemaker pro server. I think it would help if I could restart Apache. Does anyone know what the commands are for doing this on Leopard Server in terminal?

to restart apache safely with Terminal, under root
serveradmin stop web; serveradmin start web
If you’ve made some modifications on some apache config files by hand (which means not using Server Admin/Web anymore usually), it’s a good idea to test the configuration before restarting Apache.
Then you can use the apachectl command:
apachectl -t
to restart only teams server :
serveradmin stop teams; serveradmin start teams
Once the services says they have restarted give them few more seconds before trying to access them.
That’s my experience anyways. Hope it helps.

Similar Messages

  • How do I gracefully restart Apache?

    Is there any way to gracefully restart Apache? On a standard setup I would normally run this command:
    <pre>sudo apachectl graceful</pre>
    But the Apache 2 that comes with OS X Server 10.5 does not gracefully restart with this command. Instead it will interrupt all open connections stopping all downloads. I'm assuming this is because Apache is handled by launchd which doesn't support graceful restarts. Is there any way to get around this problem?

    I decided maybe there's a man page that will point in the right direction:
    http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/launchct l.1.html
    This is a complete stab in the dark. Launchd can receive commands from launchctl. but the launchctl command syntax is not the same as say apachectl. Try this command:
    launchctl submit -p apachectl graceful
    Let me know if that really performs a graceful restart. I'm a big fan of the graceful restart myself, and would hate to see that option not available from the commandline.

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • How to Bounce Apache or OC4J for OAF Development

    hi all,
    yesterday i've been trying to get answers as to why the changes i make in an OAF page does not reflect immediately. after doing research i found out that i need to bounce the apache or oc4j everytime i make changes to ui xml or class files.
    i then realized that it would be really annoying to bug our dba to bounce the apache or oc4j everytime i make changes. so i came up with this idea where i create a concurrent program and hope that maybe this can bounce the apache or oc4j for me.
    i create a shell script with the code below
    $INST_TOP/admin/scripts/adapcctl.sh restart
    exitunfortunately the script i have doesn't work and returns an error.
    01/09/10-11:49:19 :: adapcctl.sh: exiting with status 204
    ================================================================================
    01/09/10-11:57:59 :: adapcctl.sh version 120.7.12010000.2
    01/09/10-11:57:59 :: adapcctl.sh: stopping OPMN managed OHS instancei then search for codes on how to restart the apache and found this thread
    Bouncing Apache for OAF deployment
    Kali V wrote:
    Sharwan,
    Bouncing the server is different in 11i and R12, Check the following,
    To clear HTML cache and bounce Apache at R12 level :
    1.
    cd $INST_TOP/admin/scripts
    dierctory is :
    /global/oracle/your_sid/inst/apps/sid_server/admin/scripts
    here are the scripts :
    adalnctl.sh adexecsql.pl adoafmctl.sh adstrtal.sh jtffmctl.sh
    adapcctl.sh adformsctl.sh adopmnctl.sh gsmstart.sh mwactl.sh
    adautocfg.sh adformsrvctl.sh adpreclone.pl ieo mwactlwrpr.sh
    adcmctl.sh adoacorectl.sh adstpall.sh java.sh
    2.
    adapcctl.sh stop
    3.
    To clear HTML cache :
    cd $COMMON_TOP/_pages
    Direcetory is :
    /global/oracle/your_sid/apps/apps_st/comn/_pages
    Here are the java classes to clear.
    Do rm * in _pages directory after having checked there are only compiled classes in this directory
    4.
    cd $INST_TOP/admin/scripts
    dierctory is :
    /global/oracle/your_sid/inst/apps/sid_server/admin/scripts
    adapcctl.sh start
    Thanks.
    With Regards,
    Kali.
    OSSI.just wanted to know if putting this in my shell script, it will continue the process even though i get disconnected to the EBS Form? one thing i'm assuming is that if the apache is stop, i will have no access to its web / form interface.. so basically after i run the concurrent program i most likely will get disconnected.
    can anyone help me with this.
    thanks
    allen

    user12195296 wrote:
    Hi A.Sandiego ,
    You can use these steps to bounce apache in R12
    1) login to your instance with putti or any other software
    2) cd $ADMIN_SCRIPTS_HOME
    3) adapcctl.sh stop
    4) adoacorectl.sh stop
    5) adapcctl.sh start
    6) adoacorectl.sh start
    Every time you bounce apache you need to follow these steps in same sequence.
    Try This i am sure this will work
    Regards.thank you for your suggestion.
    currently my user in the unix box does not have the permission to execute these scripts which is why i went ahead and thought of creating a shell script that executes those lines of codes for me. then i will create a concurrent program in Oracle EBS which executes this script. now my concern is, if i run the program that executes the shell script, most likely i will get disconnected from Oracle EBS. my question is, will the program run in the background even though i have been disconnected from Oracle EBS?
    thanks
    allen

  • How to restart base station from airport utility? I used to be able to do it remotely  I currently use a Mac Pro 10.8.4 and have a time machine for wireless 6.3 (630.34). Sometimes I cannot connect to the internet and use network preferences to diagnose t

    How to restart base station from airport utility? I used to be able to do it remotely
    I currently use a Mac Pro 10.8.4 and have a time machine for wireless 6.3 (630.34). Sometimes I cannot connect to the internet and use network preferences to diagnose the issue. This results in being told to restart the wireless. The airport utility includes the drop down option of restarting but is not clickable so I can't choose it.
    With my prior macbook and same time capsule, etc  if i had problems connecting to the internet I would run network diagnostics to help out. This included clicking on the airport utility ---> base station --> restart. This worked most of the time.
    Bottom line, is there something I am missing in not being able to restart the wi-fi remotely? ]
    Thanks in advance

    You are likely forgetting a step.
    Open AirPort Utility
    Click on the Time Capsule icon
    Click Edit in the small window that appears
    Now click the Base Station menu.....top of the screen....not the Base Station "tab" in the center of the screen
    Click Restart

  • How to configure apache for ssl in windows platform

    hi all,
    can anyone help me expalin how to configure apache for ssl in windows platform.

    George,
    I would take the following 'first steps'
    1)Install Apache20 on your Windows machine following the Apache online documentation
    http://httpd.apache.org/docs-2.0/misc/tutorials.html
    2)Make sure you can 'serve up' static HTML content from your Apache Server
    3)Install Weblogic Server per our online documentation
    http://edocs.bea.com/wls/docs61/install/index.html
    4)Also, make sure you can 'serve up' both static and dynamic (e.g., JSP) content
    directly from WLS server
    5)Once you have both of the above 'sanity' checks attempt to configure a simple
    proxy by ppath or mime type via our online documentation
    http://edocs.bea.com/wls/docs61/adminguide/apache.html#103803
    Chuck Nelson
    DRE
    BEA Technical Support

  • How to use Apache MyFaces components in JSF pages + Eclipse?

    I've managed to write my JSF web app. in Eclipse jee, and test it on JBoss 4.2 GA, within Eclipse, but how to import Apache MyFaces components into Eclipse JSF plug-in?
    If I can't import it nicely, how to use those components directly in JSF pages?

    The Tomahawk component library provides MyFaces components. Install it as you would any other component library.
    http://myfaces.apache.org/tomahawk/

  • Outbound process red flag - how to restart?!

    Hi, well i tried in a previous post to get help but i guess it was a little misunderstanding.
    I have a well processed message but it's not being send to target system, so i get a red flag on column outbound status in SXI_MONI. It's like a system is not available but in this case it is.
    It is File to IDoc Scenario and be sure that i already checked SM59, SX1, SX2 and so on.
    Funny thing is that sometimes message is send properly - when CC read one file - but when it has to read >1 outbound status will be set to error for each message!
    has somebody any clue on this issue?!
    br!!

    Hi,
    it's a FILE2IDoc Scenario i am getting no error at all except of the red flag for outbound process. In detal-view of the message nothing is reported an even the CC-Monitoring is showing nothing because IDoc-Adapter is not part of the Adapter-Engine.
    That's the problem! Because a target systems is connected via VPN to the gateway of the XI. And when the VPN is not active, the message is not being transmitted. But in XI i connat restart it when VPN-Tunnel is active again.
    Any clue on how to restart?!
    br

  • How to restart an workflow if ended in error at SEND Mail step.

    Hello All
          I am facing some problem in restarting the error workflow.
    Issue is:
       Workflow ended in error at the mail notification step, since the mail id is not filled into the container so there is no address (mail id) and ended in error.
       How to restart these kinds of workflow in the system?, we have tried to change the container value by assigning mail id and restarted the workflow but still went into error.
    Is it possible to restart an workflow which ended in error other than rule resolution.
    Regards
    Anand KS

    I think you went in the write approach. I think you have to change the container properly by populating the ADDRESSTRING container element. Also check whether type of email recipient in your container is et to Email.
    Thanks
    Arghadip

  • Caanot restart apache after installing mod_jk connector

    Hallo,
    I have installed the mod_jk connector to use seperate apache and tomcat instances for my web ap. I followed the instructions here: http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=2
    After making changes to httpd.conf, I am unable to restart apache - the sevent viewer gives the following message:
    "The Apache2 service terminated with service-specific error 1. "
    I think it has something to do with the addmodule lines i've added. Here is what I added to httpd.conf:
    AddModule mod_jk.c
    # JkWorkersFile C:/tomcat/Tomcat 5.5/conf/workers.properties
    # JkLogFile C:/tomcat/Tomcat 5.5/logs/mod_jk.log
    # JkLogLevel debug
    # Alias /toolkit C:/tomcat/Tomcat 5.5/webapps/toolkitv3
    # JkMount /toolkit/servlet/* ajp13w
    # JkMount /toolkit/*.jsp ajp13w
    # <location "/toolkit/web-inf/">
    # AllowOverride None
    # deny from all
    # </location
    (all uncommented of course)
    I hope someone out there can help me with this.
    Thanks

    I used the mod-jk.dll and loadModule :
    # Load mod_jk module
    # Update this path to match your modules location
    LoadModule jk_module modules/mod_jk.dll
    # Declare the module for <IfModule directive>
    #AddModule mod_jk.c
    # Where to find workers.properties
    # Update this path to match your conf directory location (put workers.properties next to httpd.conf)
    JkWorkersFile c:/Apache/Apache2/conf/workers.properties
    # Where to put jk logs
    # Update this path to match your logs directory location (put mod_jk.log next to access_log)
    JkLogFile c:/Apache/Apache2/logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel debug
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    #JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat "%w %V %T"
    # Send everything for context /examples to worker named worker1 (ajp13)
    JkMount /examples/* loadbalancer
    JkMount /olp/* loadbalancer

  • How to restart WorkItem if the status is completed

    Hello,
    Due to my mistake in PRD not in DEV i changed the WI status from started to completed.
    Now i have 110 WI affected and i dont know how to restart them, or make them finish normaly the right path.
    In the LOG i can see: Execution was ignored (work item has final status)
    Area: SWF_RUN
    Msg: 568
    Regards
    Laurynas Prikockis
    Edited by: Laurynas Prikockis on Apr 15, 2009 7:59 AM

    Resetting the status of a completed workitem? I think it is not possible , because you can reset the status of a workitem which is in in process state to ready state or the workitem which is in error state( May be not sure) but the status of completed workitem , not possible, because the workitem will not be in any of the users inbox.
    But will let you  know , if there is any possiblity
    Check this error when I tried to reset the status of workitem which is completed by using the FM
    SAP_WAPI_SET_WORKITEM_STATUS
    Status change from COMPLETED to READY is not allowed/possible

  • HT4759 my ipad is disabled.how to restart

    due to wrong passcod my i pad is disabled..please advice or suggest to how to restart my i pad

    Hi gibachonga,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Cheers,
    - Judy

  • How to restart the J2EE Engine

    I ran a couple tests the other day, and the next time I looked the J2EE Engine was down.  (Could not send or receive PTP messages to it).
    When I brought up the J2EE Engine Administrator, it put upt the following help box:
    <b>Unable to lookup connection default
    http:host1:8101/msgserver/text/login returned empty list of connection parameters</b>
    I had to reinstall to get it to work.
    Does anyone know how to restart the J2EE engine ?
    Thanks, John

    Hi,
    judging by the URL given in the error message (which is a URL that queries the message server), your engine must be of 6.40 version. Well, on 6.40 you should have the SAP Management Console (SAP MMC) that you can open and start the engine from. TO open it, go to Start -> Programs -> SAP Management Console. Inside, locate your SAP System, right-click on it and select Start.
    That's it.
    Just for a reference, <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9b/dd7277f3e64ecba59f7fbac7edd2fe/frameset.htm">this</a> page contains also some screenshots of the MMC.

  • How to restart the Successfully processed messages

    Hi,
    I have IDOC to File Scenario
    we posted the idoc from R/3 and it has processed successfully.
    Now again i want to process that idoc again with out going to R/3.
    How to restart the Successfully processed message from MONI.
    we have one option in MONI Restart. this is not working for Successfully processed messages.
    How to achieve this
    Regards
    Suman

    Hello Suman..
    XI: Restarting successfully processed messages..
    Go through this : Michal Krawczyk Blog This will really helpful to you..
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
    Reward Points If it is Helpful...
    Thanks,
    Satya Kumar..

  • How to restart the Servlet Engine?

    Hi
    I am configurating a WebDAV repository in KM
    I am required to restart the Servlet Engine.
    Can anyone please explain me how to restart the servlet engine.
    Thanks in advance
    -madhu

    Basically it means to restart the Java engine!
    On way to do this is to use the NetWeaver Administrator tool (http://portal:port/nwa) and navigate to Administration -> Systems -> <Your SID> and then you will see your dispatcher and server nodes. Just restart the server0..n nodes.
    Cheers

Maybe you are looking for

  • WLP Tech Preview

    This newsgroup was created to facilitate on-line discussion of questions and issues pertaining to the WLP / WLW 9.2 Tech Preview. For more information on the Tech Preview program, visit: http://wlp.bea.com/WLP92TechPreview/ To enroll in the Tech Prev

  • Drops connection when accessing yahoo

    My ipad has recently started closing out my browsing session whenever I try to access anything on yahoo.  Has anyone else had this problem?

  • None of your website links work, why?

    I have been trying to download the CVIRTE70.zip from your site for 2 days now and the links are dead. Yesterday I contacteed Joe Laxton over the phone and he said that he would send me the file in my e-mail yesterday, but i never heeard anything back

  • WRK54G firmware upgrade fails: file pattern error.

    When I attempt to upgrade the firmware in my WRK54G router, the upgrade fails with this error message: Upgrade action is not finish!! Upgrade file pattern error. The linksys download page says the file size is 1.10 MB. The size of the file I download

  • The keys are sticking and not responding. Any ideas why? No moisture has come near it.

    Why are my keys sticking and not responding? No moisture has come near the laptop.