| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Currently in development, we hope to publish a stable version and its documentation soon.
The project was initially called "PHP Framework Particle". The idea is to find a better name in the future.
If you have questions or discover something to improve or change, please contact us at https://github.com/dertin/framework-php/issues
At the moment, you can test it in a test environment and see how it works.
Go to the folder of your web server $ cd /var/www/htdocs
Download the latest version of the framework and unzip it to the root directory of your web server
$ sudo wget https://codeload.github.com/dertin/framework-php/tar.gz/master -O framework-php.tar.gz
$ sudo tar -xvzf framework-php.tar.gz --strip 1 && rm framework-php.tar.gz
Set the permissions of files and directories, as necessary
$ sudo chown -R root:www-data.
$ sudo find . -type d -exec chmod 755 {} \;
$ sudo find . -type f -exec chmod 644 {} \;
$ sudo chmod 660 error.log && sudo chmod -R 770 Particle/Core/tmp
Edit the following configuration files:
[Configuration of the main database]
[General configuration of the application, you can also add your own constants]
Web server configuration
For servers with Apache: The redirection directives must be active, for the .htaccess file to work
For servers with Nginx: Edit your .conf file in Nginx
Configuration example:
index load.php;
autoindex off;
location ~ /.php$ {
include /etc/nginx/fastcgi.conf;
fastcgi_pass 127.0.0.1:9007;
}
location / {
if (!-e $request_filename){
rewrite ^(.+)$ /load.php?request=$1;
}
}
Install Composer (https://getcomposer.org/)
Ready. Now just visit yourwebsite.com to verify if everything is working correctly.
If you have any problems you can look at the log file generated by the framework itself.
| Back | FazBrowse Home | New Git URL |