Skip to content

gecata83/UsersListing

Repository files navigation

Project environment

This project has been build with Zend Framework 3 Server apache 2.4 on Ubuntu 16.04 and php 7.0 (php basic mods that would comply to our needs)

To run the project

Clone the git repository on your machine. "git clone https://github.com/gecata83/UsersListing.git" Execute "composer.phar install" in the project main folder (I have kept the lock file up to date but if something goes wrong use - ./composer.phar install)

Apache setup

To setup apache, setup a virtual host to point to the public/ directory of the project and you should be ready to go! It should look something like below:

<VirtualHost *:80>
    ServerName users-list.fb
    ServerAlias www.users-list.fb
    DocumentRoot NEED-A-FULL-PATH/UsersListing/public
    <Directory NEED-A-FULL-PATH/UsersListing/public>
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
	RewriteEngine On
	# The following rule tells Apache that if the requested filename
	# exists, simply serve it.
	RewriteCond %{REQUEST_FILENAME} -s [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^.*$ - [L]
	# The following rewrites all other queries to index.php. The 
	# condition ensures that if you are using Apache aliases to do
	# mass virtual hosting or installed the project in a subdirectory,
	# the base path will be prepended to allow proper resolution of
	# the index.php file; it will work in non-aliased environments
	# as well, providing a safe, one-size fits all solution.
	RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
	RewriteRule ^(.*) - [E=BASE:%1]
	RewriteRule ^(.*)$ %{ENV:BASE}/index.php [L]
    </Directory>
</VirtualHost>

rewrite mode should be enabled add "users-list.fb" to your hosts file, enable your virtual host site, restart apache. THAT IS ALL

This project has been made using Zend Sceleton Application as a base

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors