OK, here we go again: installing using composer? |
(09-04-2020, 08:23 AM)InsiteFX Wrote: I'm on Windows 10 Pro x64 and I installed Composer global works like a charm here.there are quirks with Linux; i have no problem with composer but since we mentioned it and the O.P is obviously on linux here is another quirk : You are developing a CI4 " appstarter" website in apache of your Linux box so your path to web is say /var/www/htdocs/CI4.0.4 "you" as in me or anyone like's appstarter since the directory system is neat and when you want anything such as bootstrap IV using composer eg : composer require twbs/bootstrap it gets put in "vendor" here is the problem /var/www/htdocs is not accessible to a "normal" user because its considered part of the Linux system path (just like /opt is for xampp) you have a composer.json file in /var/www/htdocs/CI4.0.4 can't run it as normal user and its not a good idea to run as "root" since strange things can happen and you could mess up your system. The answer is to look at who owns "apache" in terms of permissions and add yourself to the group of who owns "apache" and then Code: # chmod 775 /var/www/htdocs/CI4.0.4 -R that will allow you to run composer in /var/www/htdocs/CI4.0.4 with normal user permissions( and have not found it messes up runing apche for dev so far. by Code: cd /var/www/htdocs/CI4.0.4 |
Messages In This Thread |
OK, here we go again: installing using composer? - by blaasvaer - 09-03-2020, 02:07 AM
RE: OK, here we go again: installing using composer? - by InsiteFX - 09-03-2020, 04:25 AM
RE: OK, here we go again: installing using composer? - by blaasvaer - 09-03-2020, 04:28 AM
RE: OK, here we go again: installing using composer? - by captain-sensible - 09-04-2020, 06:08 AM
RE: OK, here we go again: installing using composer? - by InsiteFX - 09-04-2020, 08:23 AM
RE: OK, here we go again: installing using composer? - by captain-sensible - 09-05-2020, 09:08 AM
|