Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15921

Re: PHP development environment on a Windows laptop

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: PHP development environment on a Windows laptop
Date 2015-12-10 14:00 +0100
Organization PointedEars Software (PES)
Message-ID <1633818.BAFkCSONC1@PointedEars.de> (permalink)
References <n4a6r9$olu$1@dont-email.me>

Show all headers | View raw


James Harris wrote:

> I currently use a Virtual Machine running Linux. I have Oracle
> VirtualBox running Ubuntu and Apache. The guest has a static IP and runs
> behind a NAT network.
> 
> I have configured the host to forward telnet at a certain port number to
> the guest. That gives me convenient command-line access. And I have set
> up a share on the guest which I access from the host and that gives me
> filesystem access. Telnet and filesystem access together make the guest
> (and its PHP files) accessible almost as if they were directly on the
> Windows machine.
> 
> The above was a fair bit of work to set up so I wondered if people used
> something better such as a development environment that ran directly
> under Windows.
> 
> Any suggestions? If you develop on a single machine what setup do you use?

Unless the operating systems of client and server would have to been 
different, I would not use a virtual machine setup whose management overhead 
would only slow me down.  But if I were you I would avoid Windows in the 
first place, and I would certainly avoid developing on Windows.  At home I 
have a multi-boot Linux/Windows setup on my laptops where I run Windows 
mostly via WINE if at all; in the office, I have VirtualBox running several 
Windows versions on OS X to test the client side (browsers) only (ievms).

I also only use SSH instead of unsafe Telnet to connect to servers, and 
FISH/SFTP/rsync/SCP for remote file system access, unless only FTP is 
available.

Eclipse (which I am currently using with PHP Development Tools and plugins 
for several other languages, but Atom looks appealing too) has a plugin that 
allows you to have a shell explorer and console within the IDE, so in theory 
you do not have to switch between IDE and console.  In practice, though, I 
find myself using that plugin seldom as I am already comfortable on the 
Debian GNU/Linux or OS X bash console, which I am running most of the time 
in a screen(1) which runs most of the time in Konsole, the KDE console 
window or iTerm2.

screen, which if available I am also running via the same login script on 
the servers I am connected to (all running Debian GNU/Linux or Ubuntu), 
allows me to continue working in the console where I logged out from the 
server the day before, and allows me to run things on the server in 
parallel, and without being logged in, easily (unless the server was 
rebooted in-between).

For example, I am still using it to run an SVN daemon that nobody else needs 
there, but that will soon be history as many projects have been migrated to 
git already; insofar I would definitely recommend that you use a VCS, 
preferably a well-supported distributed one like git, even if you are 
working only one machine and even if you are the only developer.

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PHP development environment on a Windows laptop James Harris <james.harris.1@gmail.com> - 2015-12-09 21:38 +0000
  Re: PHP development environment on a Windows laptop Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-09 17:31 -0500
    Re: PHP development environment on a Windows laptop James Harris <james.harris.1@gmail.com> - 2015-12-10 11:15 +0000
      Re: PHP development environment on a Windows laptop Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-10 09:29 -0500
        Re: PHP development environment on a Windows laptop James Harris <james.harris.1@gmail.com> - 2015-12-25 15:46 +0000
      Re: PHP development environment on a Windows laptop Arno Welzel <usenet@arnowelzel.de> - 2015-12-10 16:19 +0100
      Re: PHP development environment on a Windows laptop dryhurst <jonathan.dryhurst@gmail.com> - 2015-12-25 05:16 -0800
  Re: PHP development environment on a Windows laptop Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-10 14:00 +0100
  Re: PHP development environment on a Windows laptop "J.O. Aho" <user@example.net> - 2015-12-12 09:32 +0100
  Re: PHP development environment on a Windows laptop dryhurst <jonathan.dryhurst@gmail.com> - 2015-12-25 05:07 -0800
  Re: PHP development environment on a Windows laptop imbibed <jonathan.dryhurst@gmail.com> - 2015-12-25 06:11 -0800
  Re: PHP development environment on a Windows laptop imbibed <jonathan.dryhurst@gmail.com> - 2015-12-25 06:12 -0800
  Re: PHP development environment on a Windows laptop imbibed <jonathan.dryhurst@gmail.com> - 2015-12-25 06:31 -0800

csiph-web