PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, January 18, 2022

[FIXED] installation of composer on shared hosting

 January 18, 2022     composer-php, laravel-5.2, shared-hosting     No comments   

Issue

I have installed composer on shared hosting. It's successfully installed on my shared hosting. I have followed this tutorial for installation.

Link :- https://www.globo.tech/learning-center/laravel-under-cpanel/

Screenshot after installation.

enter image description here

I have used below command and it's working fine for me.

php composer.phar

But when I tried to install laravel in my public_html directory using below command,

composer create-project --prefer-dist laravel/laravel borrowpet "5.2.*"

It's not working. It shows composer command not please find below screenshot for error.

enter image description here

Please let me know what I'm missing while installing composer.


Solution

Use the command php composer.phar create-project --prefer-dist laravel/laravel borrowpet "5.2.*" and make sure you execute the command from the directory where compser.phar exists.



Answered By - Shakti Phartiyal
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing