php - Laravel setup projects on personal web server -
i have @ home personal web server running apache have /var/www/{project_folder} serve websites, access them other machines ip/{project_folder}, nothing new now. :)
i have new projects done laravel, run them @ local machine use cli command serve runs @ localhost:{door}
i put projects @ web server i'm facing difficulties because have basic knowledge apache , i'm having trouble figure out configuration.
i believe have done :)
thanks in advance.
assuming have php working apache, httpd.conf file configured if have file ending .php handled properly.
all have place project in htdocs folder have normal project in. that's it.
you install composer , install laravel it. example via
"composer create-project laravel/laravel --prefer-dist".
now tricky part: if want access site via http://localhost/your-project , not via http://localhost/your-project/public, (depending on os):
- activate mod_alias
- goto '<ifmodule alias_module>'
then add line inside:
alias /your-project/ "c:/program files (x86)/apache software foundation/apache2.2/htdocs/your-project/public/"
in case don't need virtual hosts.
let me know if have further questions.
Comments
Post a Comment