Configure VSCode with XDebug

Check if xdebug is already installed: http://localhost:8080/phpinfo.php
Find the config file (ini file) on the above page then open it
<XDEBUG 2.X>

Make sure it’s enabled

Then restart php7.3-fpm service

Check the xdebug properties on the page above: http://localhost:8080/phpinfo.php

Open VSCode then find and install ‘PHP Debug’ extension
</XDEBUG 2.X>

<XDEBUG 3.X>

ALSO FOR THE OTHERS PHP (7.4, 8.0, 8.1, 8.2)

Make sure it’s enabled

Then restart apache2 service

Check the xdebug properties on the page above: http://localhost:8080/phpinfo.php

</XDEBUG 3.X>

Install Shopware 5

Ref: https://github.com/shopware/shopware (Shopware 5)
https://github.com/shopware/platform (Shopware 6)

Install Shopware 5:
Clone the git to ‘shopware5’ dir:

Go to the dir

Change the files permission

Go to ‘build’dir and use ‘ant’ to build the configuration and database.

If not exist, install it first:

configure:

Build:

Download the test images and extract them. Go to the root directory of your shopware system and download the test images:

BEWARE: the file size about 285MB !!!
Then unzip the file

RUN PHP CLI — OR USE NGINX ??? BECAUSE IT’D REDIRECT TO http://shopware5.test/

THEN OPEN IT ON YOUR BROWSER: http://localhost:8090/shopware.php
NOTE: MUST USE PHP7.2. IF LOWER THAN THAT, IT’D DISPLAY THIS ERROR:

If so, change the php version to 7.2 (min)

Then run the php cli again

NGINX SETUP:

CONTENT: (DONT USE THIS)

USE THIS: (READ: https://websiteforstudents.com/setup-shopware-on-ubuntu-16-04-18-04-lts-with-nginx-mariadb-and-php-7-1-fpm/)

 

Enable file config

 

Register the host on my system

Like this:

CHECK THE NGINX SETTING AND RESTART IT:

CHANGE FILE PERMISSIONS

OPEN IT ON YOUR BROWSER: http://shopware5.test/
IT SHOULD WORK! IF NOT CHECK /var/log/nginx/error.log
AND THE ADMIN PAGE ON http://shopware5.test/backend/
username: demo
password: demo

Frontend users in demo data
Customer: test@example.com / shopware
B2B: mustermann@b2b.de / mustermann

Install Open Journal System (OJS) 3.1.1.4 On Ubuntu 16.04

Download from https://pkp.sfu.ca/ojs/ojs_download/
Extract then run PHP Server to Install.
Make sure all the requirements is fulfilled (PHP, MySQL, Apache, etc)

Fill Administrator Account
username: admin
password: Admin@123

Directory for uploads:/home/teddy/Documents/works/ojs_files
Create the dir : /home/teddy/Documents/works/ojs_files

MySQL Settings
db driver: MySQLi (NOT MySQL)
username: root
password: teddy
dbname: ojs3114

NOTE: Must use db driver MySQLi NOT MySQL. if not I’d get this error:

Install success!
Open http://localhost:8089/index.php/index
or login in http://localhost:8089/index.php/index/login
System info: http://localhost:8089/index.php/index/admin/systemInfoTo upgrade OJS to version 3.1.2.1, pls read https://openjournaltheme.com/how-to-upgrade-ojs-version-3-1-1-to-3-1-2/ then implement its.
Here is the upgraded OJSUser
username: advcha
password: Teddy@123

<FAILED>
NGINX SETUP:

CONTENT:

 

Enable file config

 

Register the host on my system

Like this:

 

CHECK THE NGINX SETTING AND RESTART IT:

Open it on your browser : http://ojs-3121.test
Admin: http://ojs-3121.test/wp-admin
username: admin
password: LF3#F@OPz8
</FAILED>