Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9319387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:22:23+00:00 2026-06-19T03:22:23+00:00

I work at a web shop where we do a lot of WordPress sites,

  • 0

I work at a web shop where we do a lot of WordPress sites, but over the past couple of years, I’ve been developing some rails applications, learning the ways of local development and whatnot. The sheer convenience of changing into a directory and running rails server has left me wanting for a similar solution for my Apache / PHP development workflow. Does anyone know of a solution to quickly and easily launch an Apache (or nginx, or lighttpd) / PHP server from the working directory, or am I stuck configuring something myself to watch a certain directory? I’ve used MAMP in the past but it’s not quite what I’m looking for. I’ve also looked into Vagrant, but it seems to be more trouble than it’s worth.

Sorry if I’m not making sense here, I don’t even know if it’s technically feasible, just wondering if anyone is looking for something similar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:22:24+00:00Added an answer on June 19, 2026 at 3:22 am

    There are a few solutions:

    1. You could edit your httpd.conf (or apache.conf) file and add a VirtualHost (example below) and then restart apache. (This is your best option because it is using Apache (something designed as a server) to host your site without having to run a command over and over and over again)
    2. You can use ScriptAlias or ScriptAliasMatch in the conf file too. This does not convert a directory, but it can let you do a more verbose redirect.
    3. Simlink your directory into wherever your site is supposed to load. To me this seems sloppy and less than ideal.
    4. use the built in webserver. The benefit is that this is as close as you can get to running a command and having an instant server, the detriment is that this really should only be used for development and it does not entirely map to Apache’s abilities.

    Virtual host example (be sure to add 127.0.0.1 myserver.local to /etc/hosts):

     <VirtualHost *:80>
        DocumentRoot "/path/you/like"
        ServerName myserver.local
        # This should be omitted in the production environment
        SetEnv APPLICATION_ENV development
        <Directory "/path/you/like">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride All 
            Order allow,deny
            Allow from all 
        </Directory>
     </VirtualHost>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been doing some work testing web applications with Cucumber and I currently have
I am doing some work with Web.Routing, using it to have friendly urls and
Most of the work I do is with RESTful web services but one of
I'm creating a web shop using MVC4 razor syntax, repository and Unit of work.
We run a web development shop with ~20 developers working on ~30 different sites
I always used to use Dreamweaver for web work, but now I work in
The web shop where I work we do both .Net and PHP/Linux development. We'd
I work on a web app that involves scheduling. A user can view his
I'm planning to work on a web application of reasonable complexity and am wondering
Our development team uses Eclipse + Aptana to do their web development work. Currently,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.