How to Install XAMPP on MacOS Ventura and configure path for PHP

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing and deployment purposes.
    One of the main advantages of XAMPP is that it is easy to install and use. It includes all of the necessary components to run a web server, such as Apache, MariaDB, PHP, and Perl, in a single package. This allows developers to easily set up a local web server environment on their own computer, without the need to install and configure each component separately.
    XAMPP is popular among developers because it allows them to test their code on a local server before deploying it to a live web server. This can be especially useful for testing new features or making changes to an existing website without affecting the live version.
    In addition to its use as a local web server, XAMPP can also be used to host websites on a network. This makes it a useful tool for small businesses or organizations that need to host their own websites but do not have the resources or expertise to set up and maintain a separate web server.
    Overall, XAMPP is a powerful and easy-to-use tool for developers and website administrators, and it has become a popular choice for setting up local web server environments and hosting websites.
    XAMPP Path Setup
    Step 1:
    First we will have to identify whether our Mac has bash shell or Z shell
    Open the terminal and look in the title for the term bash or zsh
    Step 2:
    Check if shell profile file exists
    Cat ~/.bash_profile
    or
    ~/.zshrc
    depending upon the outcome at step one
    If you get any error of file doesn’t exist, you can create one by following command
    nano ~/.bash_profile
    or
    nano ~/.zshrc
    Step 3:
    To use the XAMPP PHP and other binaries found in /Applications/XAMPP/bin/ by default this is the correct entry for ~/.bash_profile or ~/.zshrc depending upon shell installed on your system
    export XAMPP_HOME=/Applications/XAMPP
    export PATH=${XAMPP_HOME}/bin:${PATH}
    export PATH
    Load the changes with this (won't be needed next time you open a shell session):
    source ~/.bash_profile
    Or
    source ~/.zshrc
    Confirm:
    $ which php
    /Applications/XAMPP/bin/php

Комментарии • 26

  • @TutorialsCollege
    @TutorialsCollege  Год назад +2

    Hello everyone, welcome to our channel. Please feel free to drop your suggestion/advice/queries in the comments below.

  • @serasonproject
    @serasonproject Год назад +1

    Thanks for this video! All good now on Silicon Ventura. 🎉

  • @webemsegundos
    @webemsegundos Год назад +2

    Excellent video and tutorial in text. Thanks a lot!

  • @branislavzivanovic4775
    @branislavzivanovic4775 11 месяцев назад +1

    Worked like a charm! Tnx!

  • @alanproduction910
    @alanproduction910 Год назад +1

    Thank you, this was very helpful!

  • @jarimbi
    @jarimbi Год назад +1

    Thanks so much! Life saver!

  • @Youhann971
    @Youhann971 Год назад +1

    Good video thanks

  • @ghury1
    @ghury1 4 месяца назад

    Xampp on mac does not have intl extension , how do you manage to install it? Its mandatory for most framework

  • @ikbalmursidin5411
    @ikbalmursidin5411 Год назад +1

    thankyou for help ...

  • @SYEDAHMADALI-z4r
    @SYEDAHMADALI-z4r 2 месяца назад

    how to connect mongodb with php in mac OS
    any video?

  • @deepakgupta-eg9lb
    @deepakgupta-eg9lb 4 месяца назад

    Thanx

  • @RioooOiii
    @RioooOiii Год назад +1

    thanks

  • @emanuelmarques1035
    @emanuelmarques1035 9 месяцев назад

    Thanks for everything. Excellent video. 🫶🏽

  • @CaolanNicholas
    @CaolanNicholas 8 месяцев назад

    would this affect my apache web server from starting? as this isn't starting now

    • @TutorialsCollege
      @TutorialsCollege  8 месяцев назад

      Did your machine have a separate installation of Apache as well

  • @Youcan352
    @Youcan352 Год назад

    when I click on the start to run the database, it takes me a while and it does not start. what is the problem, please?

  • @kamilbanaszek8916
    @kamilbanaszek8916 Год назад +1

    after writing "which php" terminas says "zsh: command not found: php"

    • @TutorialsCollege
      @TutorialsCollege  Год назад +1

      I seems that the path was not correctly. If the installation completed successfully, please use commands mentioned in the video description to set the path or trying reinstalling.
      Please let me know if know if you have any further issue.

  • @JamiyanDuurenjargal
    @JamiyanDuurenjargal Год назад

    danke

  • @kawinbalaji.e.m8918
    @kawinbalaji.e.m8918 Год назад

    how to insert the following in Cat ~/.zhrc
    export XAMPP_HOME=/Applications/XAMPP
    export PATH=${XAMPP_HOME}/bin:${PATH}
    export PATH

  • @mohamedeisa3700
    @mohamedeisa3700 Год назад

    Hi ,
    when i write this command nano ~/.zshrc this appear and i don't know where the problem
    # >>> conda initialize >>>
    # !! Contents within this block are managed by 'conda init' !!
    __conda_setup="$('/Users/0xnrous/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2>$
    if [ $? -eq 0 ]; then
    eval "$__conda_setup"
    else
    if [ -f "/Users/0xnrous/opt/anaconda3/etc/profile.d/conda.sh" ]; then
    . "/Users/0xnrous/opt/anaconda3/etc/profile.d/conda.sh"
    else
    export PATH="/Users/0xnrous/opt/anaconda3/bin:$PATH"
    fi
    fi
    unset __conda_setup
    #

  • @nikcompsci
    @nikcompsci Год назад +1

    Thank you, this was very helpful!