Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #10681
| From | Fiver <numeralfive@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Learing PHP, Javascript, and Python on the Cheap, Help! |
| Date | 2013-08-31 18:36 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <kvt637$3b9$1@dont-email.me> (permalink) |
| References | <cc0fae27-a20e-4f83-a5c8-1b5ad08a7c8b@googlegroups.com> |
On 2013-08-31 17:52, irishhacker@gmail.com wrote: > I want to practice Javascript/HTML/CSS and the server side (PHP & > Python) on the cheap, which means I want both the client and the server > to be on the same hard drive. (My setup is Ubuntu Linux). I'm not sure > what is already installed (Python and Perl was installed with the Ubuntu.) > How do people usually do that? And once they do that, later on, how > difficult is it to transition where the server code (PHP/Python) is on a > remote server? I'm hoping that the transition from hard drive to remote > server would involve 99.9% of the PHP/Python code still working. It's not difficult to set up at all. Everything you need is either already installed or can be easily installed from the repository. Chances are that you already have a local Apache web server installed, maybe PHP, too. If not, install the libapache2-mod-php5 package with your package manager of choice (I think the default on Ubuntu is Synaptic; on the terminal you can use aptitude or apt-get). This package and its dependencies will install and set up everything you need to get started. Just point your browser at http://localhost/ and code away. The default document directory is /var/www. Transitioning to a remote server: that's not enough information. Will the remote server use the same OS? The web server (Apache)? The same PHP version and configuration? Will there be a database? Deploying a local project remotely can be as simple as copying the files over, or you may have to make some adjustments and maybe use (or write) a custom deployment method. The more complex a project is, the more effort will have to go into deployment and dependency management, but if you're just starting out, I wouldn't worry too much about it. When you're familiar with the environment, there are two more non-essential things you should set up before you start a project: version control (Subversion, Git, etc) and a separate local Apache virtual host for the project you're planning to deploy remotely. This will make managing multiple installations easier in the long run. > Obviously, that setup makes it difficult to test for Internet > Explorer special annoyances and for high-level performance testing, and > I'll live with that. There are ways around that. You can test from another computer, or use something like BrowserStack, or run Windows locally in a virtual machine (install the "virtualbox" package). Microsoft offers various free virtualization guest OSs for testing purposes, see <http://www.modern.ie/en-US/virtualization-tools>. regards, 5er
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Learing PHP, Javascript, and Python on the Cheap, Help! irishhacker@gmail.com - 2013-08-31 08:52 -0700
Re: Learing PHP, Javascript, and Python on the Cheap, Help! Fiver <numeralfive@gmail.com> - 2013-08-31 18:36 +0200
Re: Learing PHP, Javascript, and Python on the Cheap, Help! "J.O. Aho" <user@example.net> - 2013-08-31 18:37 +0200
Re: Learing PHP, Javascript, and Python on the Cheap, Help! Twayne <nobody@spamcop.net> - 2013-08-31 14:57 -0400
Re: Learing PHP, Javascript, and Python on the Cheap, Help! Jimmy Brubaker <jimb21@owandslow.com> - 2013-09-18 18:46 +0000
Re: Learing PHP, Javascript, and Python on the Cheap, Help! The Natural Philosopher <tnp@invalid.invalid> - 2013-08-31 20:01 +0100
Re: Learing PHP, Javascript, and Python on the Cheap, Help! The Natural Philosopher <tnp@invalid.invalid> - 2013-08-31 19:57 +0100
Re: Learing PHP, Javascript, and Python on the Cheap, Help! Twayne <nobody@spamcop.net> - 2013-08-31 15:31 -0400
Re: Learing PHP, Javascript, and Python on the Cheap, Help! Jerry Stuckle <jstucklex@attglobal.net> - 2013-08-31 16:21 -0400
csiph-web