Permission denied error when create a new laravel project (Ubuntu Lemp stack)How can I resolve “Your requirements could not be resolved to an installable set of packages” error?Nginx no-www to www and www to no-wwwReference - What does this error mean in PHP?nginx on Ubuntu: Permission deniedfile_put_contents(meta/services.json): failed to open stream: Permission deniedHow to fix Error: mkdir(): Permission denied when running composermkdir(): Permission denied LaravelHow to give permission for my Laravel application create subfolders in a directory (Ubuntu)How to create a LEMP stack with docker-compose?Laravel app using Symfony to execute a Python script on LEMP stack - Permission deniedSetting up proper permissions for laravel app in ubuntu

When writing an error prompt, should we end the sentence with a exclamation mark or a dot?

Does there exist a word to express a male who behaves as a female?

Complex sentence - words lacking?

Average spam confidence

After the loss of Challenger, why weren’t Galileo and Ulysses launched by Centaurs on expendable boosters?

Are "living" organ banks practical?

What's the correct term for a waitress in the Middle Ages?

Why is the relationship between frequency and pitch exponential?

Secure offsite backup, even in the case of hacker root access

What can plausibly explain many of my very long and low-tech bridges?

Building a road to escape Earth's gravity by making a pyramid on Antartica

PL/SQL function to receive a number and return its binary format

Why heater blocks on hotends?

Can a user sell my software (MIT license) without modification?

How can drunken, homicidal elves successfully conduct a wild hunt?

When conversion from Integer to Single may lose precision

Can you really not move between grapples/shoves?

Why don't B747s start takeoffs with full throttle?

How can you travel on a trans-Siberian train when it is fully booked?

Was the Tamarian language in "Darmok" inspired by Jack Vance's "The Asutra"?

Etymology of 'calcit(r)are'?

How Can I Tell The Difference Between Unmarked Sugar and Stevia?

Strat tremolo bar has tightening issues

Movie about a boy who was born old and grew young



Permission denied error when create a new laravel project (Ubuntu Lemp stack)


How can I resolve “Your requirements could not be resolved to an installable set of packages” error?Nginx no-www to www and www to no-wwwReference - What does this error mean in PHP?nginx on Ubuntu: Permission deniedfile_put_contents(meta/services.json): failed to open stream: Permission deniedHow to fix Error: mkdir(): Permission denied when running composermkdir(): Permission denied LaravelHow to give permission for my Laravel application create subfolders in a directory (Ubuntu)How to create a LEMP stack with docker-compose?Laravel app using Symfony to execute a Python script on LEMP stack - Permission deniedSetting up proper permissions for laravel app in ubuntu






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















Ubuntu also works with nginx server (Lemp Stack).



I can't create a new laravel project in /var/www folder. I got this error when i want to:



 [ErrorException]
mkdir(): Permission denied


How can i solve this problem ?










share|improve this question






















  • what are the permissions of /var/www and what is the user you're running the script under?

    – Oleksandr Kravchuk
    Mar 24 at 15:39











  • How can i see permission of /var/ww ? Sorry i'm new for ubuntu.

    – dlpnt
    Mar 24 at 15:44

















-1















Ubuntu also works with nginx server (Lemp Stack).



I can't create a new laravel project in /var/www folder. I got this error when i want to:



 [ErrorException]
mkdir(): Permission denied


How can i solve this problem ?










share|improve this question






















  • what are the permissions of /var/www and what is the user you're running the script under?

    – Oleksandr Kravchuk
    Mar 24 at 15:39











  • How can i see permission of /var/ww ? Sorry i'm new for ubuntu.

    – dlpnt
    Mar 24 at 15:44













-1












-1








-1








Ubuntu also works with nginx server (Lemp Stack).



I can't create a new laravel project in /var/www folder. I got this error when i want to:



 [ErrorException]
mkdir(): Permission denied


How can i solve this problem ?










share|improve this question














Ubuntu also works with nginx server (Lemp Stack).



I can't create a new laravel project in /var/www folder. I got this error when i want to:



 [ErrorException]
mkdir(): Permission denied


How can i solve this problem ?







php linux laravel ubuntu nginx






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 24 at 15:35









dlpntdlpnt

245




245












  • what are the permissions of /var/www and what is the user you're running the script under?

    – Oleksandr Kravchuk
    Mar 24 at 15:39











  • How can i see permission of /var/ww ? Sorry i'm new for ubuntu.

    – dlpnt
    Mar 24 at 15:44

















  • what are the permissions of /var/www and what is the user you're running the script under?

    – Oleksandr Kravchuk
    Mar 24 at 15:39











  • How can i see permission of /var/ww ? Sorry i'm new for ubuntu.

    – dlpnt
    Mar 24 at 15:44
















what are the permissions of /var/www and what is the user you're running the script under?

– Oleksandr Kravchuk
Mar 24 at 15:39





what are the permissions of /var/www and what is the user you're running the script under?

– Oleksandr Kravchuk
Mar 24 at 15:39













How can i see permission of /var/ww ? Sorry i'm new for ubuntu.

– dlpnt
Mar 24 at 15:44





How can i see permission of /var/ww ? Sorry i'm new for ubuntu.

– dlpnt
Mar 24 at 15:44












2 Answers
2






active

oldest

votes


















0














Use sudo before your command like
sudo composer create-project --prefer-dist laravel/laravel blog






share|improve this answer























  • It is instaling right now. Thank you.

    – dlpnt
    Mar 24 at 15:48











  • But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

    – dlpnt
    Mar 24 at 15:50











  • You may not have all extensions required by your application kindly show me full error

    – ShuBham GuPta
    Mar 24 at 15:58











  • See here : stackoverflow.com/questions/29318709/…

    – Always Sunny
    Mar 24 at 15:59











  • Here is my errors; postimg.cc/MM62DZMb

    – dlpnt
    Mar 24 at 16:12



















0














Always use the keyword "sudo" while trying to install something or accessing protected files / directories as "sudo" will give you highest credentials for it.






share|improve this answer























  • Thank you for answer.

    – dlpnt
    Mar 24 at 16:59











  • You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

    – Hank Moody
    Mar 24 at 18:31











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325456%2fpermission-denied-error-when-create-a-new-laravel-project-ubuntu-lemp-stack%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Use sudo before your command like
sudo composer create-project --prefer-dist laravel/laravel blog






share|improve this answer























  • It is instaling right now. Thank you.

    – dlpnt
    Mar 24 at 15:48











  • But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

    – dlpnt
    Mar 24 at 15:50











  • You may not have all extensions required by your application kindly show me full error

    – ShuBham GuPta
    Mar 24 at 15:58











  • See here : stackoverflow.com/questions/29318709/…

    – Always Sunny
    Mar 24 at 15:59











  • Here is my errors; postimg.cc/MM62DZMb

    – dlpnt
    Mar 24 at 16:12
















0














Use sudo before your command like
sudo composer create-project --prefer-dist laravel/laravel blog






share|improve this answer























  • It is instaling right now. Thank you.

    – dlpnt
    Mar 24 at 15:48











  • But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

    – dlpnt
    Mar 24 at 15:50











  • You may not have all extensions required by your application kindly show me full error

    – ShuBham GuPta
    Mar 24 at 15:58











  • See here : stackoverflow.com/questions/29318709/…

    – Always Sunny
    Mar 24 at 15:59











  • Here is my errors; postimg.cc/MM62DZMb

    – dlpnt
    Mar 24 at 16:12














0












0








0







Use sudo before your command like
sudo composer create-project --prefer-dist laravel/laravel blog






share|improve this answer













Use sudo before your command like
sudo composer create-project --prefer-dist laravel/laravel blog







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 24 at 15:43









ShuBham GuPtaShuBham GuPta

10413




10413












  • It is instaling right now. Thank you.

    – dlpnt
    Mar 24 at 15:48











  • But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

    – dlpnt
    Mar 24 at 15:50











  • You may not have all extensions required by your application kindly show me full error

    – ShuBham GuPta
    Mar 24 at 15:58











  • See here : stackoverflow.com/questions/29318709/…

    – Always Sunny
    Mar 24 at 15:59











  • Here is my errors; postimg.cc/MM62DZMb

    – dlpnt
    Mar 24 at 16:12


















  • It is instaling right now. Thank you.

    – dlpnt
    Mar 24 at 15:48











  • But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

    – dlpnt
    Mar 24 at 15:50











  • You may not have all extensions required by your application kindly show me full error

    – ShuBham GuPta
    Mar 24 at 15:58











  • See here : stackoverflow.com/questions/29318709/…

    – Always Sunny
    Mar 24 at 15:59











  • Here is my errors; postimg.cc/MM62DZMb

    – dlpnt
    Mar 24 at 16:12

















It is instaling right now. Thank you.

– dlpnt
Mar 24 at 15:48





It is instaling right now. Thank you.

– dlpnt
Mar 24 at 15:48













But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

– dlpnt
Mar 24 at 15:50





But i got this error "Your requirements could not be resolved to an installable set of packages". Have lines of phpunit codes.

– dlpnt
Mar 24 at 15:50













You may not have all extensions required by your application kindly show me full error

– ShuBham GuPta
Mar 24 at 15:58





You may not have all extensions required by your application kindly show me full error

– ShuBham GuPta
Mar 24 at 15:58













See here : stackoverflow.com/questions/29318709/…

– Always Sunny
Mar 24 at 15:59





See here : stackoverflow.com/questions/29318709/…

– Always Sunny
Mar 24 at 15:59













Here is my errors; postimg.cc/MM62DZMb

– dlpnt
Mar 24 at 16:12






Here is my errors; postimg.cc/MM62DZMb

– dlpnt
Mar 24 at 16:12














0














Always use the keyword "sudo" while trying to install something or accessing protected files / directories as "sudo" will give you highest credentials for it.






share|improve this answer























  • Thank you for answer.

    – dlpnt
    Mar 24 at 16:59











  • You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

    – Hank Moody
    Mar 24 at 18:31















0














Always use the keyword "sudo" while trying to install something or accessing protected files / directories as "sudo" will give you highest credentials for it.






share|improve this answer























  • Thank you for answer.

    – dlpnt
    Mar 24 at 16:59











  • You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

    – Hank Moody
    Mar 24 at 18:31













0












0








0







Always use the keyword "sudo" while trying to install something or accessing protected files / directories as "sudo" will give you highest credentials for it.






share|improve this answer













Always use the keyword "sudo" while trying to install something or accessing protected files / directories as "sudo" will give you highest credentials for it.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 24 at 16:24









Hank MoodyHank Moody

216




216












  • Thank you for answer.

    – dlpnt
    Mar 24 at 16:59











  • You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

    – Hank Moody
    Mar 24 at 18:31

















  • Thank you for answer.

    – dlpnt
    Mar 24 at 16:59











  • You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

    – Hank Moody
    Mar 24 at 18:31
















Thank you for answer.

– dlpnt
Mar 24 at 16:59





Thank you for answer.

– dlpnt
Mar 24 at 16:59













You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

– Hank Moody
Mar 24 at 18:31





You're welcome, I can see that you can not upvote my answer as you dont have enough reputation on SOF.

– Hank Moody
Mar 24 at 18:31

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325456%2fpermission-denied-error-when-create-a-new-laravel-project-ubuntu-lemp-stack%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript