I have been in school for software development. And i have learned more from your tutorials than from the school. So huge thanks for that. Keep doing what you do Dani!
8:56 FYI: On mac the path should be /Applications/xampp/xamppfiles/bin/php-8.2.4 where 8.2.4 stands for the version number (which may change in the future.)
Feels like I'm learning to take off and fly in a fighter jet my first day on the job. Dani! You are a gifted teacher, my man! Your understanding of what people are thinking when they first approach this is amazing. Thank you so much not just for your terrific help, but for NOT FORGETTING what it's like to start out and what thoughts go through your head as you first approach this. This is a real gift and I thank you so much for focusing so well on keeping people from getting overwhelmed - you are absolutely talented! Cheers!
im going to use this course to learn php and create a web site for a potential client, so i hope you continue this course, because until this moment your way to explain is being really good for a guy like me that have been programming for a couple years now with other backend languages and with web development. Thx for thee content!
Gotta say, I wasn't even looking to really learn php but one thing led to another and now I'm here, I really appreciate how beginner friendly you have made this course and how you break down basically every step into a video. Makes it easier for an ADHDer like myself to not give up when I inevitably get stuck and am only 1/30th the way into a 1 hour video xD
This video demonstrates how to set up a local server for PHP development using XAMPP, including installing the software, configuring the server, and creating a basic PHP file. Key moments: 00:00 Setting up a website using PHP requires installing a local server, like XAMPP, which is easy and safe, allowing offline website development without uploading to the internet. -Different local servers like LAMP, VAMP, XAMPP, and Docker are available for installation, offering various options for setting up a server. -Installing XAMPP is recommended for its ease of setup and familiarity, making it a popular choice among website developers. -Downloading and installing XAMPP involves selecting the appropriate version for your operating system, ensuring a smooth installation process for offline website development. 03:23 To set up a local server for PHP development, you need to install XAMPP, start Apache and MySQL servers, create website folders in htdocs, and edit PHP files in your preferred editor. -Installing XAMPP and starting Apache and MySQL servers are essential for running PHP locally on your computer. -Creating website folders in the htdocs directory allows you to access and manage multiple websites on your local server. -Editing PHP files in your preferred editor, such as Visual Studio Code, enables you to develop and customize your website's functionality. 06:45 PHP files allow for PHP code to run within HTML files seamlessly, enabling conversion of existing HTML websites to PHP by simply changing file extensions. -Setting up PHP in Visual Studio Code may require manual configuration in some cases, ensuring the executable path is correctly linked for PHP installation. -Using PHP tags within HTML files allows for the execution of PHP code, demonstrated by writing and displaying 'hello world' using PHP echo statement. Generated by sider.ai
I truly appreciate how you are addressing concerns that might be daunting for beginners. Your way of reassuring and creating a comfortable learning experience is invaluable.
I have created many wordpress websites, I have worked as a developer in the past (Angular and .Net) and these courses are such a relief..! You are such an excellent teacher! Can't wait to learn :))
THANK YOU, I mainly followed this tutorial just to setup the localhost server bit as I was struggling so bad trying to do it manually (I’m very much new to all of this) xampp finally did the trick.
Love the content Dani! Not sure Im the only one that did this but be careful when you make the htdocs shortcut you dont move the file completely out of xampp as i did. It was an hour of hair pulling frustration for myself 😂
Super helpful! Thank you so much! I'm also in school for software development, but my professors are having us use a virtual environment instead of installing anything locally. You've answered a lot of questions I had, so thanks!! Your videos are the best!
Yes, for safe testing, setting up a local server is good. Yet I found an sFTP Extension for VS Code that you can use an active web server. I ended up using the FTP (21) port instead, as it worked best for my VPS. Through the functions, you download / set the site to a local folder for editing. Works well. 04-16-2023 0141 PT
Prof. Dani Krossing, please MySQL server isn't running on my XAMPP Control Panel. saying "Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums". WHAT SHOULD I DO?
When I run apache it always just says Error: apache shutdown unexpectedly. I see nothing about it in the comments. This is my first time installing xampp. I made sure to install the latest version (8.2) and install it in an unrestricted folder. Will update in the replies if I find a fix.
Hi, Switched over to your updated version, and yes everything went great on my laptop....but not on my tower, Can anyone suggest a tutorial for Brackets editor and php so I can come back and Follow this great tutorial?
'php is used for 78% of websites that we know of in 2023' so WHY wasn't I taught it on a web development course 😭 this tutorial is saving my life right now.
Most courses from my experience, are focusing more on front-end languages, such as HTML, CSS, and JavaScript. 🙂 I remember that 11 years ago when I was at the university, they taught us PHP during my bachelors... However they saw it as a failure, since most people couldn't follow along, because most people didn't have a interest in learning it... So now they are just focusing on teaching JavaScript at a higher level. So I think PHP isn't taught many places, simply because it isn't as "flashy" as JavaScript, and students aren't passionate about it. 😅
Ah I see thank you for clarifying! After 3 months of job hunting I finally got an internship as a web dev and I’m not sure they realised I’ve never used it 🤣 so now I’m trying to learn it ASAP and I couldn’t do it without this playlist. Thank you!
You need to make sure you have quick access to the XAMPP folder you installed. 🙂 This is btw one of the reasons I stopped using Mac for development, back when I had one for work. 😅 Apple doesn't like any 3rd party software on their devices, and will do everything in their power, to make it hard to do.
Thanks for the fast response. Yeah, I tried running in Windows 11 Pro using Parallels and Apache on XAMPP will not Start (error: VCRuntime140.dll missing (?) ) MySQL does start.
That is not a issue. It's just the standard privacy pop up all websites have, and some might even argue that you should just say "no" to all of them. :)
You don't need xampp anymore. You can use the server function of php itself. You can manage easy between versions with brew. A mysql server can be spin up with a docker command or docker-compose file.
Yes you are correct. 🙂 I looked into Docker when a commenter mentioned in the last video, however I still made the decision to go with XAMPP, for the simple reason that it is MUCH easier to comprehend setting up for beginners. Doing what I did in this video, vs what this guy is doing in his video, talks to two different audiences, and will most likely scare people away who are already intimidated by PHP. 😊 ua-cam.com/video/2Bxh5FNGznQ/v-deo.html&ab_channel=VincentStevenson But I definitely think that Docker is worth looking into, as soon as people can comprehend the setup process. 🙂 For this course though, I want as many people on board as possible from the start.
@@Dani_Krossing Thanks for the link. I will give it a look tomorrow morning. Xampp use to give me a lot of headache and made me stop using php. 😂. Everybody has their own experience. Maybe i should give it another try.
If you have Docker up and running then you got yourself a cool tool on hand. 🙂It is definitely an awesome choice over local servers like XAMPP, WAMP, LAMP, LEMP... etc. In the end it doesn't matter what tool you use, as long as it gets the job done. 😊
If I'm building a website with multiple pages should all pages use extension .php if only one (the contact form) actually uses php? or should the others stay as .html?
Hi Danni... I am a long time subscriber and huge fan needless to say... My question is this... I set up XAMPP on a Mac as per your instructions many years ago and the thing that got me was every time I saved my files in the "root" folder of my website, to check they worked with XAMPP I had to drag all my 'new' files over to the htdocs folder and that is as much trouble as uploading to the server in the first place... Can I use the htdocs as my "root" folder in Dreamweaver?
I'm not sure how Dreamweaver functions, but it sounds to me that you have complicated things a bit for yourself. 😬 Why don't you just edit the website directly inside the htdocs folder? 🙂 Editing and working on a version outside the htdocs folder, and then dragging it in every time, sounds like a big workaround?
You should be able to open a Dreamweaver project from anywhere, XAMPP also allows you to set your Dreamweaver folder as the root directory, that restricts you in having only one website but should be the best option 😉
I can't download XAMPP. I clicked on the click here and the download latest version. It just said "File will be ready in 5...4..." then skips to 0 but it doesn't download. I tried using a different browser but the same problem occured.
Hello Dani, I have followed every step of your tutorial and when I tried outputting Hello World on the website, just like you did, it didn't work. That was because somehow it wasn't able to understand the (I can tell, because it didn't turn blue like in your video. I also noticed that when doing this thing were you have to copy this path of php.exe and put it in this code, the only line of code that appeared on my screen was the one I had to put the path in (maybe thats normal, idk). Can somebody pls help me?
i tried downloading xampp on my computer but it fails for some reason first it was the antivirus, says the website is sus. so I puased it for the website then tried to download it will display a button for downloading but when I click it counts down but will never download, can you please give me a solution for this issue or recommend another local server
wait i have a question i cant press run directly i have to always open it from local host? + thank u ive been using online editors for my course but now we have to use the server ..
Yes if you wanna see your website from your computer, you need to do it from localhost every time. It’s always an awkward and slightly annoying process at the start, but it’s how websites are developed once you start implementing PHP. 🙂
i fixed that but when i try to write inside the Visual code program and refresh my localhost i didn't see any thing inside it, how i can know what i do wrong?
sir when i start running the 2 mySql has error 12:13:34 pm [mysql] Status change detected: stopped 12:13:34 pm [mysql] Error: MySQL shutdown unexpectedly. 12:13:34 pm [mysql] This may be due to a blocked port, missing dependencies, 12:13:34 pm [mysql] improper privileges, a crash, or a shutdown by another method. 12:13:34 pm [mysql] Press the Logs button to view error logs and check 12:13:34 pm [mysql] the Windows Event Viewer for more clues 12:13:34 pm [mysql] If you need more help, copy and post this 12:13:34 pm [mysql] entire log window on the forums this is the error can you help me this problem sir?
I've been searching for a tutorial like this for so long... Your video was extremely helpful, but I found a video in Insta WP which explained it better and helped me a lot...
ERROR 15:04:31 [main] Initializing Control Panel 15:04:31 [main] Windows Version: Enterprise 64-bit 15:04:31 [main] XAMPP Version: 8.2.12 15:04:31 [main] Control Panel Version: 3.3.0 [ Compiled: Apr 6th 2021 ] 15:04:31 [main] You are not running with administrator rights! This will work for 15:04:31 [main] most application stuff but whenever you do something with services 15:04:31 [main] there will be a security dialogue or things will break! So think 15:04:31 [main] about running this application with administrator rights! 15:04:31 [main] XAMPP Installation Directory: "d:\programfiles\xampp\" 15:04:31 [main] Checking for prerequisites 15:04:32 [main] All prerequisites found 15:04:32 [main] Initializing Modules 15:04:32 [mysql] Problem detected! 15:04:32 [mysql] Port 3306 in use by "Unable to open process"! 15:04:32 [mysql] MySQL WILL NOT start without the configured ports free! 15:04:32 [mysql] You need to uninstall/disable/reconfigure the blocking application 15:04:32 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port 15:04:32 [main] Starting Check-Timer 15:04:32 [main] Control Panel Ready 15:04:54 [Apache] Attempting to start Apache app... 15:04:55 [Apache] Status change detected: running 15:04:55 [mysql] Problem detected! 15:04:55 [mysql] Port 3306 in use by "Unable to open process"! 15:04:55 [mysql] MySQL WILL NOT start without the configured ports free! 15:04:55 [mysql] You need to uninstall/disable/reconfigure the blocking application 15:04:55 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port 15:04:55 [mysql] Attempting to start MySQL app... 15:04:56 [Apache] Status change detected: stopped 15:04:56 [Apache] Error: Apache shutdown unexpectedly. 15:04:56 [Apache] This may be due to a blocked port, missing dependencies, 15:04:56 [Apache] improper privileges, a crash, or a shutdown by another method. 15:04:56 [Apache] Press the Logs button to view error logs and check 15:04:56 [Apache] the Windows Event Viewer for more clues 15:04:56 [Apache] If you need more help, copy and post this 15:04:57 [Apache] entire log window on the forums 15:04:57 [mysql] Status change detected: running 15:04:57 [mysql] Status change detected: stopped 15:04:57 [mysql] Error: MySQL shutdown unexpectedly. 15:04:57 [mysql] This may be due to a blocked port, missing dependencies, 15:04:57 [mysql] improper privileges, a crash, or a shutdown by another method. 15:04:57 [mysql] Press the Logs button to view error logs and check 15:04:57 [mysql] the Windows Event Viewer for more clues 15:04:57 [mysql] If you need more help, copy and post this 15:04:57 [mysql] entire log window on the forums 15:05:42 [Apache] Attempting to start Apache app... 15:05:42 [Apache] Status change detected: running 15:05:44 [Apache] Status change detected: stopped 15:05:44 [Apache] Error: Apache shutdown unexpectedly. 15:05:44 [Apache] This may be due to a blocked port, missing dependencies, 15:05:44 [Apache] improper privileges, a crash, or a shutdown by another method. 15:05:44 [Apache] Press the Logs button to view error logs and check 15:05:44 [Apache] the Windows Event Viewer for more clues 15:05:44 [Apache] If you need more help, copy and post this 15:05:44 [Apache] entire log window on the forums 15:06:10 [mysql] Problem detected! 15:06:10 [mysql] Port 3306 in use by "Unable to open process"! 15:06:10 [mysql] MySQL WILL NOT start without the configured ports free! 15:06:10 [mysql] You need to uninstall/disable/reconfigure the blocking application 15:06:10 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port 15:06:10 [mysql] Attempting to start MySQL app... 15:06:11 [mysql] Status change detected: running 15:06:11 [mysql] Status change detected: stopped 15:06:11 [mysql] Error: MySQL shutdown unexpectedly. 15:06:11 [mysql] This may be due to a blocked port, missing dependencies, 15:06:11 [mysql] improper privileges, a crash, or a shutdown by another method. 15:06:11 [mysql] Press the Logs button to view error logs and check 15:06:11 [mysql] the Windows Event Viewer for more clues 15:06:11 [mysql] If you need more help, copy and post this 15:06:11 [mysql] entire log window on the forums
When I type localhost, it doesn't display it only says "Forbidden, You don't have permission to access this resource." Please help asap I just want to try and study simple codes. :(
The apache server is needed in order to view your website inside the browser. And the MySQL server is needed in order to access the database system, which we will use later in this course. 🙂
Im sorry for the noob question but why do we need to download XAMPP? Cant we just "download php" on visual studio code and be free to do the same thing?
PHP is a "server-side language", so it only runs on a server. Which is different than languages like HTML, CSS, and JavaScript, which are all "client-side languages", and runs directly inside your browser. So having PHP installed just on it's own, isn't enough, since it won't actually work if your website isn't running on a server. We use tools like XAMPP, in order to very easily run a server, when we are just working on our websites locally on our computer, which allow PHP to work "offline". 🙂 There are of course MANY other ways to create local servers to get this working, but my preferred method is using XAMPP.
You have conflicting ports. My sql is typically already installed as port 80 or 3306 when running local. Apache tries to use the same port which causes conflict
Error: MySQL shutdown unexpectedly. 7:37:03 PM [mysql] This may be due to a blocked port, missing dependencies, 7:37:03 PM [mysql] improper privileges, a crash, or a shutdown by another method. 7:37:03 PM [mysql] Press the Logs button to view error logs and check 7:37:03 PM [mysql] the Windows Event Viewer for more clues 7:37:03 PM [mysql] If you need more help, copy and post this 7:37:03 PM [mysql] entire log window on the forums (everytime i try to start MYSQL this message is sent what should i do and why is it happening?
A couple of things could be wrong here. 🙂 One is that you could be blocking the port that XAMPP uses by default, which is port 3306. This can happen if you have another server software installed, which also uses that port by default. For example if you have MySQL (the standalone software) installed on your PC, then it could be causing it. Another issue, is if your firewall is blocking XAMPP and MySQL. So if you are using a 3rd party firewall program, then double check it isn't doing that. Third, if XAMPP was installed incorrectly (maybe something happened during installation), then you might wanna try re-installing XAMPP. Hope you manage to fix it. 🙂
You can't learn PHP without a server, so like I mentioned in the video, a server is necessary. 🙂 Unless you wanna just practice typing it without ever outputting any of it inside your website....
I converted my html files to php because I need the database access, however it did break my website, im not sure where it is going wrong. Still working on a solution to find the issue so I am still watching but let me know if you can if you have a solution.
If you have a simple HTML website with the .html extension, and you then convert it to the .php extension, then nothing should break. 🙂 It is extremely common to convert your site in this way. The only thing you need to be aware of, is that if you have any links on your website, for example in your header menu, then you need to change the links to match the new .php extensions. So instead of: It should be: If anything else broke, then it wasn't related to changing the extension to PHP.
@@Dani_Krossing youre right, I was using dreamweaver and PHP gets messed up there, I used visual studio and had no problems. I do have a question about the URL itself, I don't want my website pages saying /home.php or /blog.php how do I remove the extension in the URL?
You need to write it in the URL, and not on Google 🙂 otherwise it won’t work. Make sure you type out localhost fully, without clicking and suggestions that may dropdown.
@@Dani_Krossing windows. I have followed your video to the part where i create a new folder and name it my website. Then in your video you open localhost and shows my website. Mine doesn't show anything..I've tried re installing xampp but still no progress
they really should make it possible on mac that you can open the panel on launchpad, i always do it with no matter what app, but this one is kinda annoying 😕
I used to use Mac when I worked as a Multimedia Designer, and ended up swapping to PC after 6 months... There were just too many unnecessary annoyances, like the one you describe. 😕 Mac works GREAT... as long as you only use things, that Apple decided you should use. Best you can do is place XAMPP in your Dock bar at the bottom. 🙂
I have been in school for software development. And i have learned more from your tutorials than from the school. So huge thanks for that.
Keep doing what you do Dani!
This took me like 2 hours to do so i just literally did all what he did and now in just a few minutes i can finally start programming
8:56 FYI: On mac the path should be /Applications/xampp/xamppfiles/bin/php-8.2.4 where 8.2.4 stands for the version number (which may change in the future.)
Worked like a charm! Cheers mate!
Thank you, I couldn't find anything online for this
Doing the lords work ♥ thank you so much
Thank you so much. I've been trying to figure this out for over an hour smh
Feels like I'm learning to take off and fly in a fighter jet my first day on the job. Dani! You are a gifted teacher, my man! Your understanding of what people are thinking when they first approach this is amazing. Thank you so much not just for your terrific help, but for NOT FORGETTING what it's like to start out and what thoughts go through your head as you first approach this. This is a real gift and I thank you so much for focusing so well on keeping people from getting overwhelmed - you are absolutely talented! Cheers!
finally a video that doesn’t rush and explain everything in details. you are really good at explaining and a Great teacher
im going to use this course to learn php and create a web site for a potential client, so i hope you continue this course, because until this moment your way to explain is being really good for a guy like me that have been programming for a couple years now with other backend languages and with web development. Thx for thee content!
Gotta say, I wasn't even looking to really learn php but one thing led to another and now I'm here, I really appreciate how beginner friendly you have made this course and how you break down basically every step into a video. Makes it easier for an ADHDer like myself to not give up when I inevitably get stuck and am only 1/30th the way into a 1 hour video xD
This video demonstrates how to set up a local server for PHP development using XAMPP, including installing the software, configuring the server, and creating a basic PHP file.
Key moments:
00:00 Setting up a website using PHP requires installing a local server, like XAMPP, which is easy and safe, allowing offline website development without uploading to the internet.
-Different local servers like LAMP, VAMP, XAMPP, and Docker are available for installation, offering various options for setting up a server.
-Installing XAMPP is recommended for its ease of setup and familiarity, making it a popular choice among website developers.
-Downloading and installing XAMPP involves selecting the appropriate version for your operating system, ensuring a smooth installation process for offline website development.
03:23 To set up a local server for PHP development, you need to install XAMPP, start Apache and MySQL servers, create website folders in htdocs, and edit PHP files in your preferred editor.
-Installing XAMPP and starting Apache and MySQL servers are essential for running PHP locally on your computer.
-Creating website folders in the htdocs directory allows you to access and manage multiple websites on your local server.
-Editing PHP files in your preferred editor, such as Visual Studio Code, enables you to develop and customize your website's functionality.
06:45 PHP files allow for PHP code to run within HTML files seamlessly, enabling conversion of existing HTML websites to PHP by simply changing file extensions.
-Setting up PHP in Visual Studio Code may require manual configuration in some cases, ensuring the executable path is correctly linked for PHP installation.
-Using PHP tags within HTML files allows for the execution of PHP code, demonstrated by writing and displaying 'hello world' using PHP echo statement.
Generated by sider.ai
I’ve learnt alot from you starting from your html and css tutorials. You are simply the best ever Thank you so much.
I truly appreciate how you are addressing concerns that might be daunting for beginners. Your way of reassuring and creating a comfortable learning experience is invaluable.
One of the best teachers on earth ❤
I have created many wordpress websites, I have worked as a developer in the past (Angular and .Net) and these courses are such a relief..! You are such an excellent teacher! Can't wait to learn :))
Now this is how a setup tutorial should be like 🙂.
THANK YOU, I mainly followed this tutorial just to setup the localhost server bit as I was struggling so bad trying to do it manually (I’m very much new to all of this) xampp finally did the trick.
The tutorial you provided is so easy to understand and I am loving it, hope for more guidance.
One of my best Channel to watch when i started learning to code and specially web development, You just reminded me my starting days. Keep it up
Your detailed explanations helped to install Xampp &local server for PHP
This guy is just awesome. Amazing dynamic teaching and examples
Thank you so much! 🙂 Means a lot
I understood reallywell . Thank you so much!!!! Loved it
Love the content Dani! Not sure Im the only one that did this but be careful when you make the htdocs shortcut you dont move the file completely out of xampp as i did. It was an hour of hair pulling frustration for myself 😂
Super helpful! Thank you so much! I'm also in school for software development, but my professors are having us use a virtual environment instead of installing anything locally. You've answered a lot of questions I had, so thanks!! Your videos are the best!
Thank you so much... you are truly talented in teaching!
Excellent work, Dani!
bro you're the best in explaining fr.
i love how i was studying php in class and i have like exam on it in like 2 days just when i saw dani uploaded this vid
ty mate
Yes, for safe testing, setting up a local server is good. Yet I found an sFTP Extension for VS Code that you can use an active web server. I ended up using the FTP (21) port instead, as it worked best for my VPS. Through the functions, you download / set the site to a local folder for editing. Works well. 04-16-2023 0141 PT
Bro thanks soo much i have been looking around for a video that explains this easily for too long 😅
Thank you for this excellent resource. Very easy for beginners to follow, you are clearly a natural educator. =)
thank you so much sir, im computer engineering student and i have to study XAMPP and PHP for my course "Application Website"
Great mann!!
Looking forward to the next videos!
Beautiful video
Thanks for Sharing.
Prof. Dani Krossing, please MySQL server isn't running on my XAMPP Control Panel. saying "Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums".
WHAT SHOULD I DO?
5:59 Where did the new window come from? Which is writing 1. Select language......
Best teacher! 🙇
this makes alot of sense. thanks
thank you very much for your help 🙏🙏🙏🙏🙏🙏
bro u really helped me, thanks i love you
Fantastic!
I m here for the second lesson 😀
When I run apache it always just says Error: apache shutdown unexpectedly. I see nothing about it in the comments. This is my first time installing xampp. I made sure to install the latest version (8.2) and install it in an unrestricted folder. Will update in the replies if I find a fix.
Same I think the latest version is the problem
You probably need to change the port number
I would suggest you reinstall it offline disable your WiFi and your antivirus
run it as administrator
this gets me back to the 1'st year of Uni :D
Me too hehe. It's been so long since I taught PHP. 😂
awesome
U are a God brother...arigato
Thank you!!!!!
nice
thankyou sir
Thank you dear Mr.dani
I hope you create your videos with facecam
yee it worked!
Hi, Switched over to your updated version, and yes everything went great on my laptop....but not on my tower, Can anyone suggest a tutorial for Brackets editor and php so I can come back and Follow this great tutorial?
Thank you
'php is used for 78% of websites that we know of in 2023' so WHY wasn't I taught it on a web development course 😭 this tutorial is saving my life right now.
Most courses from my experience, are focusing more on front-end languages, such as HTML, CSS, and JavaScript. 🙂
I remember that 11 years ago when I was at the university, they taught us PHP during my bachelors... However they saw it as a failure, since most people couldn't follow along, because most people didn't have a interest in learning it... So now they are just focusing on teaching JavaScript at a higher level.
So I think PHP isn't taught many places, simply because it isn't as "flashy" as JavaScript, and students aren't passionate about it. 😅
Ah I see thank you for clarifying! After 3 months of job hunting I finally got an internship as a web dev and I’m not sure they realised I’ve never used it 🤣 so now I’m trying to learn it ASAP and I couldn’t do it without this playlist. Thank you!
Completely lost me at 6:11. Following along on a Mac. Save file in folder where? Visual Studio or XAAMP? Where did you click?
You need to make sure you have quick access to the XAMPP folder you installed. 🙂
This is btw one of the reasons I stopped using Mac for development, back when I had one for work. 😅 Apple doesn't like any 3rd party software on their devices, and will do everything in their power, to make it hard to do.
Thanks for the fast response. Yeah, I tried running in Windows 11 Pro using Parallels and Apache on XAMPP will not Start (error: VCRuntime140.dll missing (?) ) MySQL does start.
Thanks
best
is live server extension in vs code the same thing?
i accidentaly clicked "no" on the "we value your privacy" box at 1:59, is that a problem and if so how do I fix it?
That is not a issue. It's just the standard privacy pop up all websites have, and some might even argue that you should just say "no" to all of them. :)
like you man
plz..make a video about php IMS !
You don't need xampp anymore. You can use the server function of php itself.
You can manage easy between versions with brew. A mysql server can be spin up with a docker command or docker-compose file.
Yes you are correct. 🙂 I looked into Docker when a commenter mentioned in the last video, however I still made the decision to go with XAMPP, for the simple reason that it is MUCH easier to comprehend setting up for beginners.
Doing what I did in this video, vs what this guy is doing in his video, talks to two different audiences, and will most likely scare people away who are already intimidated by PHP. 😊
ua-cam.com/video/2Bxh5FNGznQ/v-deo.html&ab_channel=VincentStevenson
But I definitely think that Docker is worth looking into, as soon as people can comprehend the setup process. 🙂 For this course though, I want as many people on board as possible from the start.
@@Dani_Krossing Thanks for the link. I will give it a look tomorrow morning.
Xampp use to give me a lot of headache and made me stop using php. 😂.
Everybody has their own experience.
Maybe i should give it another try.
If you have Docker up and running then you got yourself a cool tool on hand. 🙂It is definitely an awesome choice over local servers like XAMPP, WAMP, LAMP, LEMP... etc. In the end it doesn't matter what tool you use, as long as it gets the job done. 😊
If I'm building a website with multiple pages should all pages use extension .php if only one (the contact form) actually uses php? or should the others stay as .html?
Thanks a lot
I've already got a website up and running with html,css. In order to get PHP going do I need to save that website inside on the htdocs folder too?
❤❤❤
What if im using sql server management studio? Can i still use xampp?
Hi Danni... I am a long time subscriber and huge fan needless to say...
My question is this... I set up XAMPP on a Mac as per your instructions many years ago and the thing that got me was every time I saved my files in the "root" folder of my website, to check they worked with XAMPP I had to drag all my 'new' files over to the htdocs folder and that is as much trouble as uploading to the server in the first place...
Can I use the htdocs as my "root" folder in Dreamweaver?
I'm not sure how Dreamweaver functions, but it sounds to me that you have complicated things a bit for yourself. 😬 Why don't you just edit the website directly inside the htdocs folder? 🙂 Editing and working on a version outside the htdocs folder, and then dragging it in every time, sounds like a big workaround?
You should be able to open a Dreamweaver project from anywhere, XAMPP also allows you to set your Dreamweaver folder as the root directory, that restricts you in having only one website but should be the best option 😉
Thank you both for the replies. I'll give htdocs a go as root folder and hopefully increase productivity.
Appreciated.
😊
can you make a video tutorial for visual studio code because my vsvcode said "no such file directory"
I can't download XAMPP. I clicked on the click here and the download latest version. It just said "File will be ready in 5...4..." then skips to 0 but it doesn't download. I tried using a different browser but the same problem occured.
Hello Dani,
I have followed every step of your tutorial and when I tried outputting Hello World on the website, just like you did, it didn't work. That was because somehow it wasn't able to understand the (I can tell, because it didn't turn blue like in your video. I also noticed that when doing this thing were you have to copy this path of php.exe and put it in this code, the only line of code that appeared on my screen was the one I had to put the path in (maybe thats normal, idk). Can somebody pls help me?
so first before i take this tutorial should i learn first html ?
Yes. It’s not “required”, however most PHP is done alongside HTML, so you will struggle with some parts if you don’t know it.
How do you do this on mac?
i tried downloading xampp on my computer but it fails for some reason
first it was the antivirus, says the website is sus. so I puased it for the website then tried to download it will display a button for downloading but when I click it counts down but will never download, can you please give me a solution for this issue or recommend another local server
wait i have a question i cant press run directly i have to always open it from local host? + thank u ive been using online editors for my course but now we have to use the server ..
Yes if you wanna see your website from your computer, you need to do it from localhost every time.
It’s always an awkward and slightly annoying process at the start, but it’s how websites are developed once you start implementing PHP. 🙂
i fixed that but when i try to write inside the Visual code program and refresh my localhost i didn't see any thing inside it, how i can know what i do wrong?
sir when i start running the 2 mySql has error
12:13:34 pm [mysql] Status change detected: stopped
12:13:34 pm [mysql] Error: MySQL shutdown unexpectedly.
12:13:34 pm [mysql] This may be due to a blocked port, missing dependencies,
12:13:34 pm [mysql] improper privileges, a crash, or a shutdown by another method.
12:13:34 pm [mysql] Press the Logs button to view error logs and check
12:13:34 pm [mysql] the Windows Event Viewer for more clues
12:13:34 pm [mysql] If you need more help, copy and post this
12:13:34 pm [mysql] entire log window on the forums
this is the error can you help me this problem sir?
holy probs ha ha thanks
I've been searching for a tutorial like this for so long... Your video was extremely helpful, but I found a video in Insta WP which explained it better and helped me a lot...
My is not installing xampp-control.exe
Only have xampp-control. Any help, please?
ERROR
15:04:31 [main] Initializing Control Panel
15:04:31 [main] Windows Version: Enterprise 64-bit
15:04:31 [main] XAMPP Version: 8.2.12
15:04:31 [main] Control Panel Version: 3.3.0 [ Compiled: Apr 6th 2021 ]
15:04:31 [main] You are not running with administrator rights! This will work for
15:04:31 [main] most application stuff but whenever you do something with services
15:04:31 [main] there will be a security dialogue or things will break! So think
15:04:31 [main] about running this application with administrator rights!
15:04:31 [main] XAMPP Installation Directory: "d:\programfiles\xampp\"
15:04:31 [main] Checking for prerequisites
15:04:32 [main] All prerequisites found
15:04:32 [main] Initializing Modules
15:04:32 [mysql] Problem detected!
15:04:32 [mysql] Port 3306 in use by "Unable to open process"!
15:04:32 [mysql] MySQL WILL NOT start without the configured ports free!
15:04:32 [mysql] You need to uninstall/disable/reconfigure the blocking application
15:04:32 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
15:04:32 [main] Starting Check-Timer
15:04:32 [main] Control Panel Ready
15:04:54 [Apache] Attempting to start Apache app...
15:04:55 [Apache] Status change detected: running
15:04:55 [mysql] Problem detected!
15:04:55 [mysql] Port 3306 in use by "Unable to open process"!
15:04:55 [mysql] MySQL WILL NOT start without the configured ports free!
15:04:55 [mysql] You need to uninstall/disable/reconfigure the blocking application
15:04:55 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
15:04:55 [mysql] Attempting to start MySQL app...
15:04:56 [Apache] Status change detected: stopped
15:04:56 [Apache] Error: Apache shutdown unexpectedly.
15:04:56 [Apache] This may be due to a blocked port, missing dependencies,
15:04:56 [Apache] improper privileges, a crash, or a shutdown by another method.
15:04:56 [Apache] Press the Logs button to view error logs and check
15:04:56 [Apache] the Windows Event Viewer for more clues
15:04:56 [Apache] If you need more help, copy and post this
15:04:57 [Apache] entire log window on the forums
15:04:57 [mysql] Status change detected: running
15:04:57 [mysql] Status change detected: stopped
15:04:57 [mysql] Error: MySQL shutdown unexpectedly.
15:04:57 [mysql] This may be due to a blocked port, missing dependencies,
15:04:57 [mysql] improper privileges, a crash, or a shutdown by another method.
15:04:57 [mysql] Press the Logs button to view error logs and check
15:04:57 [mysql] the Windows Event Viewer for more clues
15:04:57 [mysql] If you need more help, copy and post this
15:04:57 [mysql] entire log window on the forums
15:05:42 [Apache] Attempting to start Apache app...
15:05:42 [Apache] Status change detected: running
15:05:44 [Apache] Status change detected: stopped
15:05:44 [Apache] Error: Apache shutdown unexpectedly.
15:05:44 [Apache] This may be due to a blocked port, missing dependencies,
15:05:44 [Apache] improper privileges, a crash, or a shutdown by another method.
15:05:44 [Apache] Press the Logs button to view error logs and check
15:05:44 [Apache] the Windows Event Viewer for more clues
15:05:44 [Apache] If you need more help, copy and post this
15:05:44 [Apache] entire log window on the forums
15:06:10 [mysql] Problem detected!
15:06:10 [mysql] Port 3306 in use by "Unable to open process"!
15:06:10 [mysql] MySQL WILL NOT start without the configured ports free!
15:06:10 [mysql] You need to uninstall/disable/reconfigure the blocking application
15:06:10 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
15:06:10 [mysql] Attempting to start MySQL app...
15:06:11 [mysql] Status change detected: running
15:06:11 [mysql] Status change detected: stopped
15:06:11 [mysql] Error: MySQL shutdown unexpectedly.
15:06:11 [mysql] This may be due to a blocked port, missing dependencies,
15:06:11 [mysql] improper privileges, a crash, or a shutdown by another method.
15:06:11 [mysql] Press the Logs button to view error logs and check
15:06:11 [mysql] the Windows Event Viewer for more clues
15:06:11 [mysql] If you need more help, copy and post this
15:06:11 [mysql] entire log window on the forums
When I type localhost, it doesn't display it only says "Forbidden, You don't have permission to access this resource." Please help asap I just want to try and study simple codes. :(
How do you work with sooo many shortcuts on the Taskbar 😵🤣
Make a short about converting your html website to php 😉
I dont have php.exe for some reason in my xamp folder...
after install XAMPP on my C drive, I can't connect to mySQL server. How can I fix it?
What is the Apache and Mysql want start when you try to do this
The apache server is needed in order to view your website inside the browser. And the MySQL server is needed in order to access the database system, which we will use later in this course. 🙂
Can we do same on linux? (Delete all in htdocs and replace with the actual websites we build)
I’m pretty sure it’s the same. I have newer used Linux, but I can’t imagine this step being any different. 🙂
@Dani_Krossing thank you for the fast reply I couldn't imagine 😄 BTW your tutorials are really useful 💜
Hi. Can you give us if you know other programming language links. Like java python c#....
I have a few C# courses on my channel 🙂 they can be found on my channel page
@@Dani_Krossing thank you I will see☆
Is XAMPP a server simulator for a local computer. Is not actually a real computer dedicated server right?
Yes
Im sorry for the noob question but why do we need to download XAMPP? Cant we just "download php" on visual studio code and be free to do the same thing?
PHP is a "server-side language", so it only runs on a server. Which is different than languages like HTML, CSS, and JavaScript, which are all "client-side languages", and runs directly inside your browser.
So having PHP installed just on it's own, isn't enough, since it won't actually work if your website isn't running on a server.
We use tools like XAMPP, in order to very easily run a server, when we are just working on our websites locally on our computer, which allow PHP to work "offline". 🙂
There are of course MANY other ways to create local servers to get this working, but my preferred method is using XAMPP.
@@Dani_Krossing Thank you!
Hi Dani, i followed the tutorial but whenever i start the mysql it stops, please help
because I have other sql apps the mySQL part of the Xamp does not run for me what should I do about it
You have conflicting ports. My sql is typically already installed as port 80 or 3306 when running local. Apache tries to use the same port which causes conflict
Error: MySQL shutdown unexpectedly.
7:37:03 PM [mysql] This may be due to a blocked port, missing dependencies,
7:37:03 PM [mysql] improper privileges, a crash, or a shutdown by another method.
7:37:03 PM [mysql] Press the Logs button to view error logs and check
7:37:03 PM [mysql] the Windows Event Viewer for more clues
7:37:03 PM [mysql] If you need more help, copy and post this
7:37:03 PM [mysql] entire log window on the forums (everytime i try to start MYSQL this message is sent what should i do and why is it happening?
A couple of things could be wrong here. 🙂
One is that you could be blocking the port that XAMPP uses by default, which is port 3306.
This can happen if you have another server software installed, which also uses that port by default. For example if you have MySQL (the standalone software) installed on your PC, then it could be causing it.
Another issue, is if your firewall is blocking XAMPP and MySQL. So if you are using a 3rd party firewall program, then double check it isn't doing that.
Third, if XAMPP was installed incorrectly (maybe something happened during installation), then you might wanna try re-installing XAMPP.
Hope you manage to fix it. 🙂
@@Dani_Krossing thank you so much it was my SQL and btw youre really great at what you're doing please continue
Alright I'm just suposed learn php ...thanks anyway
You can't learn PHP without a server, so like I mentioned in the video, a server is necessary. 🙂 Unless you wanna just practice typing it without ever outputting any of it inside your website....
I converted my html files to php because I need the database access, however it did break my website, im not sure where it is going wrong. Still working on a solution to find the issue so I am still watching but let me know if you can if you have a solution.
If you have a simple HTML website with the .html extension, and you then convert it to the .php extension, then nothing should break. 🙂 It is extremely common to convert your site in this way.
The only thing you need to be aware of, is that if you have any links on your website, for example in your header menu, then you need to change the links to match the new .php extensions.
So instead of:
It should be:
If anything else broke, then it wasn't related to changing the extension to PHP.
@@Dani_Krossing youre right, I was using dreamweaver and PHP gets messed up there, I used visual studio and had no problems. I do have a question about the URL itself, I don't want my website pages saying /home.php or /blog.php how do I remove the extension in the URL?
Please mine is showing me, Error: Apache shutdown unexpectedly
plz when i wrote localhost on Google didn't happen like u so what i can do?
You need to write it in the URL, and not on Google 🙂 otherwise it won’t work. Make sure you type out localhost fully, without clicking and suggestions that may dropdown.
hi,nice video but i have a problem ....when i open localhost it does not open.kindly advice
Mac or Windows? And did you make sure to start the servers, and delete the pre-installed files inside the "htdocs" folder?
@@Dani_Krossing windows. I have followed your video to the part where i create a new folder and name it my website. Then in your video you open localhost and shows my website. Mine doesn't show anything..I've tried re installing xampp but still no progress
why don't I have a php.exe file on my xampp php
they really should make it possible on mac that you can open the panel on launchpad, i always do it with no matter what app, but this one is kinda annoying 😕
I used to use Mac when I worked as a Multimedia Designer, and ended up swapping to PC after 6 months... There were just too many unnecessary annoyances, like the one you describe. 😕
Mac works GREAT... as long as you only use things, that Apple decided you should use.
Best you can do is place XAMPP in your Dock bar at the bottom. 🙂