Git Product home page Git Product logo

codeigniter3-authentication-typography's Introduction

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.

codeigniter3-authentication-typography's People

Contributors

ryumada avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.