Giter Site home page Giter Site logo

ucenxyz / codeigniter-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llbbl/codeigniter-chat

0.0 0.0 0.0 1.06 MB

web based chat -- right now just a simple shoutbox

License: MIT License

PHP 99.64% ApacheConf 0.02% HTML 0.32% CSS 0.02%

codeigniter-chat's Introduction

Codeigniter Chat

This is a basic shoutboard built using codeigniter. Originally only used XML for the backend, but was rewritten to illustrate different types of web services. It has been updated to use CodeIgniter 3.1.0.

Installation

  1. git clone [email protected]:llbbl/codeigniter-chat.git
  2. Rename application/config/database-default.php to database.php
  3. Modify database.php to include your MySQL connection details
  4. Run the create.sql (does not include schema create)

Configuration

  • Setup the Webserver DocumentRoot to point to public folder inside the codeigniter chat folder
  • Assuming you have setup the project under the domain example.local, Open a browser and goto example.local/chat (See Below for Webserver configuration)

Web Server Configuration

If you are using nginx, configure the example below and put in sites available/enabled folders.

If you are using Apache there is already a .htaccess file in the public folder ready to start working. Make sure you have mod_rewrite enabled.

nginx

server{
	server_name default.local;
	root /Web/default;
	
	listen 80;
	index index.php index.html index.htm;
	
    access_log /Web/logs/default.access.log;
    error_log /Web/logs/default.error.log;
	
	location / {
		try_files $uri $uri/ /index.php?$query_string;
	}

	location ~ \.php$ {
		try_files $uri =404;
			
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_read_timeout 150;
		fastcgi_index index.php;
		fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
		include fastcgi_params;
	}
	
}

codeigniter-chat's People

Contributors

llbbl 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.