Fork of Olympe php
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dryusdan 1f6b4e9c2d Add submodule 1 year ago
_LIB @ 03f2c8f551 Add submodule 1 year ago
on Get fork Olympe-php 1 year ago
.gitmodules Add submodule 1 year ago
README.md Get fork Olympe-php 1 year ago
index.php Get fork Olympe-php 1 year ago
index2.html Get fork Olympe-php 1 year ago
logo-olympe.png Get fork Olympe-php 1 year ago

README.md

Olympe Website & Panel

This repository contains the source codes of the Olympe website and panel.

Local deployment

Softwares

You will need the following softwares:

  • Apache 2.X.X
    • mod_rewrite
    • mod_vhost_alias
  • PHP 5.5.X
    • Imagick extension

Clone repositories

Create a directory for the Olympe repositories and clone from Github:

mkdir olympe && cd olympe
git clone https://github.com/OlympeNetwork/php-www
cd php-www
git submodule init
git submodule update

After submodule update, you will have the whole source code of the website.

Create a vhost in Apache 2

We use Apache 2 because of the required .htaccess, you have to add a virtualhost for the address local.olympe.in:

<VirtualHost *:80>
    ServerAdmin admin@olympe.in
    DocumentRoot "/path/to/the/repository"
    ServerName local.olympe.in
    ServerAlias local.olympe.in
</VirtualHost>

Last actions

You have to add a new entry in your hosts file that matching the virtualhost:

127.0.0.1 local.olympe.in

And create a file www.ini just in the parent directory of the repository (ie. if repository is in /home/dev/olympe/php-www, the www.ini file must be in the /home/dev/olympe folder) with the following content:

[Main]
API_TOKEN={YOUR_TOKEN)
API_HOST=api.olympe.in
API_USERNAME={YOUR_USER}
HOSTNAME=www.olympe.in

You can find your token in your panel : https://www.olympe.in/panel/settings/tokens.

Advanced

The www.ini file location is defined in the file _LIB/config_on.inc:

```PHP if( $_SERVER[“HTTP_HOST”] == ‘localhost’ || $_SERVER[“HTTP_HOST”] == ‘127.0.0.1’ || $_SERVER[“HTTP_HOST”] == ‘local.olympe.in’ )

$conf = parse_ini_file('../www.ini', true);

elseif( $_SERVER[“HTTP_HOST”] == ‘hosting.dev.olympe.in’ )

$conf = parse_ini_file('/dns/in/olympe/etc/settings/hosting.dev.ini', true);

elseif( $_SERVER[“HTTP_HOST”] == ‘hosting.olympe.in’ )

$conf = parse_ini_file('/dns/in/olympe/etc/settings/hosting.ini', true);

else

$conf = parse_ini_file('/dns/in/olympe/etc/settings/www.ini', true);