<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sick Sadist</title>
    <description>The latest articles on DEV Community by Sick Sadist (@prunepal333).</description>
    <link>https://dev.to/prunepal333</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F861810%2F5bfa9e05-550d-4423-9166-905aad7e850a.png</url>
      <title>DEV Community: Sick Sadist</title>
      <link>https://dev.to/prunepal333</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prunepal333"/>
    <language>en</language>
    <item>
      <title>How to install pimcore community edition in ubuntu?</title>
      <dc:creator>Sick Sadist</dc:creator>
      <pubDate>Fri, 13 May 2022 09:29:00 +0000</pubDate>
      <link>https://dev.to/prunepal333/how-to-install-pimcore-community-edition-in-ubuntu-2md2</link>
      <guid>https://dev.to/prunepal333/how-to-install-pimcore-community-edition-in-ubuntu-2md2</guid>
      <description>&lt;p&gt;&lt;strong&gt;How to install PIMCORE in Ubuntu 20.04&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I will try to keep the process as minimal as possible. So, I will avoid some configuration that is not mandatory but recommended to use Pimcore for production environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Check for requirements&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Make sure you have the following extensions installed.&lt;br&gt;
(mysql, iconv, dom, xml, gd, exif, mbstring, zlib, zip, intl, opcache, curl)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
sudo apt install php-mysql php-iconv php-dom php-xml php-gd php-exif php-mbstring php-zlib php-zip php-intl php-opcache php-curl -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(You can check for the all the installed extension using following command.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php -m&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make sure you have database installed on your system.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install mariadb-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Change the directory where you want your pimcore installation to be located. For example:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /your/project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Make sure you have composer installed and available from your path.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget -O composer-setup.php https://getcomposer.org/installer &amp;amp;&amp;amp; sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Creating our first pimcore project using composer.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo your_project_name_here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Setting up database(MySQL)&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Creating database and a new user credentials
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo chown mysql:mysql -R /var/lib/mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(This command changes the ownership of /var/lib/mysql directory recursively to mysql.&lt;br&gt;
)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl restart mysql
sudo mysql -u root -p
mysql&amp;gt; CREATE DATABASE yourdbname CHARSET=utf8mb4;
mysql&amp;gt; CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
mysql&amp;gt; GRANT ALL ON yourdbname.* TO 'username'@'localhost';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Installation of pimcore:&lt;br&gt;
(Make sure you are inside the project's directory)&lt;br&gt;
Run the following command:&lt;br&gt;
You should try one of the two (interactive or non-interactive) based on your preferences.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Interactive
./vendor/bin/pimcore-install
(An interactive prompt will be generated where you need to provide credentials used by pimcore)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@NonInteractive
./vendor/bin/pimcore-install --admin-username adminuser --admin-password adminpass --mysql-username username --mysql-password password --mysql-database yourdbname --no-interaction
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_Check whether pimcore is working_
Change the directory to project's root.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;symfony serve:start&lt;br&gt;
symfony open:local&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

**ALTERNATIVE**

For those who have not installed symfony cli.
1. `php -S localhost:8000`
2. Open _localhost:8000_ in your favorite browser. 

**-----END-----**
If everything goes right, you will see a webpage being displayed.

To access dashboard, login to _localhost:8000/admin_ with  admin credentials created during pimcore-install.



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>pimcore</category>
      <category>installation</category>
      <category>ubuntu</category>
      <category>php</category>
    </item>
  </channel>
</rss>
