![]() What to run in the command line is in the AskUbuntu link, so I won't bother with it here. in a sense it's just not smart enough to know that my project isn't actually dependent on the global PHP version.ĪskUbuntu to the rescue! The fix is to get a symlink (an alias) pointing one version of PHP to the other. If, at this point, I go run a composer require on my D9 project, Composer will very quickly, in non-ambiguous terms, let me know that the version of PHP I'm running globally is incompatible with whatever I'm doing in D9. So, let's say that at this point I have both XAMPP and Composer installed in my new VM. This is a problem: I'm running 7.2 globally and D9 requires 7.3 Why wouldn't it? Unless you tell it that your project is dependent on the PHP libraries unique to XAMPP, it has every reason to believe you're using the global PHP version (7.2 in my case). Rather, it's about being able to adapt-to roll with the punches, as it were.Īnother quick note: Composer is generally installed globally it's gonna leverage your global PHP version, and not the version you have local to /opt/lampp/bin. Web development isn't really about *mastering* a given toolset toolsets will change. If you ask me, the removal of pm-updatestatus from Drush 10 is a crime against humanity. I resent Drupal for increasingly moving the maintenance of sites into Composer. In an attempt at transparency: I'm a drush kind of guy. Quick note: the global installation of PHP on Ubuntu is found at /usr/local/bin/php (if in doubt, verify your global PHP location with $which php) the local installation of PHP for XAMPP is found at /opt/lampp/bin/php Getting Composer to Play Nice with XAMPP ![]() Drupal 9 requires PHP7.3 or later, but since XAMPP can be downloaded with it's own version of PHP, it shouldn't matter that the global installation of PHP on the OS is 7.2. Take note: Ubuntu 18 comes preloaded with a global installation of PHP7.2įastest way to get a LAMP stack up and running on Linux (that I know of) is with XAMPP. ![]() As an added bonus, I can do a Ubuntu installation and run it from my Xubuntu host: nice opportunity to look at the two OS'es side by side (diagnosis so far: Xubuntu for the win). Step 1 - let's not muddy the water in my Drupal 8 workflow much better to get a VM up and running, branch out, and keep my local machine safe and sound in the meantime. Time to start testing the water for a Drupal 9 upgrade. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |