How to start Apache?

cd /usr/apache2
./apachectl start
But testing http://localhost is not successful.
It seems that httpd is not running.

Thanks for reply,
Yes, I started with httpd.conf file. And the result of svcs -x apache2 is:
svcs -x apache2
svc:/network/http:apache2 (Apache 2 HTTP server)
State: maintenance since Mon Jun 06 18:28:45 2005
Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
See: http://sun.com/msg/SMF-8000-KS
See: apache2(1M)
Impact: This service is not running.
So it is obvious that is not running. But it is strange, because I have disabled the service and to enable again, and I have the same behaviour.
When I am starting over with apachectl or with svcadm refresh I am not getting any error but it is not running.
Is anyone having the same behaviour?
Thanks

Similar Messages

  • How to start apache which embeded in oracle

    hi,
    i run the following command under the root priviledge:
    $ORACLE_HOME/Apache/Apache/bin/apachectl start.
    but,
    the server said:
    ./apachectl start: httpd could not be started
    what is the reason?
    when i first install the o8i, the web server is alive( i do nothing)

    I have encountered the same problems. Have you found a solution?
    Thanks
    hi,
    i run the following command under the root priviledge:
    $ORACLE_HOME/Apache/Apache/bin/apachectl start.
    but,
    the server said:
    ./apachectl start: httpd could not be started
    what is the reason?
    when i first install the o8i, the web server is alive( i do nothing)

  • Starting Apache

    Hi, new to Solaris 10 here. Been using linux for a year or so, and I always feel comfortable with webmin running. But I can't figure out how to start apache out of the box. Can anyone give me a quick pointer?
    ta.
    Dave

    To elaborate, there is an httpd.conf-example in /etc/apache. Edit this file, or create a completely new one and copy it to httpd.conf in /etc/apache. apachectl is in /usr/apache/bin, should you want to run configtest before starting the server.
    Also note that Apache 2 config files are in /etc/apache2, the binaries are in /usr/apache2, but to start the server you need to run the svcadm command: 'svcadm enable apache'.

  • How to start my Apache httpd server on TREX, post installation

    Dear Gurus,
    I have successfully installed TREX 7.0 SR3 on my Suse Linux 10 SP2 system and i have choosen it for ABAP and HTTP services, i have done all the post-install activities according to the standard document from SAP.
    All seems to be fine so far, and below are the services that are running on my TREX server..
    ======================================================================================================
    trexdev:/usr/sap/TRX/TRX00/trexdev/Apache # ps -fu trxadm
    UID        PID  PPID  C STIME TTY          TIME CMD
    trxadm    6039     1  0 Oct30 ?        00:01:21 /usr/sap/TRX/SYS/exe/run/saposcol
    trxadm    6055     1  0 Oct30 ?        00:00:00 /usr/sap/TRX/TRX00/exe/sapstartsrv pf=/usr/sap/TRX/SYS/profile/START_TRX00_trexdev -D
    trxadm   21304     1  0 Oct31 ?        00:00:00 sapstart pf=/usr/sap/TRX/SYS/profile/START_TRX00_trexdev
    trxadm   21316 21304  0 Oct31 ?        00:00:00 trx.sapTRX_TRX00 -d -f /usr/sap/TRX/TRX00/trexdev/TREXDaemon.ini pf=/usr/sap/TRX/SYS/profile/TRX_TRX00_trexde
    trxadm   21319 21304  0 Oct31 ?        00:00:06 /usr/sap/TRX/TRX00/exe/sapccmsr pf=/usr/sap/TRX/SYS/profile/TRX_TRX00_trexdev -j2ee -standalone -nodaemon -DC
    trxadm   21321 21316  0 Oct31 ?        00:00:22 TREXNameServer.x
    trxadm   21341 21316  0 Oct31 ?        00:00:01 TREXPreprocessor.x -port 30002
    trxadm   21345 21316  0 Oct31 ?        00:00:07 TREXIndexServer.x -port 30003
    trxadm   21352 21316  0 Oct31 ?        00:00:03 TREXQueueServer.x -port 30004
    trxadm   21367 21316  0 Oct31 ?        00:01:58 python alertserver.py
    trxadm   24710 21316  0 Oct31 ?        00:00:26 TREXRfcServer2.x
    ======================================================================================================
    I have no problems on my server as to what so ever, but the only thing is that I want to know how to start my apache httpd server so that i can starting using my Web services from Portal.
    According to SAP standard document it clearly says that Apache is installed by SAPinst tool, but i also verified that the http://localhost does not give any web page opened, probably no http service is running on my machine.
    I request all gurus to help me on this and start my httpd service.
    Thanks in advance
    Regards
    BasoKing

    Did you ever get a solution for this?? If so, can you please post it here?
    Thanks in advance

  • I can't start apache since upgrading to Mountain Lion

    Why Apple remove the web sharing feature I'll never understand. I have tried everything I've found on the web to get apache started but nothing seems to work. Apache started for a brief period of time but now it won't start at all. sudo apachectl start/tsop/restart all seem to work with no errors but when I go to localhost I get the "Safari can't find the server" error page. I've rebuilt my user.conf file, I've tries forcing org.apache.plist to start (took me a while bu tI think I've finally undone this bad idea). I've even tried OSX Server but even that was causing problems and to recreate my multisite setup I was using under apache in Lion would be like using an atomic bomb to take care of an ant hill in my back yard. I'm no apache server admin so while I can read the aache logs in console I'm not entirely sure what I should be looking for to see if an error is occuring. A cursory glance seems to show nothing more then the obvious things like "File does not exist". Thanks, of course you don't think the file exists beacuse the server isn't running. Any suggestions on how I could nuke apache and return it to its default state in either Lion or Mountain Lion?

    I see what you mean now that I look. I also installed Server.app and myWeb Sharing option is gone from the Sharing prefpanel. I wonder if it still appears for those who never installed Server.app?
    The previous Apache setup is still there in the old location at /private/etc/apache2/ and serves files from /Library/WebServer/Documents/ The problem is that Server.app overrides the launching system for the old setup. You may need to go to the file at /Library/LaunchDaemons/com.apple.serverd.plist and rename it by appending an "X" to the end which will prevent it from launching. When you reboot you won't be able to log into the Server.app. You should then be able to run launchctl and start Apach from the file at /System/Library/LaunchDaemons/org.apache.httpd.plist . If that file is missing report back here and we'll figure out what's wrong.

  • Ulimit "cannot modify limit" error when starting Apache

    This isn't exactly an OSX Server problem, but I am trying to start Apache and subsequently Tomcat on my MacBook Pro so I can locally test a website before I deploy it to our test server. (The MacBook is a new machine to which I recently migrated my setup from my old PowerBook. The PowerBook is running 10.4.11, FWIW, and all worked well there.)
    When I do this from the command line:
    sudo /Library/Apache2/bin/apachectl start
    I get:
    /Library/Apache2/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
    And Apache is not started. This runs fine on my old machine. The culprit line from apachectl is:
    ULIMITMAXFILES="ulimit -S -n `ulimit -H -n`"
    Just running the'ulimit -H -n' yields 'unlimited'.
    What's the problem here, and how do I fix it? I haven't found the answer by Googling.

    Back up all data.
    Select
    Shell ▹ New Command
    from the Terminal menu bar. Copy and paste the following line into the text box that opens:
    mkdir disabled_shell_files; mv .profile .bash* $_
    Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory. Test.

  • Error when starting Apache

    Hi,
    I have problem when I tried starting Apache. The following error message came up :
    "The Procedure entry point OCIUserCallBackRegister could not be located in the dynamic link library OCI.dll"
    and in the command prompt, the following error message came up :
    "Syntax error at line 1 in mod_ose.conf. Could not load orajipa8i."
    I found the same error (with the same error message) when I tried starting Net8 Assistant and Net8 Configuration Assistant.
    How can I solve this problem ?
    Thanks a lot

    It seems like the JVM is pointing to incorrect .dll file.
    Goto Apache bin directory, and from there open Apache[version]W.exe
    Click the "Java" tab and ensure the first textbox "Java Virtual Machine" is pointed to the correct jvm.dll
    If it was pointed to the JDK then it is wrong. Repoint it to the jre jvm located at \jre6\bin\client\jvm.dll
    Let me know if it resolves the issue.

  • Starting apache on OS X Yosemite

    Hello,
    I have a MacBook Pro with OS X Yosemite. I want to enable Apache, and PHP, using WebSharing but I can't find it in the System preferences under sharing. Does anyone know how I can start Apache. Thank You.

    Hello,
    I have a MacBook Pro with OS X Yosemite. I want to enable Apache, and PHP, using WebSharing but I can't find it in the System preferences under sharing. Does anyone know how I can start Apache. Thank You.

  • 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 Start / Stop Oracle Applications

    How to Start / Stop Oracle Applications.
    Oracle Applications Services (TCF, ConcManagers, Metric, Forms, Reports etc...) TnsListner & Oracle Service (DB) are started when the Server is started.
    What is the sequential Order to Start / Shutdown services, Listener & DB.
    Best regards,

    hi
    there is no hard coded rule on which service should be started first.
    the basic thing is concurrent manager uses database for starting, so i advice you the following sequence:
    1. start the database
    2. start the database listener
    3. Apache server
    4. forms server
    5. report server
    6. concurrent manager
    and shutdown in the reverse order
    simple
    regards
    srinivas

  • Non-root user can't start Apache on port 443

    Today I've been attempting to get SSL working for my Oracle Applications 11i (11.5.10.2) installation and I just hit a small problem. I've followed all of the Oracle literature I've come across, which instructed me to create a new (non-root) user to own the database tier and the applications tier. I've also followed the instructions for configuring SSL ([Doc 123718.1|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:6976756808231635106::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,123718.1,1,1,1,helvetica]) and the SSL wizard in OAM defaults to the standard HTTPS port (443). However, because 443 is a privileged port, a non-root user cannot bind to it. In other words, the Oracle literature itself has led me to an impossible situation. This is what I see in the Apache error log:
    [Fri May 15 15:05:03 2009] [crit] (13)Permission denied: make_sock: could not bind to port 443
    At this point, I see two choices:
    1. Run the application tier services as root.
    2. Change the SSL port to something greater than 1024 (i.e. 4443).
    I'm leaning towards option #2, since option #1 negates the advantage of using a non-root user to begin with. Does anyone have any other suggestions? Does Oracle have any recommendations for this scenario?

    Hi,
    You just need to start Apache as root (not all the application services). For Option 1, the application tier files should be owned by applmgr/oracle user (not root), and for Option 2, you do not need to change the port (though it is valid option). Just follow the steps in the following document.
    Note: 356080.1 - How to run Apache on Port 80 in Apps 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=356080.1
    BTW, this is mentioned in the document "if you have chosen port 443 (or any port under 1024) for your SSL port, you will have to start Apache as root".
    Regards,
    Hussein

  • Problem starting apache web server [SOLVED]

    when i start apache manually (sudo /etc/rc.d/./httpd start) i just get a fail, but when i start it through webmin i get the following:
    stty: standard input: Inappropriate ioctl for device
    Can someone tell me how i can fix this, or if it is too hard to fix, give me the name of the next best http server available?

    i had problems with apache too, but then i just did some changes:
    in httpd.conf i changed user from nobody to httpd;
    then added to system user httpd via adduser httpd in group nobody and it worked well

  • How to install Apache Open Office on Yosemite 10.10.1

    I had a MacBook Air late 2008 and it was destroyed by a mean person, now I have a late model MacBook 2009 and updated everything, but I cannot figure out how to load Apache Open Office. It keeps giving me a warning that the security system won't allow anything that is not made by Apple or has its approval or something, but it worked on the 2008 Mac and it worked awesomely! Why can I NOT find anything about it now that I have Yosemite , which is also hard to remember to spell! Any suggestions would be super appreciated especially if they work!!

    Thank you so much!
    I didn't set up my first Mac, the '08, but after I learned how easy it seemed to be compared to Windows, I was a "convert" - not that I was pro-Windows, I didn't know there was anything else-  then had to go to a Windows 8.1 for a couple weeks and wow, lot of new stuff but interesting & so different that maybe I'd be more prepared if they'd changed the name, like Panes or Blocks, ect., instead of Windows! 
    However, coming back to the Mac, it took a little time to get reacquainted, which was't much because my first one rarely needed me to do anything, unlike while I was on Windows just those 14 days of use was frustrating, continual maintenance stuff & I just want to use the thing, not keep it running all the time, but I managed to learn to operate it fairly well, - didn't want to waste the money & be stuck w/it, so thank God for 14 day money back guarantees! I took that money back and added a few bucks more and have quality, the Cadillac of Computers!
    All I needed next was Open Office and I can begin my new business I am starting!
    THANK YOU PHIL0124!!!

  • How to start/ restart the service in visual admin of SAP WAS 6.4?

    I have installed the sneak preview version of SAP NetWeaver WAS 6.4 for default Database MaxDB. While developing a simple application to manage simple database table citymaster with 2 columns in jsp I am getting error as
    Exception e com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at : java.comp.
    Looking at visual admin tool for WAS 6.4 all the entries are in color blue but the last entry for 'DATASOURCE' is in RED color where 'java.comp/env/JDBC/DATASOURCE' is the jndi reference created for default DataSource.
    Can any one help me that why the last entry is in RED and it that say that some error has occured or that entry is not started then how to start that?
    Please help....

    Dear Daniel,
    I have checked the Visual Administrator's  JNDI Registry service entry in the ejbContexts node but there is no entry for the project which I have created.
    It get deployed while I right click on the project's ear file and click on "Deploy on J2EE Engine". But same as before while checking in Browserthe site gives the same error...
    503   Service Unavailable
    Application cannot be started!
    Details: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application bcone.com/EntityCMPAppln cannot be started, because it has hard reference to resource CONFIG_DB with type javax.sql.DataSource, but it is not active on the server.
         at com.sap.engine.services.deploy.server.ReferenceResolver.processUsageOfComponent(ReferenceResolver.java:508)
         at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:149)
         at com.sap.engine.services.deploy.server.application.StartTransaction.beginLocal(StartTransaction.java:285)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:355)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:120)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:224)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4170)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2390)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2267)
         at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:41)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:101)
         at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:80)
         at com.sap.engine.core.thread.impl4.SingleThread.execute(SingleThread.java:70)
         at com.sap.engine.core.thread.impl4.SingleThread.run(SingleThread.java:111)
    Please help me, how to recover this error.
    Rgds,
    Vivek

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

Maybe you are looking for

  • Cascade delete in database

    Hi all, i've tow entites, TCompte and THisto define as : public class TCompte { public class THisto { @ManyToOne(optional = false) TCompte theCompte; }i've persist many instance of each. when i try to remove an instance of TCompte i got an exception

  • Adding Licenses for Office 365 Pro Plus and Power BI

    Hello. I have one license for Office 365 Pro Plus and one Power BI license. I want to buy another Power BI license to assign to a prospective client so he can log on to my Power BI site and view Power Pivot reports in the browser. I think that I need

  • After Effects does not support Quadro K4200

    After Effects CC 2014 is running on Windows 7 64bit. I installed the latest driver.. After Effects does not support Quadro K4200 Here is a copy of GPU setting in AE. Can you fix this issue? Fast Draft:    Available Texture Memory:    2048.00 MB Ray-t

  • Mailman / Postfix aliases problem?

    Hello, all! I've got mailman running, finally, after many hours of fighting with it. It is now to the point where it will accept new subscribers through the listinfo page, send them their confirmation, and accept a confirmation action by the user on

  • AVI output

    I can't find the proper settings to output an uncompressed AVI file.  I'm using CS4, Microsoft AVI, no codec and I've tried all of the aspect ratios and none work properly - the width is compressed. I'm afraid that my problem might be caused by the A