Тёмный

How to setup Apache, MySql, and PHP on Ubuntu Linux 

Alessandro Castellani
Подписаться 99 тыс.
Просмотров 161 тыс.
50% 1

How to setup Apache, MySql, and PHP on Ubuntu Linux
0:20 Lamp Stack Intro
3:00 Apache Setup
5:23 Hosts File
9:35 Server Folder
14:40 Create a Vhost
22:33 Install PHP
25:40 Vhost Automation
31:51 Install MySql
:: Support Me ::
www.alecaddd.com/support-me/
:: Tutorial Series ::
WordPress 101 - Create a theme from scratch: bit.ly/1RVHRLj
WordPress Premium Theme Development: bit.ly/1UM80mR
Learn SASS from Scratch: bit.ly/220yzmZ
Design Factory: bit.ly/1X7Csaz
Affinity Designer: bit.ly/1X7CrDA
:: My Website ::
www.alecaddd.com/
:: Follow me on ::
Twitter: / alecaddd
Google+: bit.ly/1Y7sunz
Facebook: / alecadddpage

Опубликовано:

 

29 апр 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 256   
@raventai
@raventai 5 лет назад
Thank you! I had Apache up and running over a decade ago, and have not touched it since I remember the highlights but the details have all left me. i love this presentation style, show the exact command, explain the command and then show the results in the GUI I loose a lot of time getting the command line syntax/grammar correct, a lot of places will tell you this command does this, but seeing it typed out with directories and folders and arguments is very helpful for learning. (re-learning)
@RyuuzakiJulio
@RyuuzakiJulio 5 лет назад
THANK YOU!!! I had been trying to set it up for 2 weeks, and this video answered everything!
@geeky_will1677
@geeky_will1677 6 лет назад
Thank you so much :) I'm new to the LAMP Stack and you made it super simple to understand
@alecaddd
@alecaddd 6 лет назад
+geeky_will awesome! Check my new series Working with Linux for an updated version and easier approach to local development
@piliparbotond
@piliparbotond 6 лет назад
Hi! I am really thankful for this comprehensive step-by-step guide, it was really helpful for me even though I have very little experience with apache servers and bash commands. Great job!
@alecaddd
@alecaddd 6 лет назад
Awesome, I'm glad I was helpful. Cheers
@mrsnulch
@mrsnulch 3 года назад
Man this is one of the best tech vids/channels on the web, thank you man! Can't wait to learn how to make wordpress plugins with ya :) subbed
@samim.5091
@samim.5091 5 лет назад
Thanks to you I was able to clearly understand how to setup a local PhP project, even though I always struggled with the whole process which graduated to very messy configurations. Thank you Master
@emmtes338
@emmtes338 4 года назад
Thank you very much for this explaination. Automation work very well and easely! Emmanuel
@m.parouty635
@m.parouty635 5 лет назад
Thank you so much for this. learned a lot. I just purged and reinstalled apache2 because I messed up too much with my previous installation. Now, I am leaving the defaults untouched and creating new files that match my website. Much Thanks again.
@alecaddd
@alecaddd 5 лет назад
Cheers
@irvinnunez9146
@irvinnunez9146 2 года назад
thanks for the video, this tutorial works after 4 years, so much value information
@kaanersoy1877
@kaanersoy1877 3 года назад
Was perfect ! Thanks for all helps and the "virtualhost" package!
@abdellatif.x8127
@abdellatif.x8127 3 года назад
Same here 👊
@morgansippel2057
@morgansippel2057 4 года назад
such a thoughtful and useful tutorial. Good job!
@haily5545
@haily5545 2 года назад
This video is very helpful and well-explained, it helps me to get to know how a server work. Thank you so much
@shawnmcqueen3488
@shawnmcqueen3488 Год назад
I'm trying to learn different projects to complete on linux, this tutorial really helps, thanks, got a new sub!
@digveeshah02
@digveeshah02 3 года назад
This was so damn helpful. Really really amazing and well explained video. Thank you so much for all the help !
@amosnimos
@amosnimos 5 лет назад
You are the one tutorial who unlock the basic understanding of all this PHP stuf thank you.
@alecaddd
@alecaddd 5 лет назад
You're very welcome :D
@nikosjoakimidis1899
@nikosjoakimidis1899 5 лет назад
Great and very helpful tutorial! Thank you
@ifeoluwapoojikutu6199
@ifeoluwapoojikutu6199 7 лет назад
Thanks, this has really helped me alot. Nice videos, keep them coming.
@alecaddd
@alecaddd 7 лет назад
Thank you so much for watching, I'm glad it helped :D
@JV89productions
@JV89productions 3 года назад
Thank you Sir! Simply and clear tutorial!
@jammincoder
@jammincoder 2 года назад
I'm only 13 minutes in to the video, and already I think it deserves to be a paid course. Awesome work.
@ajstimson
@ajstimson 4 года назад
This was perfect, thanks!
@reimusk872
@reimusk872 3 года назад
this helped me a lot. thank you for the tutorial
@chatoninja131
@chatoninja131 6 лет назад
I really appreciate you're video dude, I was struggling with this shit of lampp where we can put no extension (and do not use correctly such as great things as symfony or cake console), so I'm really happy to learn how to set a real server.
@alecaddd
@alecaddd 6 лет назад
Awesome, I'm glad I was helpful. I just started a mini-series about Linux where I'm showing my full setup, from the terminal to the local environment, code editor, extensions, etc. I hope it'll be useful for you. Cheers
@nagasupriyag9374
@nagasupriyag9374 2 года назад
Thank you so much!! Your explanation is the besttt
@ahmedabdnaser1582
@ahmedabdnaser1582 Год назад
that was magnificent, thanks for the informative explanation keep-up big fan
@hardcodd
@hardcodd 7 лет назад
It's a very useful tutorial! Thanks a million!
@alecaddd
@alecaddd 7 лет назад
Thank you so much for watching :D
@sadmanishrak9529
@sadmanishrak9529 3 года назад
You got no idea how much you have helped me! Thank you so much!
@alecaddd
@alecaddd 3 года назад
Well, now I know :D Thank you so much for watching
@sadmanishrak9529
@sadmanishrak9529 3 года назад
@@alecaddd You are most welcome. Thank you so much for taking the time to reply.
@dilmurod9820
@dilmurod9820 2 года назад
Best explanation i have ever seen
@robertbednarowicz6235
@robertbednarowicz6235 7 лет назад
GREAT VIDEO! as always.
@alecaddd
@alecaddd 7 лет назад
Thank you so much :D
@esu9921
@esu9921 2 года назад
thanks for guide step-by-step commands
@victorsokoluik4573
@victorsokoluik4573 4 года назад
Man you are magician! Thanks a lot it's greate tutorial.
@SaifUlIslam-di5xv
@SaifUlIslam-di5xv 3 года назад
Works perfectly fine. Thanks!
@SaifUlIslam-di5xv
@SaifUlIslam-di5xv 3 года назад
`test.dev` does not work anymore, but testdev, localhost_2 do.
@williamt43
@williamt43 5 лет назад
Thanks for this video because I was lost at first on how get a web server of my on up and running.
@alecaddd
@alecaddd 5 лет назад
You're welcome
@vic0703
@vic0703 6 лет назад
Great video ! Thank you !
@alecaddd
@alecaddd 6 лет назад
Thanks for watching :D
@arsenmkrtchyan4832
@arsenmkrtchyan4832 2 года назад
I automatically hit the like button !
@AW-Trader
@AW-Trader 3 года назад
Thanks. Well presented.
@desmetsbertrand
@desmetsbertrand 5 лет назад
Hi, great video, everything gets simpler. Little question though: I have just set up a new WordPress website using SSH and now I simply would like to access my website file directory but I have no idea how. Any suggestion? Thanks for your help.
@Ghostinyoutube99
@Ghostinyoutube99 5 лет назад
thank you , that was very helpful
@alecaddd
@alecaddd 5 лет назад
You're very welcome :D
@huynhlong1066
@huynhlong1066 5 лет назад
Can you help me a question I installed mysql server and i have a file database(.sql), how i can put it on my sql. Thank you!
@MarcEPliester
@MarcEPliester 5 лет назад
Thanks, very helpful
@alecaddd
@alecaddd 5 лет назад
Cheers
@nikodemus7900
@nikodemus7900 5 лет назад
Great video, but i have the following problem: I am running the website on my raspberry pi. How can i access the websites from another computer in my LAN? With the ip-adress from my pi, i can only reach the pre-build website in "/var/www/html"
@heartphung
@heartphung 3 года назад
thank you very much. it is very helpul for us
@alecaddd
@alecaddd 3 года назад
Happy to help
@rootgr9241
@rootgr9241 5 лет назад
Congratulations very good video!!
@alecaddd
@alecaddd 5 лет назад
Cheers
@dstujev
@dstujev 5 лет назад
Awesome! Thank you!
@alecaddd
@alecaddd 5 лет назад
Cheers
@martinvermeulen2001
@martinvermeulen2001 4 года назад
Hi .. good video very good explained .. helps a lot thanks ...
@reymago23
@reymago23 5 лет назад
well explained! thank you
@alecaddd
@alecaddd 5 лет назад
You're welcome
@amosmoyo963
@amosmoyo963 6 лет назад
i love this ....you are the best
@alecaddd
@alecaddd 6 лет назад
Thank you so much :D
@sabinbaral4132
@sabinbaral4132 2 года назад
Sir you are the best 🙏 This is so well explained i immediately had to like subscribe Thank you so much
@alecaddd
@alecaddd 2 года назад
Thank you so much
@jeanne-pierrevandergryp8441
@jeanne-pierrevandergryp8441 4 года назад
Hi Alessandro - excellent - thanks very much. Can you perhaps take this one step further by: showing how another PC on a LAN accesses the website through a browser. I can currently access the webserver (Linux - Mint) through the web browser. But, it defaults to the "Apache - It Works" default website, but not the new virtual website created as per your tutorial. If you could explain this and what additional settings are required in the Apache Server - would be highly appreciated.
@valentinmagherman1850
@valentinmagherman1850 5 лет назад
Great video, thank's you ! Could you explain also how to delete/uninstall a website ? (by exemple to remove the test.dev :p ) Thank's you
@gxgl
@gxgl 7 лет назад
Hi Alex, Nice tutorial again! Thumb up! You guys should also add ServerAlias in the vhost config file. For example you have the ServerName: test.dev and the ServerAlias will be www.test.dev This setup it offers more flexibility. Enjoy it.
@alecaddd
@alecaddd 7 лет назад
Hi George, thank you so much for watching. Yes, I'm aware of the ServerAlias, in fact, you can find it in the script I use for automating the process. I decided to keep the Vhost file really simple for the tutorial, just to avoid confusion and too much information for an already long video. Thanks for flagging that out!
@gxgl
@gxgl 7 лет назад
I supposed you already know about it, and when I've wrote the comment was before seeing the script part oft the video :) But that should change in www. because if you use wordpress and you set it up on domain.com and then you will need to put it on www.domain.com... then you will discover that you will have more changes to do than to modify only the .htaccess file. (from my experience...) I will recommend using the www. as Alias. It is also a good practice. I am speaking as a guy which is more into servers than programming :) Keep up with the tutorials because I like them and I enjoy them. You are speaking clear about the thing to do and everything is so clear to understand, so in the name of me and others I say thank You! If I will reach America sometime... We will have a beer! :) Thumb up!
@pankaj1367
@pankaj1367 5 лет назад
In the test folder i put simple html file even that too is not running in localhost please guide, though i first did exactly the same way but php file didnt run despite php is installed.
@g-itech9629
@g-itech9629 6 лет назад
Thanks a million
@alecaddd
@alecaddd 6 лет назад
You're very very welcome :D
@omoleyeamuleru-marshall4098
@omoleyeamuleru-marshall4098 3 года назад
I do not usually comment... but this is a VERY good video... VERY WELL DONE!... I highly recommend it to people trying to figure it out for the first time. My only request would be if you had any solution for linking EDIs to the stack... I wanted to try and use eclipse seem to have issues with the host server and Xdebug. But that was before I watched this vid, anyway that would be the only thing I would add.
@ccices01
@ccices01 5 лет назад
at 13:06 you change the permissions of the /var/www to make it read-able but not write-able.. In you example, you can then add a directory etc. into the test folder. Why does this allow us to create files etc in that directory and not in the others (www folder)? Is it because we are the owners?
@user-jl1vw2qi1f
@user-jl1vw2qi1f 4 года назад
it's very good tutorial
@markharrison4397
@markharrison4397 6 лет назад
Great tutorial! One thing that didn't go so well is the Virtualhost script, on Ubuntu 18.04 I get this "/usr/local/bin/virtualhost: 8: /usr/local/bin/virtualhost: Syntax error: newline unexpected".
@alecaddd
@alecaddd 6 лет назад
You can try using Valet Linux, it's more compact and easier solution. I have a video in my playlist Working with Linux, check that out :D
@JBautistaA
@JBautistaA 5 лет назад
Thank you dude............... you saved me. Please do more tutorials. Make a tutorial how to link LAMP to wordpress?
@alecaddd
@alecaddd 5 лет назад
Check my playlist Switching to Linux where I showed my entire setup and how to install WordPress locally.
@JBautistaA
@JBautistaA 5 лет назад
For this video on 32:27, I have a huge problem... IT doesnt allow me to get to package configuration to change new password for the MSQL "root" user.. Please help.
@vamsisrinivas3446
@vamsisrinivas3446 4 года назад
I'm using vs code for writing the php program and need to the run it in apache2 sever
@braiNN
@braiNN 4 года назад
the automatic virtual host thing is great. Wish there was a way to automate the ownership of the folder it creates.
@TheScienceUniverse
@TheScienceUniverse 6 лет назад
Thank You very much
@alecaddd
@alecaddd 6 лет назад
You're welcome 😁
@DevOpsKey1
@DevOpsKey1 5 лет назад
yes all the things are ready and running properly .
@Leo-fk7nb
@Leo-fk7nb 7 лет назад
Hi alex, what screen recording app that you used in this video? Btw, thank you for all your video!
@alecaddd
@alecaddd 7 лет назад
I'm using OpenBroadCaster
@thelover2392
@thelover2392 2 года назад
thank u pro :).
@aleksandrnadtochyi9475
@aleksandrnadtochyi9475 7 лет назад
Awesome!!!!!
@alecaddd
@alecaddd 7 лет назад
Thank you :D
@amauryguignard5670
@amauryguignard5670 6 лет назад
Hi Alessandro, thank you for the video, great job !! I have a problem (running ubuntu studio 16.04): I modify my Host File in test.dev as you did, but firefox didn't recognize it, even after a network restart Is there something I should do ? Cheers !
@alecaddd
@alecaddd 6 лет назад
You could try using Valet Linux. I did a tutorial about it in the playlist Switching to Linux.
@amauryguignard5670
@amauryguignard5670 6 лет назад
Thank you, I will check It.
@kalleverneri
@kalleverneri 4 года назад
the script creates all the necessary files and i cant seem nothing wrong with the structure or syntax of the files but its still not showing up on my browser. using ubuntu 18.04, apache2 2.4 and php 7.2 Wondering what could be the issue here. Cuz when i manually configure the site its working completely fine, so it must have something to do with the script.
@nodavood
@nodavood 3 года назад
Redirecting to https is an issue for making the test.dev work. It doesn't look into the local machine. It searches the internet. Any workaround?
@TJKhara
@TJKhara 4 года назад
Quick question - I ran the script to create the site and the folder, but the folder in my www folder has the lock on it. It is owned by root. Is that okay? Is that the way the script is supposed to work because I don't see that lock when you show the site folders in your www folder.
@hamid6883
@hamid6883 7 лет назад
Hello Alex, Is it safe to use Virtualhost Manage Script on my production server?
@alecaddd
@alecaddd 7 лет назад
Mhhh...I wouldn't recommend it. I mean, it works and I never had issues with it, but always be careful when using automated scripts on your production server. If you want to try it, do a backup first, and be sure your folders match where the virtualhost script will try to interact. And before all of that, test it on a staging server, or local server. I don't want to be responsible of the destruction of your production server :D
@svneverforever
@svneverforever 3 года назад
Perfect.
@new_2_youtube
@new_2_youtube 7 лет назад
Easily explained 😃
@alecaddd
@alecaddd 7 лет назад
Thanks for watching :D
@davidmella1174
@davidmella1174 4 года назад
my computer uses ARM cpu architecture. will this github download work?
@shahrukh49
@shahrukh49 3 года назад
helpful
@avatsavirs
@avatsavirs 4 года назад
I recently moved from windows to linux. The websites i created on windows and used to test using xampp are no longer working on the virtualhost i created. Specifically there is a problem connecting to the database. When i submit the data in the form I get HTTP ERROR 500 (myregistrationform.local is currently unable to handle this request).
@alessiodettori1009
@alessiodettori1009 3 года назад
Ciao, sono arrivato fino ad installare dbeaver ma una volta che provo a testare la connessione del server MySQL mi da l'errore "Access denied for user 'root'@'localhost' ". Ho provato anche ad aggiungere un altro user tramite il terminal assegnando a questo il plugin "auth_socket" ed ho provato ad utilizzarlo durante la creazione della connessione al DB su dbeaver, ma niente, continua a non collegarsi. Qualche consiglio? Grazie.
@alessiodettori1009
@alessiodettori1009 3 года назад
[RISOLTO] Ho cambiato il plugin del user 'root' da "auth_socket" a "mysql_native_password" mettendone una a mia scelta. Per fare ciò ho utilizzato il terminal (scrivo per quelli che si trovano nella mia situazione): 1) sudo mysql -u root -p 2) ho inserito 2 volte la password del account per accedere ad Ubuntu 3) alter user 'root'@'localhost' identified with mysql_native_password by 'password_a_scelta' Comunque ottimo tutorial !
@mouadh_tech31
@mouadh_tech31 7 лет назад
Thank you very much, i was thinking to switch from windows to linux after my graduation next month so i should look for this instruction and here you are doing the job this was very helpful
@alecaddd
@alecaddd 7 лет назад
Wow, I'm glad I got you at the right time :D I will do more and more videos about Linux to help users like you (and me) to get a professional workflow for both development and design. Cheers
@mouadh_tech31
@mouadh_tech31 7 лет назад
this will be very appreciated. thank you
@aristeidislykas7163
@aristeidislykas7163 5 лет назад
Since Google, and Mozilla, made such a mess with the new TDL changes, of 2017, could you make a video, using the openssl software, to replace this rather out-of-date, video? Thank you for your time, Alecaddd.
@alecaddd
@alecaddd 5 лет назад
I already did :D Here's a tutorial using Valet Linux: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-l1ZX0ZLxRps.html&list=PLriKzYyLb28nRMNbet5iXM_UlE2ddok7k&index=9 Check also the rest of the playlist as I go through the steps of setting up all the most common tools for a developer. Cheers
@aristeidislykas7163
@aristeidislykas7163 5 лет назад
At minute 06:30 I saved the test.dev using sublime text, through terminal, but I got a "This site can't be reached" message! I had installed the MariaDB right before installing Apache2. Could that be the cause?
@alecaddd
@alecaddd 5 лет назад
It's google's fault :P Google made the .dev domain a TLD, or Top Level Domain, so now, without an SSL certificate (HTTPS connection) you can't access your local environment. You should be able to solve it by changing the extension, using something like .app, or .devel Cheers
@aristeidislykas7163
@aristeidislykas7163 5 лет назад
You guessed right that I tried it by using the Chrome web browser. Mille grazie dalla Grecia, mio amico!
@aristeidislykas7163
@aristeidislykas7163 5 лет назад
I tried to change the extension but nothing happened. I tried with Firefox but it does not work either. Am I right to assume that one would have to alter the "sites-enabled" folder to get around this problem? The website at jmcoimbra.github.io/LAMP-env/ seems to say that!
@Ironelia
@Ironelia 5 лет назад
Same for me ! I've followed every steps of the video and I even changed the extension after having read the comment. But I have the same result :(
@bearfamily508
@bearfamily508 5 лет назад
Did the jmcoimbra site work for anyone?
@user-jl1vw2qi1f
@user-jl1vw2qi1f 4 года назад
what is your icons theme?
@illya89
@illya89 4 года назад
Thx for the video mate! I myself made a mistake and took me an hour to solve it. 4 ppl in the future: My mistake: I couldn't reach test.dev because I enabled test.dev.conf restarted and figured out the first time I enabled test.dev.conf as a result test.dev never worked anymore. Started over with test.local did sudo a2ensite test.local and this worked. Never got test.dev working again =s even if I did sudo a2ensite test.dev Command: sudo a2ensite test.dev I did: sudo a2ensite test.dev.conf (WRONG!!! )
@VijaySharma-pk5qc
@VijaySharma-pk5qc 2 года назад
hii! I was using sudo php -S localhost:8080 from any directory to host my php file but now its not working please help
@jackywang818
@jackywang818 7 лет назад
Since I tried LEMP, nginx instead of apache, I have not install LAMP for long time, Apache is easy to be down when the memory is small
@alecaddd
@alecaddd 7 лет назад
I'm actually running Nginx on my production servers, and I agree with you. I will definitely make a video on how to set it up and the differences with Apache.Thanks for the suggestion!
@vigisbigtm
@vigisbigtm 4 года назад
I did not understand the use of symlink? Why do we need it? Can you please explain?
@rdamien4354
@rdamien4354 4 года назад
do the services start on bootup or do i have to start them manually?
@matijakukec4731
@matijakukec4731 2 года назад
Yes. If it doesn't, you can also type "sudo systemctl enable apache2" to enable it on start of bootup.
@jasonappiatu9712
@jasonappiatu9712 2 года назад
Please after running the script, mine displayed "Unable to connect". Please what could be the problem?
@8BlankWolf8
@8BlankWolf8 7 лет назад
Because I'm using a RaspberryPi without any GUI (connected via ssh) I've installed phpmyadmin to manage the mysql database. Maybe you could look this up as well if someone want to use it too. But greate video. I love the virtualhost.sh file :D Greetings BlankWolf
@alecaddd
@alecaddd 7 лет назад
Oh yes, that's a good point. DBeaver, like SeuquelPro, has the ability to connect to a remote database in SSH, that's why I decided to go that route instead of a web based MySql access. I've always wanted to play with a RaspberryPi but never got the chance. How is it? How do you use it, and why did you pick it? Cheers
@8BlankWolf8
@8BlankWolf8 7 лет назад
I bought the RaspberryPi because I'll try to improve my Linux knowledge (primary for my new work) The Pi is simply connected via Cabel with my Router and I connect me via SSH with the pi. I also use samba to create a Windows Networkdrive (only to the /var/www folder). I'm also working with symfony3. :)
@alecaddd
@alecaddd 7 лет назад
Sweet! I recently started using Symfony to build CLI apps on PHP, pretty handy.
@8BlankWolf8
@8BlankWolf8 7 лет назад
I'm looking forward to see your new PRogramming Series :D
@kaspervhauschildt
@kaspervhauschildt 5 лет назад
i dont get it i did as he did but when i write test.dev the browser makes test.dev and says it cant find it
@ibrahimm.6803
@ibrahimm.6803 3 года назад
Use your default browser. Do not use other browsers like Opera
@charlesqueiroz573
@charlesqueiroz573 5 лет назад
thanks
@alecaddd
@alecaddd 5 лет назад
You're very welcome
@Cutrexxx
@Cutrexxx 6 лет назад
How can i disable the standard 000-default.conf? it still shows the apache2 page :(
@alecaddd
@alecaddd 6 лет назад
+Thomas Sieber mhh, I'm not sure about that. Check one my recent Videos about Linux Valet. It's a new and way faster method to setup localhosts
@Cutrexxx
@Cutrexxx 6 лет назад
thx for the quick response. you can disable old sites with a2dissite "sitename"
@sarefeen
@sarefeen 5 лет назад
when i add test.dev to /etc/hosts file it doesnt open in the browser, it says unable to connect ..can you help at your convenience, thanks in advance
@zedolok4508
@zedolok4508 5 лет назад
thats the same happend with me, you find the solution for this problem ?
@vipulbajaj88
@vipulbajaj88 4 года назад
@@zedolok4508 same with me. Please let me know of the solution
@RandomDays906
@RandomDays906 4 года назад
It's because the .dev domain is now automatically redirected in chrome (and now firefox I suppose) ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/
@DevOpsKey1
@DevOpsKey1 5 лет назад
I am a facing a problem that when i open my project in browser the tree structure cant be display as showing in your video.
@alecaddd
@alecaddd 5 лет назад
Is your apache server running properly?
@Bainzoo
@Bainzoo 5 лет назад
Grazie per l'ottima guida! Non son ancora riuscito a superare il blocco della password di xubuntu che non ho tra l'altro impostato durante l'installazione di mysql. Ho provato a seguire diverse guide e anche a reimpostarla ma nulla mi dice sempre e comunque che non ho accesso. Più tardi provo a vedere se riesco a far funzionare tutto seguendo i tuoi passaggi.
@alecaddd
@alecaddd 5 лет назад
Hai provato il comando `mysql_secure_installation`? Dovrebbe darti la possibilità di inserire una nuova password.
@Bainzoo
@Bainzoo 5 лет назад
@@alecaddd grazie per la dritta. Lo provo appena posso!
@farukeryilmaz8059
@farukeryilmaz8059 5 лет назад
Now chrome and other browsers are directing http to https if youre using .dev domains and cause to get "... .dev refused to connect." error. So it s better to use .test domain or add valid ssl certificate.
@simonlovec5570
@simonlovec5570 3 года назад
Thanks man!
@andrewstallard6927
@andrewstallard6927 5 лет назад
What browser are you using? I am using firefox when I type in test.dev after the proper configuration I keep getting the Error: Secure Connection Failed The connection to the server was reset while the page was loading. The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem. However, I know test.dev is configured as localhost because I am able to ping it. (It goes to 127.0.0.1 What is going on?
@alecaddd
@alecaddd 5 лет назад
Google acquired .dev domains and made them top level domains, so now if you don't have an SSL certificate, and consequentially HTTPS, you can't use .dev I'd suggest using Valet Linux or change your domain extension to .app or .local, or something else.
@andrewstallard6927
@andrewstallard6927 5 лет назад
No, that isn't it. I tried .app and even .shit as top-level domain extensions and neither work. Thanks anyway!
@mamaafrica6592
@mamaafrica6592 3 года назад
does it work on just linux
@siddharth5615
@siddharth5615 7 лет назад
i am getting connection error pop up while doing test connection after downloading driver for dbeaver, error says java.sql.SQLException : Access denied for user root@localhost
@alecaddd
@alecaddd 7 лет назад
Are you sure you can connect to your MySql via terminal, and the password you're using is correct? Is you Database up and running?
@siddharth5615
@siddharth5615 7 лет назад
Alessandro Castellani yes i can see mysql status as running, but what password we have to put in it? in this we are setting password or putting password for access? and which password
@imadalnajjar8251
@imadalnajjar8251 4 года назад
Hi Alessandro, first I would like to thank you so much regarding this content, I follow all your steps and the local host is working fine on the same computer, but when am I calling the IP address for that PC locally still it shows the Apache page, could you please tell me how to fix this issue, and how to point my home IP address to that Wordpress folder? I already added the port 80 and 443 in the port forwarding sitting in the router.
@marianstancoci7912
@marianstancoci7912 6 лет назад
Hi Alex, I am new in php and linux. my test.dev.conf file says read-only, I cant change the modifications
@alecaddd
@alecaddd 6 лет назад
Are you acting as root user? Can you edit it if you open it with sudo?
@marianstancoci7912
@marianstancoci7912 6 лет назад
I think I am root user, I dont have sublime editor I have gedit, and I dont know how to open the file with sudo. I tried only without terminal.
@alecaddd
@alecaddd 6 лет назад
That's a root file that needs to be opened with sudo from the terminal, or you can open a new instance of your file manager as administrator.
@marianstancoci7912
@marianstancoci7912 6 лет назад
Ok, I will do so, what is the command to open the file?
@marianstancoci7912
@marianstancoci7912 6 лет назад
I`ve tried to open the file in terminal (gedit etc/apache2/sites-available/test.dev.conf) ...same thing. i don`t know how can I open with sudo command.
@yuliyakuleshova
@yuliyakuleshova 7 лет назад
Che cosa posso dire?)) It is amazing !)))))
@alecaddd
@alecaddd 7 лет назад
Ahahaha, grazie mille :D
@leoiancu3796
@leoiancu3796 5 лет назад
Ho passato tutto il tutorial a chiedermi se eri italiano, poi, solo dopo mezzo'ora, ho letto il nome del canale
@alecaddd
@alecaddd 5 лет назад
Non puoi mai esserne certo al 100% :P
@rifkybariansyah7178
@rifkybariansyah7178 5 лет назад
Does anybody has a problem when entering test.dev in browser it tries to redirects to a site rather than local host?
@user-sv4qp4qv6f
@user-sv4qp4qv6f 5 лет назад
Yes but i cannot find a way to fix it so i go back to ubunut server...
@avatsavirs
@avatsavirs 4 года назад
Yeah. I think .dev extension is the problem here. Try using something else like test.local or test.test or test.random it's working. Do let me know if you figure out how make .dev work.
@DrSpooglemon
@DrSpooglemon 4 года назад
@@avatsavirs test.local worked. Thanks
@victorsokoluik4573
@victorsokoluik4573 4 года назад
@@avatsavirs Thanks man it's also really worck for me.
@mayow6767
@mayow6767 4 года назад
without dot . works for me. example: testlocal
Далее
Working with Linux - Pick your Distro: Pop!_OS
9:06
Просмотров 12 тыс.
Apache Web Server and HTTPS on Linux
46:38
Просмотров 62 тыс.
Linux File System/Structure Explained!
15:59
Просмотров 4 млн
Installing Apache 2.4 & PHP 8.0 on Ubuntu 20.04
10:58
How NVIDIA just beat every other tech company
9:20
Просмотров 1,3 млн
I built 10 web apps... with 10 different languages
14:23