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


Groups > comp.lang.php > #15918 > unrolled thread

PHP development environment on a Windows laptop

Started byJames Harris <james.harris.1@gmail.com>
First post2015-12-09 21:38 +0000
Last post2015-12-25 06:31 -0800
Articles 13 — 7 participants

Back to article view | Back to comp.lang.php


Contents

  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

#15918 — PHP development environment on a Windows laptop

FromJames Harris <james.harris.1@gmail.com>
Date2015-12-09 21:38 +0000
SubjectPHP development environment on a Windows laptop
Message-ID<n4a6r9$olu$1@dont-email.me>
Any suggestions for a good way to set up a PHP development environment 
on a single machine (in this case, a Windows laptop)?

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?

James

[toc] | [next] | [standalone]


#15919

FromJerry Stuckle <jstucklex@attglobal.net>
Date2015-12-09 17:31 -0500
Message-ID<n4a9uj$66j$1@dont-email.me>
In reply to#15918
On 12/9/2015 4:38 PM, James Harris wrote:
> Any suggestions for a good way to set up a PHP development environment
> on a single machine (in this case, a Windows laptop)?
> 
> 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?
> 
> James

Sure.  Just install Apache, MySQL, PHP and whatever else you might need
on the laptop.  I prefer to install each manually so I can control
everything, but you can get a package such as WAMP which contains all
three instead.

Not hard to do at all.  When I got this laptop, it took me all of about
30 minutes (not including migrating data from the old system).

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#15920

FromJames Harris <james.harris.1@gmail.com>
Date2015-12-10 11:15 +0000
Message-ID<n4bmnq$d09$1@dont-email.me>
In reply to#15919
On 09/12/2015 22:31, Jerry Stuckle wrote:
> On 12/9/2015 4:38 PM, James Harris wrote:

>> Any suggestions for a good way to set up a PHP development environment
>> on a single machine (in this case, a Windows laptop)?

...

> Sure.  Just install Apache, MySQL, PHP and whatever else you might need
> on the laptop.  I prefer to install each manually so I can control
> everything, but you can get a package such as WAMP which contains all
> three instead.

I prefer separate installations, too.

I don't have a Windows C compiler to build from source code and am wary 
of installing code that someone else has built in case it includes some 
unwanted code that they have added. Which Apache web server code did you 
download and install?

James

[toc] | [prev] | [next] | [standalone]


#15922

FromJerry Stuckle <jstucklex@attglobal.net>
Date2015-12-10 09:29 -0500
Message-ID<n4c23q$nqa$1@dont-email.me>
In reply to#15920
On 12/10/2015 6:15 AM, James Harris wrote:
> On 09/12/2015 22:31, Jerry Stuckle wrote:
>> On 12/9/2015 4:38 PM, James Harris wrote:
> 
>>> Any suggestions for a good way to set up a PHP development environment
>>> on a single machine (in this case, a Windows laptop)?
> 
> ...
> 
>> Sure.  Just install Apache, MySQL, PHP and whatever else you might need
>> on the laptop.  I prefer to install each manually so I can control
>> everything, but you can get a package such as WAMP which contains all
>> three instead.
> 
> I prefer separate installations, too.
> 
> I don't have a Windows C compiler to build from source code and am wary
> of installing code that someone else has built in case it includes some
> unwanted code that they have added. Which Apache web server code did you
> download and install?
> 
> James
> 

I understand your feelings, but if you can't compile it yourself, you
have to depend on something someone has compiled for you.  But then how
many other programs do you have for which you haven't/can't compile?
And even if you do compile it yourself - are you sure someone hasn't
added something to the source code?  Without going though line for line
and understanding what every line does, you can't be sure.

But as to your question - I download them from the respective sites.  If
they don't have Windows binaries, they have sites they recommend where
you can get the files.  I figure it's the safest way.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#15985

FromJames Harris <james.harris.1@gmail.com>
Date2015-12-25 15:46 +0000
Message-ID<n5jo8f$n7q$1@dont-email.me>
In reply to#15922
On 10/12/2015 14:29, Jerry Stuckle wrote:
> On 12/10/2015 6:15 AM, James Harris wrote:
>> On 09/12/2015 22:31, Jerry Stuckle wrote:
>>> On 12/9/2015 4:38 PM, James Harris wrote:
>>
>>>> Any suggestions for a good way to set up a PHP development environment
>>>> on a single machine (in this case, a Windows laptop)?
>>
>> ...
>>
>>> Sure.  Just install Apache, MySQL, PHP and whatever else you might need
>>> on the laptop.  I prefer to install each manually so I can control
>>> everything, but you can get a package such as WAMP which contains all
>>> three instead.
>>
>> I prefer separate installations, too.
>>
>> I don't have a Windows C compiler to build from source code and am wary
>> of installing code that someone else has built in case it includes some
>> unwanted code that they have added. Which Apache web server code did you
>> download and install?

> I understand your feelings, but if you can't compile it yourself, you
> have to depend on something someone has compiled for you.  But then how
> many other programs do you have for which you haven't/can't compile?

I normally use binaries from relatively trustworthy sources. That is not 
a guarantee but seems the best option.

Even binaries can be modified by others - as virus writers know. I lost 
faith in download sites when I found one that seemed to have modified a 
binary.

> And even if you do compile it yourself - are you sure someone hasn't
> added something to the source code?  Without going though line for line
> and understanding what every line does, you can't be sure.

That's true. Best, IMO, is to get source or binary from the original writer.

> But as to your question - I download them from the respective sites.  If
> they don't have Windows binaries, they have sites they recommend where
> you can get the files.  I figure it's the safest way.

Yes, is safer but is not ideal.

Note that it is particularly important to get a browser from a trusted 
source. After all, even with the security of HTTPS, SSL, padlock symbols 
etc we still need to type very confidential info into our browsers. The 
browser code gets to see all that info before it is encrypted.

Similarly, the server software gets to see the unencrypted info at the 
other end.

James

[toc] | [prev] | [next] | [standalone]


#15923

FromArno Welzel <usenet@arnowelzel.de>
Date2015-12-10 16:19 +0100
Message-ID<56699808.3010606@arnowelzel.de>
In reply to#15920
Am 2015-12-10 um 12:15 schrieb James Harris:

> On 09/12/2015 22:31, Jerry Stuckle wrote:
>> On 12/9/2015 4:38 PM, James Harris wrote:
> 
>>> Any suggestions for a good way to set up a PHP development environment
>>> on a single machine (in this case, a Windows laptop)?
> 
> ...
> 
>> Sure.  Just install Apache, MySQL, PHP and whatever else you might need
>> on the laptop.  I prefer to install each manually so I can control
>> everything, but you can get a package such as WAMP which contains all
>> three instead.
> 
> I prefer separate installations, too.
> 
> I don't have a Windows C compiler to build from source code and am wary 
> of installing code that someone else has built in case it includes some 
> unwanted code that they have added. Which Apache web server code did you 
> download and install?

Just my 2 cents...

Apache:

See <http://httpd.apache.org/docs/current/platform/windows.html#down>
which also refers to <http://www.apachehaus.com/cgi-bin/download.plx>

PHP:

<http://windows.php.net/download/>

MySQL:

<http://dev.mysql.com/downloads/mysql/>


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#15981

Fromdryhurst <jonathan.dryhurst@gmail.com>
Date2015-12-25 05:16 -0800
Message-ID<9d3e6b44-864f-42f0-a322-4487ebb79d61@googlegroups.com>
In reply to#15920
On Thursday, December 10, 2015 at 3:15:36 AM UTC-8, James Harris wrote:
> On 09/12/2015 22:31, Jerry Stuckle wrote:
> > On 12/9/2015 4:38 PM, James Harris wrote:
> 
> >> Any suggestions for a good way to set up a PHP development environment
> >> on a single machine (in this case, a Windows laptop)?
> 
> ...
> 
> > Sure.  Just install Apache, MySQL, PHP and whatever else you might need
> > on the laptop.  I prefer to install each manually so I can control
> > everything, but you can get a package such as WAMP which contains all
> > three instead.
> 
> I prefer separate installations, too.
> 
> I don't have a Windows C compiler to build from source code and am wary 
> of installing code that someone else has built in case it includes some 
> unwanted code that they have added. Which Apache web server code did you 
> download and install?
> 
> James

there is a windows binary for 99.9 percent of the things you'll need. otherwise __get__ a windows compiler. they exist. 

[toc] | [prev] | [next] | [standalone]


#15921

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-10 14:00 +0100
Message-ID<1633818.BAFkCSONC1@PointedEars.de>
In reply to#15918
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.

[toc] | [prev] | [next] | [standalone]


#15924

From"J.O. Aho" <user@example.net>
Date2015-12-12 09:32 +0100
Message-ID<dd24chFisucU1@mid.individual.net>
In reply to#15918
On 12/09/2015 10:38 PM, James Harris wrote:

> 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.

I have Linux as host system. At work I have a microsft guest which I use 
for those task requiring visual studio. At home rune a couple of 
applications with wine.

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#15980

Fromdryhurst <jonathan.dryhurst@gmail.com>
Date2015-12-25 05:07 -0800
Message-ID<ac57b1d9-dc67-40ae-ac3d-20258056b9c2@googlegroups.com>
In reply to#15918
note: humor me, its christmas, im over-cheered and bored out of my skull .....

//---------------------------------------------------------------------------->
# JAMES, 
//---------------------------------------------------------------------------->
# your question has nothing to do with using windows to develop php, so 
# neither does my answer. however it has more to do with how to take 
# ownership of your windows machine so that you can be as productive 
# as possible to be a fucking legend mate
//---------------------------------------------------------------------------->
//---------------------------------------------------------------------------->
//---------------------------------------------------------------------------->
STEP NUMERO UNO: ___INSTALL THE SOFTWARE YOU NEED_____________________________.

_OUTBOUND MAIL__
use googles free smtp.gmail.com to send email /gmail account required/
https://www.digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server


/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 

php/apache/nginx/mysql/memcache/ffmpeg                     __
the list is exhaustive depending onwhat you're        ,-~¨^  ^¨-,           _,
doing. downloading and maintaining it all is a       /          / ;^-._...,¨/
major pain in the ass. luckily for *nix folk        /          / /         /
have wizards workgin for them. to keep things      /          / /         /
manageable. with all dependencies in check.       /          / /         /
                                                 /,.-:''-,_ / /         /
well fscking guess what. windows does too..     _,.-:--._ ^ ^:-._ __../
                                               /^         / /¨:.._¨__.;
https://chocolatey.org/                       /          / /      ^  /
----apt-get for bill gates clan members      /          / /         /
                                            /          / /         /
                                           /_,.--:^-._/ /         /
                                          ^            ^¨¨-.___.:^

/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
     ___________________________________________________________________
    /\                                                                  \  
    \_|  GodMode.                                                       |
      |                                                                 |
      |        Create a folder on your desktop and name it              |
      |                                                                 |  
      |           God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}       |
      |                                                                 |
      |        Now you dont have to guess where configs are anything    |
      |  _______________________________________________________________|_
      \_/________________________________________________________________/


/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 


                           G G G G G G G G G G G G     G G G G G G
                           0 0 0 0 0 0 0 0 0 0 1 1     1 1 1 1 1 1
                           0 1 2 3 4 5 6 7 8 9 0 1     2 3 4 5 6 7
     | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
     -----------------------------------------------------------------
    --|                                                               |--
    --|     pure windows ports for many common proven nix utils       |--
    --|     thats right DR. CLAW.. >>> NO CYGWIN REQUIRED             |--
    --|     http://sourceforge.net/projects/unxutils/                 |--
    --|                                                               |--
    --|     -!-!!-----------------------------------------------      |-- G18
    --|                                                               |-- G19
    --|     its 2016 (almost) yep, cmd.exe is a still a total P.O.S   |-- G20
    --|     therefore THERE WAS RISEN Console2:                       |-- G21
    --|     http://sourceforge.net/projects/console/                  |-- G22
    --|                                                               |-- G23
    --|     --------!-!!----------------------------------------      |--
    --|                                                               |--
    --|     POWERSHELL                                                |--
    --|     https://technet.microsoft.com/en-us/library/hh847837.aspx |--
    --|                                                               |--
     -----------------------------------------------------------------
     | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
     ^

          .-.-.   .-.-.   .-.-.   .-.-.   .-.-.   .-.-.   .-.-.   .-.-
         / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
        `-'   `-`-'   `-`-'   `-`-'   `-`-'   `-`-'   `-`-'   `-`-'

          aliases work in windows too so say NEIN to typing 
          just about everything and create your own key commands to
          aimlessly launch minesweeper at will
          "Set-Alias"

  =^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=    =^..^=  

          Your hosts file will most likely be at this path:
                C:\windows\system32\drivers\etc\hosts
          open as Administrator to save changes.


          PsGet provides a super easy way to install PowerShell 
          modules that extend the basic functionality of the shell, 
          and provide other useful libraries. To install PsGet
          from a powershell thusly: 

(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex

          Once PsGet is wrangled into place check out posh-git 
          and posh-npm TAB COMPLETION ADDED TO GIT and NPM 

                                 *KABLAMMMO* 

  =^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=    =^..^=  



 
 
On Wednesday, December 9, 2015 at 1:38:14 PM UTC-8, James Harris wrote:
> Any suggestions for a good way to set up a PHP development environment 
> on a single machine (in this case, a Windows laptop)?
> 
> 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?
> 
> James

[toc] | [prev] | [next] | [standalone]


#15982

Fromimbibed <jonathan.dryhurst@gmail.com>
Date2015-12-25 06:11 -0800
Message-ID<9003831e-b809-42a3-a987-c20ba231d007@googlegroups.com>
In reply to#15918
humor me. its christmas, im over-cheered, and bored out of my
skull. these things should make you a better developer using the
windows environment... just tricks i've learned. *hic

                  ----><><><><><><><><><><----

_OUTBOUND MAIL__
use googles free smtp.gmail.com to send email
digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server

for help persuading php into using that free service see here: 
http://php.net/manual/en/mail.configuration.php


/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

php/apache/nginx/mysql/memcache/ffmpeg           __
the list is exhaustive depending            ,-~¨^  ^¨-,           _,
onwhat you're doing. downloading           /          / ;^-._...,¨/
and maintaining it all is amajor          /          / /         /
pain in the ass. luckily     *nix        /          / /         /
folk have wizards working for them.     /          / /         /
to keep things manageable. with all    /,.-:''-,_ / /         /
dependencies in check. well fscking    _,.-:--._ ^ ^:-._ __../
guess what. windows does too..       /^         / /¨:.._¨__.;
                                    /          / /      ^  /
 https://chocolatey.org/           /          / /         /
                                  /          / /         /
  ----apt-get for windows woo    /_,.--:^-._/ /         /
                                 ^            ^¨¨-.___.:^

/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
     ____________________________________________________________
    /\                                                          \  
    \_|  GodMode.                                                |
      |                                                          |
      |  Create a folder on your desktop and name it             |
      |   God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}        |
      |    Now you dont have to guess where configs are anything |
      |  ________________________________________________________|_
      \_/_________________________________________________________/

/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

                   G G G G G G G G G G G G     G G G G G G
                   0 0 0 0 0 0 0 0 0 0 1 1     1 1 1 1 1 1
                   0 1 2 3 4 5 6 7 8 9 0 1     2 3 4 5 6 7
 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |  |
 ------------------------------------------------------------
--|                                                          |--
--| pure windows ports for many common proven nix utils      |--
--| thats right DR. CLAW.. >>> NO CYGWIN REQUIRED            |--
--| http://sourceforge.net/projects/unxutils/                |--
--|                                                          |--
--| -!-!!-----------------------------------------------     |-- G18
--|                                                          |-- G19
--| its 2016 (almost) yep, cmd.exe is a still a total P.O.S  |-- G20
--| therefore THERE WAS RISEN Console2:                      |-- G21
--| http://sourceforge.net/projects/console/                 |-- G22
--|                                                          |-- G23
--| --------!-!!----------------------------------------     |--
--|                                                          |--
--| POWERSHELL                                               |--
--| technet.microsoft.com/en-us/library/hh847837.aspx        |--
--|                                                          |--
 ------------------------------------------------------------
 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |  |
 ^

=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=

__SYMBOLIC LINKING____
mklink /prefix link_path file/folder_path

  /D - creates a soft symbolic link, which is similar
       to a standard folder or file shortcut in Windows. 
       This is the default option, and mklink will use it 
       if you do not enter a prefix.
  /H - creates a hard link to a file
  /J - creates a hard link to a directory or folder

=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=

_ALIASES____
aliases work in windows too so say NEIN to typing 
just about everything and create your own key commands to
aimlessly launch minesweeper at will
"Set-Alias"


=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=


_HOST FILE____
Your hosts file will most likely be at this path:
c:\windows\system32\drivers\etc\hosts
--open as Administrator to save changes


=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=


_NGINX on WINDOWS____
this should be no surprise but so many people lose 
their joker inspired minds trying to figure out paths
and errors setting up nginx on windows.

heres what i recommend based on my success 

when setting the root for vhost or whatever paths look
like this:
          
          root   "C:\var\www\santasworkshop.gov";

which i simply mklink /D to its physical path <<----------------.
                                                                |
          "C:\Users\CRAZEDSANTA\Code\sites\santasworksop.gov"   |
                                                                |
I set correct permissions on C:\var\www\ so nginx has           |
recursively access to do its job. this way im not               |
settings permissions for every new project i just have          |
to link it properly --------------------------------------------'


=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=


SUPER NEATO TIME SAVING THING
-----------------------------
PsGet provides a super easy way to install PowerShell 
modules that extend the basic functionality of the shell, 
and provide other useful libraries. To install PsGet
from a powershell thusly: 

(new-object Net.WebClient).
  DownloadString("http://psget.net/GetPsGet.ps1") | iex

Once PsGet is wrangled into place check out posh-git 
and posh-npm TAB COMPLETION ADDED TO GIT and NPM 

                                                     *KABLAMMMO* 

=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=




On Wednesday, December 9, 2015 at 1:38:14 PM UTC-8, James Harris wrote:
> Any suggestions for a good way to set up a PHP development environment 
> on a single machine (in this case, a Windows laptop)?
> 
> 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?
> 
> James

[toc] | [prev] | [next] | [standalone]


#15983

Fromimbibed <jonathan.dryhurst@gmail.com>
Date2015-12-25 06:12 -0800
Message-ID<627d6df9-67dd-4efe-ab1b-332222965f13@googlegroups.com>
In reply to#15918
humor me. its christmas, im over-cheered, and bored out of my
skull. these things should make you a better developer using the
windows environment... just tricks i've learned. *hic

                  ----><><><><><><><><><><----

_OUTBOUND MAIL__
use googles free smtp.gmail.com to send email
digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server

for help persuading php into using that free service see here: 
http://php.net/manual/en/mail.configuration.php


/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

php/apache/nginx/mysql/memcache/ffmpeg           __
the list is exhaustive depending            ,-~¨^  ^¨-,           _,
onwhat you're doing. downloading           /          / ;^-._...,¨/
and maintaining it all is amajor          /          / /         /
pain in the ass. luckily     *nix        /          / /         /
folk have wizards working for them.     /          / /         /
to keep things manageable. with all    /,.-:''-,_ / /         /
dependencies in check. well fscking    _,.-:--._ ^ ^:-._ __../
guess what. windows does too..       /^         / /¨:.._¨__.;
                                    /          / /      ^  /
 https://chocolatey.org/           /          / /         /
                                  /          / /         /
  ----apt-get for windows woo    /_,.--:^-._/ /         /
                                 ^            ^¨¨-.___.:^

/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
     ____________________________________________________________
    /\                                                          \  
    \_|  GodMode.                                                |
      |                                                          |
      |  Create a folder on your desktop and name it             |
      |   God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}        |
      |    Now you dont have to guess where configs are anything |
      |  ________________________________________________________|_
      \_/_________________________________________________________/

/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

                   G G G G G G G G G G G G     G G G G G G
                   0 0 0 0 0 0 0 0 0 0 1 1     1 1 1 1 1 1
                   0 1 2 3 4 5 6 7 8 9 0 1     2 3 4 5 6 7
 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |  |
 ------------------------------------------------------------
--|                                                          |--
--| pure windows ports for many common proven nix utils      |--
--| thats right DR. CLAW.. >>> NO CYGWIN REQUIRED            |--
--| http://sourceforge.net/projects/unxutils/                |--
--|                                                          |--
--| -!-!!-----------------------------------------------     |-- G18
--|                                                          |-- G19
--| its 2016 (almost) yep, cmd.exe is a still a total P.O.S  |-- G20
--| therefore THERE WAS RISEN Console2:                      |-- G21
--| http://sourceforge.net/projects/console/                 |-- G22
--|                                                          |-- G23
--| --------!-!!----------------------------------------     |--
--|                                                          |--
--| POWERSHELL                                               |--
--| technet.microsoft.com/en-us/library/hh847837.aspx        |--
--|                                                          |--
 ------------------------------------------------------------
 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |  |
 ^

=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=

__SYMBOLIC LINKING____
mklink /prefix link_path file/folder_path

  /D - creates a soft symbolic link, which is similar
       to a standard folder or file shortcut in Windows. 
       This is the default option, and mklink will use it 
       if you do not enter a prefix.
  /H - creates a hard link to a file
  /J - creates a hard link to a directory or folder

=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=

_ALIASES____
aliases work in windows too so say NEIN to typing 
just about everything and create your own key commands to
aimlessly launch minesweeper at will
"Set-Alias"


=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=


_HOST FILE____
Your hosts file will most likely be at this path:
c:\windows\system32\drivers\etc\hosts
--open as Administrator to save changes


=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=


_NGINX on WINDOWS____
this should be no surprise but so many people lose 
their joker inspired minds trying to figure out paths
and errors setting up nginx on windows.

heres what i recommend based on my success 

when setting the root for vhost or whatever paths look
like this:
          
          root   "C:\var\www\santasworkshop.gov";

which i simply mklink /D to its physical path <<----------------.
                                                                |
          "C:\Users\CRAZEDSANTA\Code\sites\santasworksop.gov"   |
                                                                |
I set correct permissions on C:\var\www\ so nginx has           |
recursively access to do its job. this way im not               |
settings permissions for every new project i just have          |
to link it properly --------------------------------------------'


=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=


SUPER NEATO TIME SAVING THING
-----------------------------
PsGet provides a super easy way to install PowerShell 
modules that extend the basic functionality of the shell, 
and provide other useful libraries. To install PsGet
from a powershell thusly: 

(new-object Net.WebClient).
  DownloadString("http://psget.net/GetPsGet.ps1") | iex

Once PsGet is wrangled into place check out posh-git 
and posh-npm TAB COMPLETION ADDED TO GIT and NPM 

                                                     *KABLAMMMO* 

=^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=





---

On Wednesday, December 9, 2015 at 1:38:14 PM UTC-8, James Harris wrote:
> Any suggestions for a good way to set up a PHP development environment 
> on a single machine (in this case, a Windows laptop)?
> 
> 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?
> 
> James

[toc] | [prev] | [next] | [standalone]


#15984

Fromimbibed <jonathan.dryhurst@gmail.com>
Date2015-12-25 06:31 -0800
Message-ID<9bc3d1f5-1574-41a9-8e6e-0602fb3bc8d7@googlegroups.com>
In reply to#15918
HI JAMES!!! HAPPY HOLIDAYS FROM LONG BEACH, CA

Here are some things I've learned developing on windows. 

//----------------------------------------------------------------->
_OUTBOUND MAIL______________________________________________________
use googles free smtp.gmail.com to send email
digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server

for help persuading php into using that free service see here: 
http://php.net/manual/en/mail.configuration.php

//----------------------------------------------------------------->
__YOUR STACK NEEDS INSTALLING_______________________________________

    >> FORGET ABOUT XAMPP & WAMP THESE TOOLS ARE NONSENSE <<
          >> SHIT IS FOR PUSSIES <<

the list is exhaustive depending on what you're doing. downloading 
and maintaining it all is a major pain in the ass. luckily  *nix
folk have wizards working for them. to keep things manageable. with 
all dependencies in check. well fscking guess what. windows 
does too

https://chocolatey.org/      
-apt-get for windows woo 
                              
//----------------------------------------------------------------->
__GOD MOD___________________________________________________________
probably totally unnecessarily at this stage but... 
its useful                            
                                                    
Create a folder on your desktop and name it            
God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}       
Now you dont have to guess where configs are anything

//----------------------------------------------------------------->
__SURVIVING WITHOUT COMMON UNIX UTILITIES___________________________
pure windows ports for many common proven nix utils      
thats right DR. CLAW.. >>> NO CYGWIN REQUIRED            
http://sourceforge.net/projects/unxutils/                
                                          
//----------------------------------------------------------------->
__CMD.EXE IS ABSOLUTELY HORSE CRAP!!!!______________________________
its 2016 (almost) yep, cmd.exe is a still a total P.O.S  
therefore THERE WAS RISEN Console2:                      
http://sourceforge.net/projects/console/                 
                                                         
//----------------------------------------------------------------->
__POWERSHELL________________________________________________________
technet.microsoft.com/en-us/library/hh847837.aspx        
                                                         
//----------------------------------------------------------------->
__SYMBOLIC LINKING__________________________________________________
mklink /prefix link_path file/folder_path

  /D - creates a soft symbolic link, which is similar
       to a standard folder or file shortcut in Windows. 
       This is the default option, and mklink will use it 
       if you do not enter a prefix.
  /H - creates a hard link to a file
  /J - creates a hard link to a directory or folder

//----------------------------------------------------------------->
_ALIASES____________________________________________________________
aliases work in windows too so say NEIN to typing 
just about everything and create your own key commands to
aimlessly launch minesweeper at will
"Set-Alias"

//----------------------------------------------------------------->
_HOST FILE__________________________________________________________
Your hosts file will most likely be at this path:
c:\windows\system32\drivers\etc\hosts
--open as Administrator to save changes

//----------------------------------------------------------------->
_NGINX on WINDOWS___________________________________________________
this should be no surprise but so many people lose 
their joker inspired minds trying to figure out paths
and errors setting up nginx on windows.

heres what i recommend based on my success 

when setting the root for vhost or whatever paths look
like this:
          
          root   "C:\var\www\santasworkshop.gov";

which i simply mklink /D to its physical path
                                                                
          "C:\Users\CRAZEDSANTA\Code\sites\santasworksop.gov"   
                                                                
I set correct permissions on C:\var\www\ so nginx has           
recursively access to do its job. this way im not               
settings permissions for every new project i just have          
to link it properly

//----------------------------------------------------------------->
SUPER NEATO TIME SAVING THING
--------------------------------------------------------------------
PsGet provides a super easy way to install PowerShell 
modules that extend the basic functionality of the shell, 
and provide other useful libraries. To install PsGet
from a powershell thusly: 

(new-object Net.WebClient).
  DownloadString("http://psget.net/GetPsGet.ps1") | iex

Once PsGet is wrangled into place check out posh-git 
and posh-npm TAB COMPLETION ADDED TO GIT and NPM 

//----------------------------------------------------------------->
  =^..^=   =^..^=   =^..^=    =^..^=    =^..^=    =^..^=    =^..^=
//----------------------------------------------------------------->




On Wednesday, December 9, 2015 at 1:38:14 PM UTC-8, James Harris wrote:
> Any suggestions for a good way to set up a PHP development environment 
> on a single machine (in this case, a Windows laptop)?
> 
> 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?
> 
> James

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web