Re: mixing PHP projects
Martin Settle <[email protected]>
| Newsgroups | gmane.user-groups.linux.ottawa.general |
|---|---|
| Message-ID | <[email protected]> |
I haven't used Drupal, but I have managed multiple projects by: 1. putting the second project into a subdirectory 2. creating an apache virtual host (with apache2 it is a fairly simple matter of setting up a simple template file in /etc/httpd/sites-enabled -- a sample template is probably available in /etc/httpd/sites-available). Webmin can also set this up for you, if you've got it installed. 3. enabling user-level http directories (i.e. /home/marti/public_html/) and creating users for different projects... the projects are then available under http://localhost/~[project_user] This is again done from the httpd configuration files, but I can't remember the exact directives. Google is your friend. 4. Using virtualbox or vmware. This is nice, because you can just keep a copy of a clean server, and always know that you are starting with an uncompromised environment. On the other hand, you do carry substantive overheads, and (at least for me on my netbook) working on more than one project at a time is difficult. I've found it's easier to get bridged networking working on vmware, but generally prefer virtualbox on FLOSS grounds. If you want to keep the projects cleanly on the same machine, I would definitely recommend using virtual hosts. If you've already got a functioning domain name (even within your LAN), you can set it up as a subdomain. Otherwise, set the virtualhost to listen on a different port (8080 is a common choice) and then you can access it from 192.xxx.xxx.xxx:8080 Hope this is useful Marti On 2 February 2010 23:34, Mike <[email protected]> wrote: > I have installed drupal on my machine and am working with a test site. > > > DocumentRoot "/srv/www/htdocs" > > Now I have a new php project. I have put it in the doc root, but when I > try > to access the new php page drupal replies with a page not found. > > Is there an easy way to run both on the same machine or am I better off > doing > the new project on the laptop or in a Virtual-box? > > > -- > Collector of vintage computers http://www.ncf.ca/~ba600<http://www.ncf.ca/%7Eba600> > -- > OCLUG general discussion list > [email protected] > http://oclug.on.ca/mailman/listinfo/oclug > -- OCLUG general discussion list [email protected] http://oclug.on.ca/mailman/listinfo/oclug