Easyphp For Mac

titleweight
15

Easyphp Homepage, Mac 20th 2007, 9. A crossflow model for continuous plug flow fluidized bed crossflow dryers.

Now that you intend to develop for PrestaShop, you are better off keeping all your development work on your machine. The main advantage is that it makes it possible for you to entirely bypass the process of uploading your file on your online server in order to test it. Another advantage is that a local test environment enables you to test code without the risk of breaking your production store. Have a local environment is the essential first step in the path of web development.

Prerequisites

Read [System Requirements][system-requirements].

Installing a local environment

Installing any web-application locally requires that you first install the adequate environment, namely the Apache web server, the PHP language interpreter, the MySQL database server, and ideally a MySQL admin tool such as phpMyAdmin tool.

This is called an *AMP package: Apache+MySQL+PHP and the operating system, giving WAMP (Windows+Apache+MySQL+PHP), MAMP (Mac OS X+…) and LAMP (Linux+…). Since all of the items packaged are open-source, these installers are most of the time free.

SSH Agent is a graphical front-end to some of the OpenSSH tools included with Mac OS X. Specifically, it allows you to start an ssh-agent, generate identities, and add identities to an agent. OpenSSL for Mac 2020 full offline installer setup for Mac TLS and SSL cryptographic protocols can be implemented into your projects using the OpenSSL for Mac tool. This is basically an open source library which is compatible with several operating systems for securing data that you transfer online. How to download openssh for mac. Luckily enough Apples new operating system, Mac OS X offers Mac users the ability to utilize this suite of security enhanced software. Building OpenSSH 2.9 on Mac OS X 10.0.x Scott Anguish has written a article to help you install a new version of OpenSSH on Mac OS X and has created a custom install package to ease the process. Free download Portable OpenSSH Portable OpenSSH for Mac OS X. Portable OpenSSH - Normal OpenSSH development produces a very small, secure, and easy to maintain a version of the OpenBSD project. OpenSSH is a free version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks.

Here is a selection of free AMP installers:

  • XAMPP (Windows, Mac OS X, Linux, Solaris)
  • WampServer (Windows)
  • EasyPHP (Windows)
  • MAMP (Mac OS X)
  • Laragon (Windows)

To install LAMP on your computer follow these steps (tested on Debian Buster).

  • Update your system
    • apt update
  • Install MySQL
    • apt install default-mysql-server default-mysql-client
  • Install Apache server
    • apt install apache2
  • Install PHP
    • apt install libapache2-mod-php7.3 php7.3 php7.3-common php7.3-curl php7.3-gd php7.3-imagick php7.3-mbstring php7.3-mysql php7.0-json php7.3-xsl php7.3-intl php7.3-zip

Creating a database for your shop

If you are installing PrestaShop on a web server, then you must create the database and give access to a privileged user.You will need this user's credentials to configure PrestaShop during the installation process.

Using phpMyAdmin

We assume you have root access to phpMyAdmin, and you're using version 4.x.

  • Sign in to phpMyAdmin as the root user
  • Click User accounts, and then click on Add user account
  • Fill the User name and the Password
  • In the Database for user account, select Create database and Grant all privileges
  • Create user and database and make sure the COLLATION of your database is utf8mb4_general_ci

From the command line

The database must be created with 4-Byte UTF-8 encoding (utf8mb4_general_ci).For information on installation and configuring MySQL see the MySQL 5.6 documentation.Connect as root to your MySql server. In this example our root user is called adminusername:

A sstp vpn for mac. Create the database and give it a name like 'prestashop':

Grant privileges to that database to a new user (the one that PrestaShop will use to connect to the database). Let's call it 'prestashopuser'.

In the example above,

  • prestashop is the name of the new database
  • hostname is usually localhost (127.0.0.1 or localhost), if you don't know the value, check with a system adminitrator
  • somepassword must be a strong password and of course, only known by you

Finally, flush privileges:

Downloading PrestaShop

The source code of PrestaShop is hosted on the Official PrestaShop GitHub Repository.

You can find all the released versions of PrestaShop here: PrestaShop releases.

Nightly releases of PrestaShop are also generated daily. Their details can be found on a public Google Cloud storage.

Choosing the right version for you

PrestaShop comes in two 'flavors':

  • Release package. A zip package, tuned for production environments.
  • Development version. The raw source code as it is on the GitHub repository, including automated test suites, build scripts and source codes for assets that are otherwise compiled (like javascript and css files).

{{% notice tip %}}Prefer cloning the repository using git for the development version.

If you intend to work on PrestaShop itself, we suggest using Git to clone the source code of PrestaShop from the GitHub repository.{{% /notice %}}

{{% callout %}}

Repository branches

As stated above, if you decide to work on PrestaShop itself, it's best to clone the PrestaShop repository and work using git. Depending on the version of PrestaShop you want to work on, you will need to choose the right branch:

  • The develop branch contains the current work in progress for the next minor or major version.
    • This is the right branch to contribute new features, refactors, small bug fixes, etc.
  • The maintenance branches (1.6.1.x, 1.7.0.x, 1.7.1.x, 1.7.2.x, ..) contains all patches made for each minor version.
    • For example, the 1.7.2.x branch contains all patches from 1.7.2.0 to 1.7.2.5.
    • Whenever a new minor or major version is ready for release, a new maintenance branch is created. For example, 1.7.0.x for version 1.7.0.0, 1.7.1.x for 1.7.0.0, 1.7.2.x for 1.7.2.0, and so forth.
    • Only the most recent maintenance branch accepts new contributions

{{% /callout %}}

Clone the repository using Git or extract the zip package in a prestashop folder inside the document folder of the AMP installer you chose:

  • XAMPP: C:xampphtdocs or /Applications/xampp/htdocs
  • WampServer: C:wampwww
  • EasyPHP: C:easyphpwww
  • MAMP: /Applications/MAMP/htdocs/

Download dependencies

{{% notice note %}}This step is only needed if you downloaded the development version.{{% /notice %}}

PHP dependencies

Use [composer][composer] to download the project's dependencies:

JavaScript and CSS dependencies

PrestaShop uses NPM to manage dependencies and [Webpack][webpack] to compile them into static assets.You only need NodeJS 8.x (10.x maximum [get it here][nodejs]), NPM will take care of it all.

Alternatively, you can [compile assets][compile-assets] manually.

Setting up file rights

PrestaShop needs recursive write permissions on several directories:

  • ./admin-dev/autoupgrade
  • ./app/config
  • ./app/logs
  • ./app/Resources/translations
  • ./cache
  • ./config
  • ./download
  • ./img
  • ./log
  • ./mails
  • ./modules
  • ./themes
  • ./translations
  • ./upload
  • ./var

You can set up the appropriate permissions using this command:

If you do not have some of the folders above, please create them before changing permissions. For example:

To ease up your life on a development environment, we suggest to make Apache run with your own user and group.

{{% notice warning %}}Never do that in production! Carefully change permissions folder by folder instead.{{% /notice %}}

Installing PrestaShop

Open the PrestaShop installer and follow its instructions.

Depending on whether you downloaded a release package or cloned the repository, the route to the installer will be slightly different:

  • Release package: http://127.0.0.1/prestashop/install
  • Development version: http://127.0.0.1/prestashop/install-dev

You can read the Getting Started guide for more details.

Troubleshooting

Compile Error: Cannot declare class AppKernel, because the name is already in use

You may find this error message the first time you open up the Back Office.

This problem may arise in case-insensitive file systems like MacOS due to a misconfiguration. Check your Apache configuration and make sure that the root directory path to your PrestaShop matches the capitalization of the actual system path exactly. A typical error is for example having a folder named /path/to/PrestaShop (capital P, capital S) and then configuring it in Apache as /path/to/Prestashop (missing the capital S).

[system-requirements]: {{< ref '1.7/basics/installation/system-requirements.md' >}}[compile-assets]: {{< ref '1.7/development/compile-assets.md' >}}[webpack]: https://webpack.js.org/[composer]: https://getcomposer.org/download/[nodejs]: https://nodejs.org/