Git Product home page Git Product logo

xuxu_limpo's Introduction

ChayotePHP Framework

README

how to setup the environment

ChayotePHP 3.0

PHP Framework an easy opportunity to start in the Framework World

  1. 127.0.0.8 localhost.chayotephp

2)Add the entry on vhost

<VirtualHost 127.0.0.8:80>
  DocumentRoot "/var/www/htdocs/chayotephp"
  ServerName localhost.chayotephp
  ServerAlias localhost.chayotephp
  ErrorLog "/var/log/httpd/localhost.chayotephp-error_log"
  CustomLog "/var/log/httpd/localhost.chayotephp-access_log" common    
</VirtualHost>

4)Configure o .htaccess da raiz do projeto

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    public/    [L]
    RewriteRule    (.*) public/$1    [L]
</IfModule>
  1. Reinicie o servidor Apache

    $ sudo /etc/rc.d/rc.httpd stop
    $sudo /etc/rc.d/rc.httpd start

6)Faça Checkout do Projeto no git

$ cd var/www/htdocs

$ git clone https://github.com/fabioalvaro/ChayotePHP.git teste1

ou utlize o composer

$ composer create-project --prefer-dist fabioalvaro/chayotephp teste1
$ cd teste1
$ composer update

7)set the permissions:

$ sudo chmod 777 teste1/ -R

8)Instale o banco de dados exemplo para voce poder utilizar o banco de dados, use seu gerenciador padrão de MYSQL.

    chayotedb.sql

9)Configure as diretivas de conexão no arquivo config.php (linha 27 +- )

define('DBHOST', 'localhost');

define('DBPORT', '3306');

define('DBUSER', 'root');

define('DBPASS', 'senhafake');

define('DBNAME', 'chayotedb');

define('DBENCODING', 'utf8');

xuxu_limpo's People

Watchers

Marcio Zacarias 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.