No Nette experience, sorry
A local florist website that no longer exists
It was a good bit of experience but it contributed nothing to my overall knowledge - all bad practices, and this was even before my “Macromedia Flash” days
I would recommend against outsourcing. You’re both denying yourself valuable knowledge and probably getting a bad service. Outsourcing generally isn’t worth it, long-term.
Try out Homestead Improved for playing with a Linux CLI locally - you can easily destroy it and make a new one : ) It’ll be great for practice!
For your next OS, I would recommend Ubuntu just because more people use it and will be able to provide the help you need. Also, Homestead Improved is running Ubuntu, so your production server will automatically be close to your development server - dev/prod parity is very important.
Re: git, yes, it can be done from Bitbucket too - any service that supports git will work!
As for shell scripting tutorials, I’m afraid we don’t have many of those - it’s a whole environment and we can’t really cover it well.
I have worked through your book and found it very helpful. Our project is on CakePHP v2 and currently does not support PHP7.
Is there an easy way (like adjusting the composer.json) to follow your process and limit the PHP version to 5.x?
Tough one. I’m not really a reader of programming books, sorry to say : (
We have a new version of Jump Start PHP coming out this year, but until then, I would recommend you rather focus on experimenting and learning by doing. You’ll make just enough mistakes to recognize them once you do get your hands on the next version of the book. If you really want to read, though, I hear this is pretty good.
Well that’s a wrap!
Wow - thank you all for such an engaging Q&A!! We had so many question and really interesting conversations pop up. Now, just because this is the end of the Q&A, it doesn’t mean the conversations have to end there. I will be leaving this forum thread open for you to continue the chat, it’s just that @swader may not be there to respond.
Bruno, thank you for spending time with us on the forums and answering all our questions about PHP, PHP environments and standing treadmill desks!
Hey Brad,
nice to see you here, thanks for the question! : )
I’m afraid PHP is woefully inadequate for the task. Its single-threaded synchronous mutable nature doesn’t lend itself well to data mining, and it’s incredibly difficult to set it up so that it works even remotely as well as any other data mining oriented language does out of the box. That’s why I took up R, because it just blows PHP out of the water, functionality and speed-wise, even though it is rather stupidly designed, in terms of API and function names.
But for PHP, there are some approaches… I have only used this a little bit, and wasn’t thrilled. If you have any good ones, I’d be interested in learning about them!
Call it a hunch. I keep looking at modern JavaScript and see all these young devs charmed by “new” approaches like “server side rendering” or “classes” or “web components” - all things we’ve had for a decade in both PHP and in previous languages like ActionScript3 (and JS is starting to look dangerously like AS3 now - take it from an AS3 veteran ). Basically, I see everything going full circle and can’t help but wonder when it will implode - we’re going back to the world of server side renders, to the world of pjax (something we used a decade ago smoothly), to the world of simple tools and not having to install 10 of them to just get jQuery to run (as evident by the recent destruction of Gulp, Grunt and Bower by Npm scripts). So yeah… call it a hunch : )
Depends on how heavy your apps are, but generally you should be able to run everything simultaneously as long as there are no port clashes.
Thanks Bruno.
I havent found much for PHP either. I used that as an excuse to dabble in R and finally learn some Python.
VPS security Updates via CLI - sometimes I get notified from Registrar, but if none notification, When these updates should be done?
Every day. The more you update, the less chance there is of something going wrong because updates will be smaller.
This is why it’s important to have a staging (or up to date development) server on which you can first test these changes, then apply them to the production server.
Bruno, thank you for spending time with us
Thanks a lot @swader
Thank you Angela for hosting this, and thanks to everyone who showed up and asked something! It was fun!
Is there an easy way (like adjusting the composer.json) to follow your process and limit the PHP version to 5.x?
Hi @safeuser1,
thanks for the question!
I’m not sure I understand what you want to limit. If you want to declare that an app is 5.x only, then yes, Composer offers PHP version constraints - see here.
But it sounds like you want to keep the server at a low PHP level, too? In that case, Homestead Improved won’t work because it’s on 7 by default. However, for using 5.6 you could use something like PuPHPet or Phansible - those will let you set up VMs with PHP 5.6. Then just copy the server configuration from inside those VMs and use it on the DigitalOcean droplet from the book instead of the configuration from Homestead Improved.
Let me know if I understood your problem right and if there’s anything unclear : )
Many thanks for a reply after the Q&A ended.
I’m working in Windows. I looked at PuPHPet for a while and I thought it would take me a long time to get it working, because there are quite a few settings and adjustments which I’ve not done before; I wasn’t sure about Phansible because it only had a work around for Windows, running in the virtual machine.
An idot’s guide for setting up a machine similar to Homestead Improved from either of these or Vaprobash, so that I could amend it easily to give me a PHP 5 machine would be really useful for me.
We do have two work-arounds for my two PCs: on one, I started your course before you updated Homestead Improved to PHP7; on the other, a friend used the Linux command line to remove PHP7, and install PHP5.6 - and I won’t run an update to get a newer version of Homestead Improved which I think would overwrite what we have. The only trouble is that they are more complicated to replicate.
Since your friend already took care of this, I think the best and simplest approach would be to modify Homestead Improved - have him give you the process, and just execute it on every new Homestead you create (inside the VM, after the vagrant ssh
command).
Then, it’s fairly easy to repackage this into a new box you can use from that moment on to get a permanent PHP5-homestead-improved: https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one
Many thanks. You anticipated something else which was on my mind: how to repackage my PHP5-homestead-improved into a new box, so that I have a permanent version of it.
I also saw box.scotch.io, the Scotch box, which is a simple virtual machine set up as well; it’s still on PHP5, so I can see various options.
I really appreciate this whole technique of setting up PHP environments, and I will learn more as I experiment. Thank you again.
This topic is now a banner. It will appear at the top of every page until it is dismissed by the user.
This topic is no longer a banner. It will no longer appear at the top of every page.
Damn, tell me how you really feel. I’m in an environment where most people are riding node hard. They are re-engineering the projrct I’m working on in JavaScript client and server side all around. I agree with you. I think node is a complete fad and will even out like Ruby in a few years but php will always be at the forefront of web dev. It makes me sick this whole node thing.