Skip to content

ryumada/codeigniter3-authentication-typography

Repository files navigation

CodeIgniter3 Authentication and Typography

Overview

This repository contains codeigniter 3 souce code with added authentication using IonAuth and some typography plugins. I will list it later, but for my plan I will use this for demonstration:

Technology Used

How to run this project using Nginx

To prepare the LEMP stack, read this README.

  1. Clone this Repository
git clone <.git_address>
  1. Copy this repository into your server directory (/var/www/ci3-auth-typography).

see this file application/config/config.php.

$config['base_url'] = 'http://' . $_SERVER["HTTP_HOST"] . ':81';

As you can see above, the baseurl has been changed with php superglobal variable $_SERVER.

  1. Create a new site configuration at /etc/nginx/sites-available
server {
  listen 81 default_server;
  listen [::]:81 default_server;
  root /var/www/ci3-auth-typography/;

  index index.php index.html index.htm;

  server_name _;

  location / {
    try_files $uri $uri/ /index.php;
  }

  location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  }

  location ~ /\.ht {
    deny all;
  }
}
  1. Create a softlink to the configuration at /etc/nginx/sites-enabled
sudo ln -s /etc/nginx/sites-available/ci3-auth-typography /etc/nginx/sites-enabled/ci3-auth-typography
  1. Test the configuration
sudo nginx -t
  1. Restart your Nginx
sudo systemctl restart nginx
  1. Run this SQL to create the database. ci3-ionauth-ckeditor

  2. Set permission on these folders to be writable by the server:

    • public/files/ckeditor/images

For deployment, please read these:


Copyright © 2023 ryumada. All Rights Reserved.

Licensed under the MIT license.

About

CodeIgniter 3 with https://community-auth.com/ and typohraphy text editor.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
license.txt

Stars

Watchers

Forks

Packages

No packages published

Languages