Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Apache Web Server

Apache Web Server

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
questionapachesysadmintutorialworkspace
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SmartLearner
    wrote on last edited by
    #1

    How do I start Apache as a thread from my process. Does it require any change in the configuration? Can you please guide me through it . Regards,

    L P J 3 Replies Last reply
    0
    • S SmartLearner

      How do I start Apache as a thread from my process. Does it require any change in the configuration? Can you please guide me through it . Regards,

      L Offline
      L Offline
      loctrice
      wrote on last edited by
      #2

      You have to have the rights to do so. In perl I usually use back ticks to execute a command. Just assign the results to a variable. I think you are supposed to use exec, but .... well, I learned the other way :D

      If it moves, compile it

      S 1 Reply Last reply
      0
      • L loctrice

        You have to have the rights to do so. In perl I usually use back ticks to execute a command. Just assign the results to a variable. I think you are supposed to use exec, but .... well, I learned the other way :D

        If it moves, compile it

        S Offline
        S Offline
        SmartLearner
        wrote on last edited by
        #3

        The exec() call creates a new process and will not be a thread of the program from where I am calling. I am concerned about starting apache as a thread . Can you please give some more info ... Regards

        L 1 Reply Last reply
        0
        • S SmartLearner

          How do I start Apache as a thread from my process. Does it require any change in the configuration? Can you please guide me through it . Regards,

          P Offline
          P Offline
          Peter_in_2780
          wrote on last edited by
          #4

          Short answer: you can't. Apache is multithreaded/multiprocess depending on which MPM is configured. There is no way it can run as a single thread in some other process. Peter

          Software rusts. Simon Stephenson, ca 1994.

          1 Reply Last reply
          0
          • S SmartLearner

            The exec() call creates a new process and will not be a thread of the program from where I am calling. I am concerned about starting apache as a thread . Can you please give some more info ... Regards

            L Offline
            L Offline
            loctrice
            wrote on last edited by
            #5

            Like Peter states, you can't do what you are asking. I didn't search to check out embedding apache, but that's another subject. Apache is a service. It runs on it's own.

            If it moves, compile it

            1 Reply Last reply
            0
            • S SmartLearner

              How do I start Apache as a thread from my process. Does it require any change in the configuration? Can you please guide me through it . Regards,

              J Offline
              J Offline
              JosephvObrien
              wrote on last edited by
              #6

              After install Apache web server, you should be done little change in some file like port change(8080) and any other change...Thanks

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups