Re: [Ldsoss] PHP remote development environment
Tom, You might like to do your development/testing online in a separate directory (or virtual host, if you can). This is mostly for after you've released something that is being used. It's a safer way to develop - you won't have to worry what you break when you save a file that might contain a syntax error. Then, get into the habit of copying data into the live directory from your development/testing area(s), or use CVS for revision control. I do a lot of development this way. Because it's online, you can jump from computer to computer. Also, the development/testing enviroment(s) are so similar to the live environment that you won't have to worry about compatibility issues between them. Good luck! Mary On 4/30/07, Thomas Haws [EMAIL PROTECTED] wrote: I guess I neglected to say I am still Windows-bound. That's still no excuse for not setting up a local development environment, but the fact I jump from computer to computer is a good excuse. Here's what I think I will be happy with for the moment: 1. Install WinSCP and Notepad++ (my current editor of choice) on each computer. Edit files remotely almost as though they were local. WinSCP allows me to double-click on remote file(s) to edit it/them, then save and test without closing my editor. 2. Make a pseudo-menu cheat sheet for vi survival that looks and thinks like a Windows/Mac application. Put it on the web so I can always access it in the rare case I need to vi. Tom ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss -- Mary Shaw Internet Consultant http://www.stitchsoft.com ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
Well, as I mentioned on this list, I'm hiring an on-call professional consultant to mentor and assist with these things. Perhaps I could have him/her get me set up with SVN. My application is already being used by the executives at my non-profit, so breaking it is not a happy thought. I will work on getting a dev directory and maybe a dev database set up. Thanks for the great reminders and suggestions! Tom On 5/1/07, Bryan Murdock [EMAIL PROTECTED] wrote: On 5/1/07, Mary Shaw [EMAIL PROTECTED] wrote: Tom, You might like to do your development/testing online in a separate directory (or virtual host, if you can). This is mostly for after you've released something that is being used. It's a safer way to develop - you won't have to worry what you break when you save a file that might contain a syntax error. Then, get into the habit of copying data into the live directory from your development/testing area(s), or use CVS for revision control. I would say _and_ use CVS, not _or_. If you aren't using revision control already, you really should, you'll love it. Actually, I wouldn't say use CVS, I'd say use SVN (Subversion), or even better, one of the new distributed revision control systems. Bazaar (bzr) works best on windoze right now, I think. They are a lot easier to get up and running with. An example with bzr (it's a command-line thing only right now) cd c:\path\to\project bzr init bzr add bzr commit -m initial import Now you are ready to make changes to your code. bzr diff will show you what you've changed. bzr commit will commit the changes to the revision history. If you really mess up, you can go back and get previous revisions. Bryan ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
Here is a lot of ifs, but: 1. If your remote server is running Linux and 2. If SSH is configured to forward X commands (add XForwarding yes in the sshd_config file found usually in /etc/ssh folder) 3. If you are running Linux on your development machine or you want to run an X emulator on Windows (check out http://x.cygwin.com) then you can edit the files remotely by sshing into the linux box and running any editor that is on the server such as kate, gedit, etc. Also, if you want a complete PHP development environment, the Zend Studio (not free) is decent. You put this on your local machine and it includes the PHP interpreter. This in combination with MySQL will give you a lot of what you need for local development. It runs on Windows or Linux. Tom On Tue, Apr 24, 2007 at 9:59 PM, in message [EMAIL PROTECTED], Shawn Willden [EMAIL PROTECTED] wrote: On Tuesday 24 April 2007 07:32:33 pm Thomas Haws wrote: 2. Install a local development environment. I don't know what this would involve, but I like to be able to access my development environment from anywhere. Do this one. Not only will it make your development easier, but it's the only way to be sure you're not breaking your running, visible-to-the-world application constantly. The ideal would be to install roughly the same sort of Linux system as is on your remote server, but you can probaby get close enough without that. For example, if your preferred OS is Windows, install and configure MySQL, Apache and PHP on Windows and do your development there, using whatever editor you're comfortable with. As long as you're careful not to write anything that's blatantly Windows-centric, you should be able to push your changes to the Linux box without trouble. You might want to get a Linux box, or at least run Linux in a VM, for a quick validation test prior to pushing the code to your production system. Shawn. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss -- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
If you still want to be able to do your development work from anywhere, you might consider creating a dev environment on your prod server. I have done this and it works well for me. I copied all my website files to another folder at dev.websiteurl.com. (You can hide it from search engines and curious surfers using htaccess.) Then I made a copy of my database and changed the configuration file at the dev site to point to my new dev database. I use an rsync script to push my changes to the prod site when they're ready. I just exclude my config file and the image folders in my photo gallery. I use vi to make my edits over ssh, but you could use some of the remote tools suggeted by others. Good luck! - Craig On 4/24/07, Thomas Haws [EMAIL PROTECTED] wrote: I need to get more serious about my PHP (LAMP) development. I have been developing remotely for my web sites (including the Care For Life charity) via the CPanel web editor using the Mozex Firefox extension to send textarea to my local Windows editor. The debug/test cycle is agonizing and dangerous. I think I probably inadvertently closed a browser tab the other day and lost plenty of effort. So, I wonder if this group has wisdom regarding the direction for me to go? Here are some possibilities I have considered: 1. Use vi in the Linux shell. Do I have to? My dad is pushing me that way, but he says it takes months to learn vi right. 2. Install a local development environment. I don't know what this would involve, but I like to be able to access my development environment from anywhere. 3. Some other (???) linux shell editor or environment. Thanks beforehand for your help. -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
vi, Zend, XAMPP, nano, and rsync--Yikes! I really need to do this right. I'm going to think about all this and bring up some follow-up questions later. Thanks. Tom -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
Tom, There is also WAMPServer, which is free and will install everything you need on a Windows machine. It comes with Apache, MySQL, PHP 4 and PHP 5. It also has phpMyAdmin and an SQLite admin interface. It has been really nice for me to be able to develop sites on my laptop, no matter where I am, and then transfer them up to the server when I was finished. But, as Shawn said, don't write things Windows-centric (usually filesystem paths). But, PHP is generally forgiving in that area. Sean On 4/25/07, Thomas Haws [EMAIL PROTECTED] wrote: vi, Zend, XAMPP, nano, and rsync--Yikes! I really need to do this right. I'm going to think about all this and bring up some follow-up questions later. Thanks. Tom -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss -- Sean Gates 503-343-4035 || 503-803-7952 (cell) ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
On Wednesday 25 April 2007 07:15:19 Thomas Haws wrote: vi, Zend, XAMPP, nano, and rsync--Yikes! I really need to do this right. I'm going to think about all this and bring up some follow-up questions later. Thanks. Tom One thing I really find helpful working remotely is Xnest. If you setup your XDMCP to respond to remote X terminals it is very handy to connect remotely via ssh and run the command Xnest :30 -query 127.0.0.1 Xnest lets you run the full gnome/kde/ice/X desktop remotely. ssh keeps the datastream encrypted so the traffic is secure. If you don't know how to setup your X let me know. I'll setup a step by step instructions and post them. Working remotely can be almost the same as working local. good luck oscar ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
- Original message - One thing I really find helpful working remotely is Xnest. If you ... I would be interested in seeing your full setup for xnest. Xnest is something I have never used. Thanks Alex On 4/25/07, Oscar Schultz [EMAIL PROTECTED] wrote: On Wednesday 25 April 2007 07:15:19 Thomas Haws wrote: vi, Zend, XAMPP, nano, and rsync--Yikes! I really need to do this right. I'm going to think about all this and bring up some follow-up questions later. Thanks. Tom One thing I really find helpful working remotely is Xnest. If you setup your XDMCP to respond to remote X terminals it is very handy to connect remotely via ssh and run the command Xnest :30 -query 127.0.0.1 Xnest lets you run the full gnome/kde/ice/X desktop remotely. ssh keeps the datastream encrypted so the traffic is secure. If you don't know how to setup your X let me know. I'll setup a step by step instructions and post them. Working remotely can be almost the same as working local. good luck oscar ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
[Ldsoss] PHP remote development environment
I need to get more serious about my PHP (LAMP) development. I have been developing remotely for my web sites (including the Care For Life charity) via the CPanel web editor using the Mozex Firefox extension to send textarea to my local Windows editor. The debug/test cycle is agonizing and dangerous. I think I probably inadvertently closed a browser tab the other day and lost plenty of effort. So, I wonder if this group has wisdom regarding the direction for me to go? Here are some possibilities I have considered: 1. Use vi in the Linux shell. Do I have to? My dad is pushing me that way, but he says it takes months to learn vi right. 2. Install a local development environment. I don't know what this would involve, but I like to be able to access my development environment from anywhere. 3. Some other (???) linux shell editor or environment. Thanks beforehand for your help. -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
RE: [Ldsoss] PHP remote development environment
Install LAMP locally and then use rsync to push your changes ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Haws Sent: Tuesday, April 24, 2007 7:33 PM To: LDS Open Source Software Subject: [Ldsoss] PHP remote development environment I need to get more serious about my PHP (LAMP) development. I have been developing remotely for my web sites (including the Care For Life charity) via the CPanel web editor using the Mozex Firefox extension to send textarea to my local Windows editor. The debug/test cycle is agonizing and dangerous. I think I probably inadvertently closed a browser tab the other day and lost plenty of effort. So, I wonder if this group has wisdom regarding the direction for me to go? Here are some possibilities I have considered: 1. Use vi in the Linux shell. Do I have to? My dad is pushing me that way, but he says it takes months to learn vi right. 2. Install a local development environment. I don't know what this would involve, but I like to be able to access my development environment from anywhere. 3. Some other (???) linux shell editor or environment. Thanks beforehand for your help. -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss
Re: [Ldsoss] PHP remote development environment
As you can tell with Linux there are several ways to do things. If you want to continue to edit the files on the remote server you might want to see if nano is installed. it's much easier to use than vi and is great for beginners. -Scott On 4/24/07, Manfred Riem [EMAIL PROTECTED] wrote: Install LAMP locally and then use rsync to push your changes ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Haws Sent: Tuesday, April 24, 2007 7:33 PM To: LDS Open Source Software Subject: [Ldsoss] PHP remote development environment I need to get more serious about my PHP (LAMP) development. I have been developing remotely for my web sites (including the Care For Life charity) via the CPanel web editor using the Mozex Firefox extension to send textarea to my local Windows editor. The debug/test cycle is agonizing and dangerous. I think I probably inadvertently closed a browser tab the other day and lost plenty of effort. So, I wonder if this group has wisdom regarding the direction for me to go? Here are some possibilities I have considered: 1. Use vi in the Linux shell. Do I have to? My dad is pushing me that way, but he says it takes months to learn vi right. 2. Install a local development environment. I don't know what this would involve, but I like to be able to access my development environment from anywhere. 3. Some other (???) linux shell editor or environment. Thanks beforehand for your help. -- Tom Haws 480-201-5476 Have a beautiful day. ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss ___ Ldsoss mailing list Ldsoss@lists.ldsoss.org http://lists.ldsoss.org/mailman/listinfo/ldsoss