Compass icon indicating copy to clipboard operation
Compass copied to clipboard

Configuration compass on localserver MAMP

Open rtraykoski opened this issue 6 years ago • 2 comments

Hello everyone, i try install the compass server on my local server with mama and i have the message above when i go to "http://localhost/public/"

the message : Sorry, the page you are looking for could not be found.

i check .env file but i don't find the problem.

Any help for running nicely my server?

I like very much your project.

Robert.

rtraykoski avatar Jun 30 '18 06:06 rtraykoski

@rtraykoski Robert, can you give some more information about the setup? What does your folder structure look like? What are the contents of the env file (without any sensitive information, of course)?

nitinthewiz avatar Jul 03 '18 18:07 nitinthewiz

By the way @rtraykoski the most basic thing you need to know about this config -

You shouldn't be trying to go to localhost/public.

What you should do is to point the DocumentRoot to the public and just go to localhost

On Apache, this would look like -

DocumentRoot /var/www/compass/public

and on nginx this would look like -

root /var/www/html/compass/public;

where /var/www/compass is where your compass installation sits.

Once you've done that, when you go to

http://localhost

it'll actually take you to the /public folder and that will make the install work correctly.

If you don't know how to create or modify a virtual host file in MAMP (which is where you would specify the DocumentRoot), please see the following tut -

http://foundationphp.com/tutorials/vhosts_mamp.php

nitinthewiz avatar Jul 03 '18 18:07 nitinthewiz