Please view kzbin.info/www/bejne/jmTFgYqibr9lepI to see how to get a basic WSL 2 setup created.
@Beachcasts3 жыл бұрын
Also, to include Docker see kzbin.info/www/bejne/nmGvqKeZn8pggNE
@ayebosec3 жыл бұрын
@@Beachcasts I need help. I can't do more than communicate with the person or persons remotely viewing and operating my devices. There a common trend. The police won't do jack.
@ayebosec3 жыл бұрын
@@Beachcasts I have the name of the host. UtilsGearRulesManager
@caminhodaslutas Жыл бұрын
For those experiencing "FORBIDDEN" issues, simply type "cd" to return to your user's initial home directory and then go back one folder using "cd ../". After that, execute the command "chmod +x youruser".
@demeja16 Жыл бұрын
thank you so much, you saved my time:)
@minihohtis5906 Жыл бұрын
@@demeja16 I apriciate the solution, but what does this actually do?
@demeja16 Жыл бұрын
@@minihohtis5906 hello friend, i don't know because I'm newbie in linux, but here is answer fro askubuntu forum: chmod +x on a file (your script) only means, that you'll make it executable. Right click on your script and chose Properties -> Permissions -> Allow executing file as program, leaves you with the exact same result as the command in terminal. If a file you want to change permissions on is located within the systems directory you may need to be root, like so: (be careful, while using sudo command)
@coolyfooly69 Жыл бұрын
Thank You.
@chandrashekharkaushik6845 Жыл бұрын
Helped me today ! Thank you!
@bobjohnson99473 жыл бұрын
Adam's WIN10 WSL videos are exceptional in my opinion - very, very informative to a new WSL person like myself, and his audio and video are very professional, his tech comments are brief, concise, and extremely useful, and his screen shots of his typed keyboard input commands as he explains his concepts are very helpful. I would highly recommend his WSL videos...
@Beachcasts3 жыл бұрын
Wow, thanks! Do glad you enjoyed them, and found them useful. Appreciate your compliments.
@MET872 жыл бұрын
this was not only informative and accurate but also enjoyable to watch! You sir could be a teacher!
@shawnwbailey2 жыл бұрын
I am a .net programmer. I use VS Code and Visual Studio as my main tools. Then comes along this php customer. I saw this video and had the WSL2 environment and lamp stack (I added Mariadb) running in an hour. The only hang up was that I couldn't get past permissions issues with composer on an NTFS volume. Maybe you covered this in an earlier video, but I had to make a /etc/wsl.conf with [automount] options="metadata" to get composer to run. BOOM! I am ready to rock tomorrow! Thank you!
@Beachcasts2 жыл бұрын
So glad this was helpful, and thank you for sharing how you got Composer running.
@dannyvsr2 жыл бұрын
This entire video has been priceless. Thank you for all of your time and efforts in making it.
@Beachcasts2 жыл бұрын
I'm so happy this helped you.
@Beachcasts2 жыл бұрын
I use the symbolic link to make it easier to navigate, and easier to swap to a new location when/if needed. Hope this helps.
@bedrettingulen1128 Жыл бұрын
I am very new in php world and had lots of questions about it. But with this video i found answers to my questions. Thank you so much @Beachcasts.
@alexwisard2 жыл бұрын
Perfect! Thanks a lot! Next step - docker-compose and abilitty to make custom configs on projects with reusable images/containers.
@OliverRivettCarnac2 жыл бұрын
Great video! Really helped me get a better understanding of things. Just a note, you need to start apache2 after installation which was a step not covered. ```sudo service apache2 start```
@Beachcasts2 жыл бұрын
Thank you for the added note, and thank you for watching. So happy it was helpful for you.
@evanmarshall94985 ай бұрын
I have an old php application, which I think I used either a package for laravel on Mac or some sort of dist setup using Docker on Windows. Either way, it does not have the necessary files/setup that is automated using composer such as you did. Can you go over how to prepare a project from scratch (not downloading from laravel) so that it will load properly on localhost?
@danzeel Жыл бұрын
very clean lesson, I've been setting it up several times already, many thanks!
@marksiely4747Ай бұрын
Hello friend many thanks for teling! Would you please tell me the steps to restart the project from scratch? Many thanks in advance!
@KBPNB Жыл бұрын
I liked Your explanation method, video quality, your voice very understandable
@danzeel2 жыл бұрын
I think in your tutorial missed the step which explain how to start apache, because in other case localhost is not show apache page. In ubuntu console need to write "sudo service apache2 start"". In any case it was very HELPFUL for me!
@Beachcasts2 жыл бұрын
Glad you found it helpful.
@danzeel2 жыл бұрын
@@Beachcasts Very helpful!
@MegaAnand101 Жыл бұрын
Thank you for the great information, very clear, very concise and very informative. I hope you have an amazing new year.
@RobertoDeMontecarlo2 жыл бұрын
That's exactly what I was looking for! Thank you so much!
@Beachcasts2 жыл бұрын
Glad I could help!
@jdkarns9 ай бұрын
Thanks for the video. Great information. Question? I get a message in VS Code. It does not like the Projects file being in windows. Message: This workspace is on the Windows file system (/mnt/). For best performance, we recommend moving the workspace to the Linux file system (~/home). Any thoughts? Thanks
@hrithikagarwal37772 жыл бұрын
Great Tutorial
@Beachcasts2 жыл бұрын
Glad it was helpful! Thanks for watching.
@hrithikagarwal37772 жыл бұрын
Most Welcome. I need help regarding one more thing, I was trying to embed react component in my php website. So is there any way of doing it? I did some Google search, in that we can use V8 extension but I didn't get properly. If you have any idea through that I can achieve it please help me out. Any help is appreciated Thanks
@viktornikolov1570 Жыл бұрын
I'm experiencing the 'FORBIDDEN' issue that other people have faced. I gave execute permissions to my user chmod +x /home/myuser as suggested in the comments and this indeed solved the issue but I don't why. Can someone please explain why this works? Is it safe giving execute permissions to /home/myuser? If not safe or simply a bad practice is there a better solution?
@tiagosoares82972 жыл бұрын
thanks for the tutorial, it was very helpful. I loved the elephants 😁
@Beachcasts2 жыл бұрын
So glad it helped.
@propertyrealestate9843 Жыл бұрын
Thank you, very usefull and clearly.
@chrisandrew_tv9 ай бұрын
Great video, thank you for sharing! For anybody wondering, you can still follow along without the symlink to a Window file system directory, serving the files in WSL, from WSL, with a few minor adjustments along the way. Microsoft's documentation for WSL states that they "recommend against working across operating systems with your files, unless you have a specific reason for doing so" for the fastest performance and speed. Are there any major consequences of this? I don't yet know.
@MET872 жыл бұрын
Hello! Great video! Can you make a tut on how to connect to the wsl instance using SSH ? I am trying to use Pycharm and i dont get dependencies. i read that i should connect the project trough ssh ....
@hotasfireph Жыл бұрын
It's a good tutorial, but can you also enable or install xdebuger? I tried several time but I can't seems to make it work in VsCode
@eyobgebreyesus95452 жыл бұрын
It works great! Thank you so much.
@brightamponsah3832 Жыл бұрын
11:39 please I am getting "FORBIDDEN access" can you help me with that?
@abrahamlund6420 Жыл бұрын
me too
@abrahamlund6420 Жыл бұрын
try chmod 755 /home/
@fratell Жыл бұрын
Do a chmod +x on your user dir, and restart apache
@caminhodaslutas Жыл бұрын
For those experiencing "FORBIDDEN" issues, simply type "cd" to return to your user's initial home directory and then go back one folder using "cd ../". After that, execute the command "chmod +x youruser".
@hamdyahmed57423 жыл бұрын
Thanks for sharing this... Very helpful
@Beachcasts3 жыл бұрын
My pleasure. Thank you for watching, and glad you found it useful.
@Happinessisalwaysthere Жыл бұрын
If you have problems with some commands, just add sudo before it.
@ricko139 ай бұрын
the symbolic link from host to wsl is not recommended, you just need keep everything inside the WSL2 file system for a faster/better experience 👍
@folomba Жыл бұрын
Hello! Thanks! I like Linux! I like PHP!
@scotle99013 жыл бұрын
Cool!. Please do with docker
@Beachcasts3 жыл бұрын
Thanks for the comment. I plan on doing it with Docker, perhaps using Laravel Sail. ;-)
@Beachcasts3 жыл бұрын
You might be interested in this, where I do use Docker. kzbin.info/www/bejne/Znm3o6ientGpmbc But I think Laravel Sail is likely a better approach.
@noir4356 Жыл бұрын
Dude, let met tell you you're just great
@vunguyen22463 жыл бұрын
Thank you very much! Very helpful video!
@Beachcasts3 жыл бұрын
Glad it was helpful! Thank you for watching.
@codedusting2 жыл бұрын
apache2 directory modification doesn't work.
@elibo0n2 жыл бұрын
how did you get "localhost" to work right away?
@Beachcasts2 жыл бұрын
I didn't need to do anything. Just worked.
@elibo0n2 жыл бұрын
@@Beachcasts yup thanks….turns out i needed to restart the apache service for it to work.
@danzeel Жыл бұрын
Do you use Docker?
@codesymphony2 жыл бұрын
why do we create the projects on windows instead of inside the wsl directory?
@codesymphony2 жыл бұрын
When I navigate to my project it shows the index file as plain code, and doesn't run it
@SoundPeaks Жыл бұрын
So you didn't do any additional settings but when you installed Apache you instantly got the test website at your localhost in Windows? What if I also have Apache installed in Windows and it is running as a service on localhost domain, what will happen then?
@Wongmc644 Жыл бұрын
I have windows xampp installed too but manual start. I just don't start the windows apps unless I need to use it then I stop the wsl Apache n MySQL. Xampp includes mariadb (MySQL) which I didn't start. Downloaded heidisql on Windows and connect to WSL mariadb for a GUI interface
@SoundPeaks Жыл бұрын
@@Wongmc644 thanks for the clarification!
@jujuclinz Жыл бұрын
Great video! I'm hoping that you can also do for MySQL/Phpmyadmin set-up
@bookable7157 Жыл бұрын
pretty good, except I'm trying to figure out how to "save" at minute 11. you sort of assumed people knew how to do that. google isn't being of much help either.
@anshulraj12372 жыл бұрын
I have a question if I wish to install a mongodb extension for php how do I add it to the php.ini file in wsl2?
@Beachcasts2 жыл бұрын
Depending on the OS you're using. In Ubuntu you can use 'sudo apt-get install php-mongodb' or something like that. That should add it to the php.ini for you. I've not done this, but should do what you want.
@hambrunaa2 жыл бұрын
when I go to localhost I cant access, it says ERR_CONNECTION_REFUSED , what can I be doing wrong?
@Beachcasts2 жыл бұрын
Sounds like it may be a security issue. Maybe there was a missed prompt during installation of WSL2 or Ubuntu?
@lloydthomas3482 жыл бұрын
Thanks for this. Was really helpful. Setting up MySQL or MariaDB would have been helpful as well (hint bind-address)
@Beachcasts2 жыл бұрын
Thanks for watching. Great idea!
@md.anisurrahman94592 жыл бұрын
Great video, thank you! Could you also show us How to install WordPress on WSL?
@Beachcasts2 жыл бұрын
Thanks for watching. I'll give that some thought.
@igortalic20213 жыл бұрын
Amazing videos! Subscribed immediately 😁 Is there any reason why not have the projects in WSL in Ubuntu? Why link to host? Tnx 😊
@Beachcasts3 жыл бұрын
The IDE I use to edit runs on the Windows host, so that is why I keep the files there. Alternatively, I could keep them inside the VM, but then would need to connect remotely with the IDE, which is about the same. However, I would risk losing the files if the VM became corrupted.
@igortalic20213 жыл бұрын
Thanks for the answer! Yeah losing files would be painful 😁 will change that on my pc 😁
@Beachcasts3 жыл бұрын
Thank you for watching, and your question.
@kevinm97692 жыл бұрын
You looking for a good laugh? Watch this video at .5 playback speed. haha. Very helpful though, thanks for the amazing content!
@Beachcasts2 жыл бұрын
HA, I know, right? Believe me, I do much editing in slow motion to match up sentences between cuts, and watching myself in slow motion is excruciating. :) Thanks for watching.
@disconnected692 жыл бұрын
Спасибо, очень полезно)
@Beachcasts2 жыл бұрын
You're welcome.
@pradipartyst5809 Жыл бұрын
Mounting source code is extremely slow.
@ayebosec3 жыл бұрын
What is the "apache software foundation"? There's code and Hella software remotely installed in my phone. I was able to get as far as communicating with the person/persons. I need help they are stealing my business and information. I WILL WRITE YOU A CHECK.
@Beachcasts3 жыл бұрын
Sorry, this doesn't make sense. Unless bad people are using open source software. I doubt it is the foundation doing it.
@ayebosec3 жыл бұрын
@@Beachcasts it's bad people. I don't have a understanding on how I would stop them.
@ayebosec3 жыл бұрын
Nobody seems to be able to help. Not even the police. No wonder why the government hated Snowden 🙄
@ayebosec3 жыл бұрын
I don't know how to get any further then I have.
@Beachcasts3 жыл бұрын
I don't think this is the right place for your questions. Sorry.