Thursday, April 21, 2022

Download and Setting Up PHP 7.4.xx

What is Laravel?

Laravel is a free, open-source PHP web framework for the development of web applications following the MVC architectural pattern and based on Symfony (a web app PHP framework that also relies on the MVC pattern).

Download PHP > 7.4 (Windows 10/8/7)

How to download and install manually:
  • Launch your preferred browser, click >here< and click Downloads on the top menu bar.
  • Click Windows Download for the Old Stable PHP 7.4.xx version.
  • Check your system type, 32-bit or 64-bit.
  • Under thread safe section, click the zip link to start downloading for your specific system.
  • Once complete, unzip the PHP folder.
  • Copy the unzipped folder and paste in your desired drive (C or D). Rename the folder if you want to.
  • Open the PHP folder and look for "php.ini-development". Make a copy of this file and rename it as "php.ini".
  • Open php.ini file with your preferred text editor (VSCode/Sublime etc).
  • Search for "extension_dir" and uncomment like below:


  • Now, open the command prompt, and type in 'php'. "not recognized" message will appear. PHP is not yet set to the system's path.
  • Go to C/D drive (wherever you pasted the PHP folder). Open it and copy the location.
  • Go to Start menu, type "variable".


  • Go to Advanced > Environment Variables > Select 'Path' > Edit > New > Paste the PHP folder location path > ok > ok > ok. (Do this for both path, top and bottom window).
  • Now, restart the command prompt. Type php -version.


  • Type as below.
  • The 'code .' let you open in VS Code. Use 'subl .' to open in Sublime.


  • Try typing:


Done.

3 comments:

  1. Wah saya jumpa geng blogger web development ini!. Btw cakap pasal PHP. sometimes ada sistem kita kena php7 atau php8. Paling penat kalau nak kena tukar enviroment dengan kena ubah setting. Tapi kalau guna laragon easy peasy.

    Salam perkenalan. Harap kita boleh berkenalan lebih lagi

    ReplyDelete
    Replies
    1. Hi! Salam kenal! Wah tak sangka ada jugak blogger malaysia yang minat posting macam ni. Saya buat sambil2 belajar. Alhamdulillah aklau dapat membantu. InshaAllah boleh kenal lebih lagi!

      Delete
    2. Saya minat sebab saya memang dalam bidang programmer (dah nak mula kerja dah). Jadi memang support orang malaysia yang ceburi bidang ini

      Delete

Komen atau sebarang pertanyaan di sini :)

WordPress #3 | How to Change Website URL

Hi. Today we're gonna look at how to change your website URL in case you messed up. In this case, yes, I messed up. That is why this pos...