REL-0.12 Doc: How to setup Joomla

This commit is contained in:
cytopia 2017-10-03 12:45:37 +02:00
parent cc0c947d6b
commit f454a032c9
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
5 changed files with 114 additions and 58 deletions

View File

@ -239,6 +239,7 @@ As far as tested there are no limitations and you can use any Framework or CMS j
[![CakePHP](docs/img/logos/cake.png)](https://cakephp.org) [![CakePHP](docs/img/logos/cake.png)](https://cakephp.org)
[![Drupal](docs/img/logos/drupal.png)](https://www.drupal.org) [![Drupal](docs/img/logos/drupal.png)](https://www.drupal.org)
[![Joomla](docs/img/logos/joomla.png)](https://www.joomla.org)
[![Laravel](docs/img/logos/laravel.png)](https://laravel.com) [![Laravel](docs/img/logos/laravel.png)](https://laravel.com)
[![Phalcon](docs/img/logos/phalcon.png)](https://phalconphp.com) [![Phalcon](docs/img/logos/phalcon.png)](https://phalconphp.com)
[![Symfony](docs/img/logos/symfony.png)](https://symfony.com) [![Symfony](docs/img/logos/symfony.png)](https://symfony.com)
@ -351,12 +352,13 @@ The devilbox documentation consists of the following main sections.
2. [Project setup](docs/Examples.md#2-project-setup) 2. [Project setup](docs/Examples.md#2-project-setup)
1. [Setup CakePHP](docs/Examples.md#21-setup-cakephp) 1. [Setup CakePHP](docs/Examples.md#21-setup-cakephp)
2. [Setup Drupal](docs/Examples.md#22-setup-drupal) 2. [Setup Drupal](docs/Examples.md#22-setup-drupal)
3. [Setup Laravel](docs/Examples.md#23-setup-laravel) 3. [Setup Joomla](docs/Examples.md#23-setup-joomla)
4. [Setup Phalcon](docs/Examples.md#24-setup-phalcon) 4. [Setup Laravel](docs/Examples.md#24-setup-laravel)
5. [Setup Symfony](docs/Examples.md#25-setup-symfony) 5. [Setup Phalcon](docs/Examples.md#25-setup-phalcon)
6. [Setup Wordpress](docs/Examples.md#26-setup-wordpress) 6. [Setup Symfony](docs/Examples.md#26-setup-symfony)
7. [Setup Yii](docs/Examples.md#27-setup-yii) 7. [Setup Wordpress](docs/Examples.md#27-setup-wordpress)
8. [Setup Zend](docs/Examples.md#28-setup-zend) 8. [Setup Yii](docs/Examples.md#28-setup-yii)
9. [Setup Zend](docs/Examples.md#29-setup-zend)
3. [Code analysis](docs/Examples.md#3-code-analysis) 3. [Code analysis](docs/Examples.md#3-code-analysis)
1. [awesome-ci](docs/Examples.md#31-awesome-ci) 1. [awesome-ci](docs/Examples.md#31-awesome-ci)
2. [phpcs](docs/Examples.md#32-phpcs) 2. [phpcs](docs/Examples.md#32-phpcs)

View File

@ -24,12 +24,13 @@ Examples |
2. [Project setup](#2-project-setup) 2. [Project setup](#2-project-setup)
1. [Setup CakePHP](#21-setup-cakephp) 1. [Setup CakePHP](#21-setup-cakephp)
2. [Setup Drupal](#22-setup-drupal) 2. [Setup Drupal](#22-setup-drupal)
3. [Setup Laravel](#23-setup-laravel) 3. [Setup Joomla](#23-setup-joomla)
4. [Setup Phalcon](#24-setup-phalcon) 4. [Setup Laravel](#24-setup-laravel)
5. [Setup Symfony](#25-setup-symfony) 5. [Setup Phalcon](#25-setup-phalcon)
6. [Setup Wordpress](#26-setup-wordpress) 6. [Setup Symfony](#26-setup-symfony)
7. [Setup Yii](#27-setup-yii) 7. [Setup Wordpress](#27-setup-wordpress)
8. [Setup Zend](#28-setup-zend) 8. [Setup Yii](#28-setup-yii)
9. [Setup Zend](#29-setup-zend)
3. [Code analysis](#3-code-analysis) 3. [Code analysis](#3-code-analysis)
1. [awesome-ci](#31-awesome-ci) 1. [awesome-ci](#31-awesome-ci)
2. [phpcs](#32-phpcs) 2. [phpcs](#32-phpcs)
@ -96,19 +97,19 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-cake devilbox@php-7.0.20 in /shared/httpd $ mkdir my-cake
devilbox@php-7.0.20 in /shared/httpd $ cd my-cake
# 3. Install CakePHP via composer # 3. Install CakePHP via composer
devilbox@php-7.0.20 in /shared/httpd $ cd my-cake devilbox@php-7.0.20 in /shared/httpd/my-cake $ composer create-project --prefer-dist cakephp/app cakephp
devilbox@php-7.0.20 in /shared/httpd $ composer create-project --prefer-dist cakephp/app cakephp
# 4. Symlink webroot directory # 4. Symlink webroot directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s cakephp/webroot/ htdocs devilbox@php-7.0.20 in /shared/httpd/my-cake $ ln -s cakephp/webroot/ htdocs
# 5. Add MySQL datbase # 5. Add MySQL datbase
devilbox@php-7.0.20 in /shared/httpd $ mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_cake;' devilbox@php-7.0.20 in /shared/httpd/my-cake $ mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_cake;'
# 6. Configure datbase connection # 6. Configure datbase connection
devilbox@php-7.0.20 in /shared/httpd $ vi cakephp/config/app.php devilbox@php-7.0.20 in /shared/httpd/my-cake $ vi cakephp/config/app.php
``` ```
```php ```php
<?php <?php
@ -169,13 +170,13 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-drupal devilbox@php-7.0.20 in /shared/httpd $ mkdir my-drupal
devilbox@php-7.0.20 in /shared/httpd $ cd my-drupal
# 3. Install Drupal via drush # 3. Install Drupal via drush
devilbox@php-7.0.20 in /shared/httpd $ cd my-drupal devilbox@php-7.0.20 in /shared/httpd/my-drupal $ drush dl drupal
devilbox@php-7.0.20 in /shared/httpd $ drush dl drupal
# 4. Symlink Drupal directory # 4. Symlink Drupal directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s drupal-8.3.3 htdocs devilbox@php-7.0.20 in /shared/httpd/my-drupal $ ln -s drupal-8.3.3 htdocs
``` ```
**5. DNS record** **5. DNS record**
@ -191,8 +192,55 @@ Open your browser at http://my-drupal.loc and follow the Drupal installation ste
**Note:** For MySQL host choose `127.0.0.1`. **Note:** For MySQL host choose `127.0.0.1`.
#### 2.3 Setup Joomla
#### 2.3 Setup Laravel > **[Official Joomla Documentation](https://docs.joomla.org/J3.x:Installing_Joomla)**
The following configuration will be used:
| Project name | VirtualHost directory | Database | TLD_SUFFIX | Url |
|--------------|-----------------------|------------|------------|-----|
| my-joomla | /shared/httpd/my-joomla | - | loc | http://my-joomla.loc |
It will be ready in six simple steps:
1. Enter the PHP container
2. Create a new VirtualHost directory
3. Download and extract Joomla
4. Symlink public directory
5. Setup DNS record
6. Visit http://my-joomla.loc in your browser
```shell
# 1. Enter the PHP container
host> ./shell.sh
# 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-joomla
devilbox@php-7.0.20 in /shared/httpd $ cd my-joomla
# 3. Download and extract Joomla
devilbox@php-7.0.20 in /shared/httpd/my-joomla $ wget -O joomla.tar.gz https://downloads.joomla.org/cms/joomla3/3-8-0/joomla_3-8-0-stable-full_package-tar-gz?format=gz
devilbox@php-7.0.20 in /shared/httpd/my-joomla $ mkdir joomla/
devilbox@php-7.0.20 in /shared/httpd/my-joomla $ tar xvfz joomla.tar.gz -C joomla/
# 4. Symlink Joomla directory
devilbox@php-7.0.20 in /shared/httpd/my-joomla $ ln -s joomla htdocs
```
**5. DNS record**
If you do not have auto-DNS configured, you will need to add the following line to your Host computer's `/etc/hosts`:
```shell
127.0.0.1 my-joomla.loc
```
**6. Open your browser**
Open your browser at http://my-joomla.loc
#### 2.4 Setup Laravel
> **[Official Laravel Documentation](https://laravel.com/docs/5.4/installation)** > **[Official Laravel Documentation](https://laravel.com/docs/5.4/installation)**
@ -217,13 +265,13 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-laravel devilbox@php-7.0.20 in /shared/httpd $ mkdir my-laravel
devilbox@php-7.0.20 in /shared/httpd $ cd my-laravel
# 3. Install Laravel via laravel # 3. Install Laravel via laravel
devilbox@php-7.0.20 in /shared/httpd $ cd my-laravel devilbox@php-7.0.20 in /shared/httpd/my-laravel $ laravel new laravel-project
devilbox@php-7.0.20 in /shared/httpd $ laravel new laravel-project
# 4. Symlink public directory # 4. Symlink public directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s laravel-project/public htdocs devilbox@php-7.0.20 in /shared/httpd/my-laravel $ ln -s laravel-project/public htdocs
``` ```
**5. DNS record** **5. DNS record**
@ -238,7 +286,7 @@ If you do not have auto-DNS configured, you will need to add the following line
Open your browser at http://my-laravel.loc Open your browser at http://my-laravel.loc
#### 2.4 Setup Phalcon #### 2.5 Setup Phalcon
> **[Official Phalcon Documentation](https://docs.phalconphp.com/en/3.2/devtools-usage)** > **[Official Phalcon Documentation](https://docs.phalconphp.com/en/3.2/devtools-usage)**
@ -263,13 +311,13 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-phalcon devilbox@php-7.0.20 in /shared/httpd $ mkdir my-phalcon
devilbox@php-7.0.20 in /shared/httpd $ cd my-phalcon
# 3. Install Phalcon via phalcon # 3. Install Phalcon via phalcon
devilbox@php-7.0.20 in /shared/httpd $ cd my-phalcon devilbox@php-7.0.20 in /shared/httpd/my-phalcon $ phalcon project phalconphp
devilbox@php-7.0.20 in /shared/httpd $ phalcon project phalconphp
# 4. Symlink public directory # 4. Symlink public directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s phalconphp/public htdocs devilbox@php-7.0.20 in /shared/httpd/my-phalcon $ ln -s phalconphp/public htdocs
``` ```
**5. DNS record** **5. DNS record**
@ -284,7 +332,7 @@ If you do not have auto-DNS configured, you will need to add the following line
Open your browser at http://my-phalcon.loc Open your browser at http://my-phalcon.loc
#### 2.5 Setup Symfony #### 2.6 Setup Symfony
> **[Official Symfony Documentation](https://symfony.com/doc/current/setup.html)** > **[Official Symfony Documentation](https://symfony.com/doc/current/setup.html)**
@ -310,17 +358,17 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-symfony devilbox@php-7.0.20 in /shared/httpd $ mkdir my-symfony
devilbox@php-7.0.20 in /shared/httpd $ cd my-symfony
# 3. Install Symfony via symfony # 3. Install Symfony via symfony
devilbox@php-7.0.20 in /shared/httpd $ cd my-symfony devilbox@php-7.0.20 in /shared/httpd/my-symfony $ symfony new symfony
devilbox@php-7.0.20 in /shared/httpd $ symfony new symfony
# 4. Symlink web directory # 4. Symlink web directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s symfony/web htdocs devilbox@php-7.0.20 in /shared/httpd/my-symfony $ ln -s symfony/web htdocs
# 5. Enable Symfony production (app.php) # 5. Enable Symfony production (app.php)
devilbox@php-7.0.20 in /shared/httpd $ cd symfony/web devilbox@php-7.0.20 in /shared/httpd/my-symfony $ cd symfony/web
devilbox@php-7.0.20 in /shared/httpd $ ln -s app.php index.php devilbox@php-7.0.20 in /shared/httpd/my-symfony/symfony/web $ ln -s app.php index.php
``` ```
**6. DNS record** **6. DNS record**
@ -335,7 +383,7 @@ If you do not have auto-DNS configured, you will need to add the following line
Open your browser at http://my-symfony.loc Open your browser at http://my-symfony.loc
#### 2.6 Setup Wordpress #### 2.7 Setup Wordpress
> **[Official Wordpress Documentation](https://codex.wordpress.org/Installing_WordPress)** > **[Official Wordpress Documentation](https://codex.wordpress.org/Installing_WordPress)**
@ -360,13 +408,13 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-wp devilbox@php-7.0.20 in /shared/httpd $ mkdir my-wp
devilbox@php-7.0.20 in /shared/httpd $ cd my-wp
# 3. Download Wordpress via git # 3. Download Wordpress via git
devilbox@php-7.0.20 in /shared/httpd $ cd my-wp devilbox@php-7.0.20 in /shared/httpd/my-wp $ git clone https://github.com/WordPress/WordPress wordpress.git
devilbox@php-7.0.20 in /shared/httpd $ git clone https://github.com/WordPress/WordPress wordpress.git
# 4. Symlink wordpress git directory # 4. Symlink wordpress git directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s wordpress.git htdocs devilbox@php-7.0.20 in /shared/httpd/my-wp $ ln -s wordpress.git htdocs
``` ```
**5. DNS record** **5. DNS record**
@ -381,7 +429,7 @@ If you do not have auto-DNS configured, you will need to add the following line
Open your browser at http://my-wp.loc Open your browser at http://my-wp.loc
#### 2.7 Setup Yii #### 2.8 Setup Yii
> **[Official Yii Documentation](http://www.yiiframework.com/doc-2.0/guide-start-installation.html)** > **[Official Yii Documentation](http://www.yiiframework.com/doc-2.0/guide-start-installation.html)**
@ -406,13 +454,13 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-yii devilbox@php-7.0.20 in /shared/httpd $ mkdir my-yii
devilbox@php-7.0.20 in /shared/httpd $ cd my-yii
# 3. Install Yii2 via composer # 3. Install Yii2 via composer
devilbox@php-7.0.20 in /shared/httpd $ cd my-yii devilbox@php-7.0.20 in /shared/httpd/my-yii $ composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic yii2-dev
devilbox@php-7.0.20 in /shared/httpd $ composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic yii2-dev
# 4. Symlink web directory # 4. Symlink web directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s yii2-dev/web htdocs devilbox@php-7.0.20 in /shared/httpd/my-yii $ ln -s yii2-dev/web htdocs
``` ```
**5. DNS record** **5. DNS record**
@ -427,7 +475,7 @@ If you do not have auto-DNS configured, you will need to add the following line
Open your browser at http://my-yii.loc Open your browser at http://my-yii.loc
#### 2.8 Setup Zend #### 2.9 Setup Zend
> **[Official Zend Documentation](https://docs.zendframework.com/tutorials/getting-started/skeleton-application/)** > **[Official Zend Documentation](https://docs.zendframework.com/tutorials/getting-started/skeleton-application/)**
@ -452,13 +500,13 @@ host> ./shell.sh
# 2. Create a new VirtualHost directory # 2. Create a new VirtualHost directory
devilbox@php-7.0.20 in /shared/httpd $ mkdir my-zend devilbox@php-7.0.20 in /shared/httpd $ mkdir my-zend
devilbox@php-7.0.20 in /shared/httpd $ cd my-zend
# 3. Install Zendframework via composer # 3. Install Zendframework via composer
devilbox@php-7.0.20 in /shared/httpd $ cd my-zend devilbox@php-7.0.20 in /shared/httpd/my-zend $ composer create-project --prefer-dist zendframework/skeleton-application zend
devilbox@php-7.0.20 in /shared/httpd $ composer create-project --prefer-dist zendframework/skeleton-application zend
# 4. Symlink public directory # 4. Symlink public directory
devilbox@php-7.0.20 in /shared/httpd $ ln -s zend/public htdocs devilbox@php-7.0.20 in /shared/httpd/my-zend $ ln -s zend/public htdocs
``` ```
**5. DNS record** **5. DNS record**

View File

@ -40,6 +40,7 @@ FAQ
3. **[Usage](#3-usage)** 3. **[Usage](#3-usage)**
- [Does it work with CakePHP?](#does-it-work-with-cakephp) - [Does it work with CakePHP?](#does-it-work-with-cakephp)
- [Does it work with Drupal?](#does-it-work-with-drupal) - [Does it work with Drupal?](#does-it-work-with-drupal)
- [Does it work with Joomla?](#does-it-work-with-joomla)
- [Does it work with Laravel?](#does-it-work-with-laravel) - [Does it work with Laravel?](#does-it-work-with-laravel)
- [Does it work with PhalconPHP?](#does-it-work-with-phalconphp) - [Does it work with PhalconPHP?](#does-it-work-with-phalconphp)
- [Does it work with Symfony?](#does-it-work-with-symfony) - [Does it work with Symfony?](#does-it-work-with-symfony)
@ -160,29 +161,33 @@ Yes, see **[How to setup CakePHP](Examples.md#21-setup-cakephp)**.
Yes, see **[How to setup Drupal](Examples.md#22-setup-drupal)**. Yes, see **[How to setup Drupal](Examples.md#22-setup-drupal)**.
#### Does it work with Joomla?
Yes, see **[How to setup Joomla](Examples.md#23-setup-joomla)**.
#### Does it work with Laravel? #### Does it work with Laravel?
Yes, see **[How to setup Laravel](Examples.md#23-setup-laravel)**. Yes, see **[How to setup Laravel](Examples.md#24-setup-laravel)**.
#### Does it work with PhalconPHP? #### Does it work with PhalconPHP?
Yes, see **[How to setup Phalcon](Examples.md#24-setup-phalcon)**. Yes, see **[How to setup Phalcon](Examples.md#25-setup-phalcon)**.
#### Does it work with Symfony? #### Does it work with Symfony?
Yes, see **[How to setup Symfony](Examples.md#25-setup-symfony)**. Yes, see **[How to setup Symfony](Examples.md#26-setup-symfony)**.
#### Does it work with Wordpress? #### Does it work with Wordpress?
Yes, see **[How to setup Wordpress](Examples.md#26-setup-wordpress)**. Yes, see **[How to setup Wordpress](Examples.md#27-setup-wordpress)**.
#### Does it work with Yii? #### Does it work with Yii?
Yes, see **[How to setup Yii](Examples.md#27-setup-yii)**. Yes, see **[How to setup Yii](Examples.md#28-setup-yii)**.
#### Does it work with Zend Framework? #### Does it work with Zend Framework?
Yes, see **[How to setup Zend](Examples.md#28-setup-zend)**. Yes, see **[How to setup Zend](Examples.md#29-setup-zend)**.
## 4. Troubleshooting ## 4. Troubleshooting

View File

@ -191,12 +191,13 @@ To quickly find setup instructions for your framework of choice head over to **[
> 2. [Project setup](Examples.md#2-project-setup) > 2. [Project setup](Examples.md#2-project-setup)
> 1. [Setup CakePHP](Examples.md#21-setup-cakephp) > 1. [Setup CakePHP](Examples.md#21-setup-cakephp)
> 2. [Setup Drupal](Examples.md#22-setup-drupal) > 2. [Setup Drupal](Examples.md#22-setup-drupal)
> 3. [Setup Laravel](Examples.md#23-setup-laravel) > 3. [Setup Joomla](Examples.md#23-setup-joomla)
> 4. [Setup Phalcon](Examples.md#24-setup-phalcon) > 4. [Setup Laravel](Examples.md#24-setup-laravel)
> 5. [Setup Symfony](Examples.md#25-setup-symfony) > 5. [Setup Phalcon](Examples.md#25-setup-phalcon)
> 6. [Setup Wordpress](Examples.md#26-setup-wordpress) > 6. [Setup Symfony](Examples.md#26-setup-symfony)
> 7. [Setup Yii](Examples.md#27-setup-yii) > 7. [Setup Wordpress](Examples.md#27-setup-wordpress)
> 8. [Setup Zend](Examples.md#28-setup-zend) > 8. [Setup Yii](Examples.md#28-setup-yii)
> 9. [Setup Zend](Examples.md#29-setup-zend)
## 6. Enter the PHP Docker container ## 6. Enter the PHP Docker container

BIN
docs/img/logos/joomla.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB