I can’t access the other urls of the project

Asked

Viewed 273 times

1

I’m migrating to linux and I’m having a hard time, I installed php, apache, mysql and Composer, I can create projects all blz I had a great help until I reached it all.

The problem is when I try to access dev.meu_projeto.com/something... when I enter /something_gives me this:

Not Found

The requested URL /login was not found on this server.

Apache/2.4.9 (Ubuntu) Server at dev.meu_projeto.com Port 80

have already done :

chmod -R 777 /app/storage
chmod -R 755 meu_projeto

I have the files :

  • etc/apache2/sites-available/dev.meu_project.com.conf with access the public folder

  • etc/hosts with 127.0.0.1 dev.meu_project.com.conf

insert a :

serverName henrique-Ubuntu (nome da maquina)

etc/apache2/apache2.conf and etc/apache2/httpd.conf (file I created to insert)

I just tested a :

php artisan serve

ai has spun beauty other urls like: dev.me_project.com/login

I don’t know what else to do...

I have my projects organized in a directory

home/user/Workspace

Where separate other directories for each purpose for example >tests/website.....

The Documentroot is pointing to the project directory, type:

/ home/user/Workspace/tests/website

url with the cited files

http://duvidas.laravel.com.br/bin/L9w

I just can’t understand.... can only be a bug, because I edited etc/apache2/sites-available/dev.henrquebk.com.conf and it worked for this project but the others don’t work the routes at all... I’ve copied and nothing yet....

  • >>>> There is no error in the routes, because I was already testing the project in Windows

  • It can be the config of your vhost. add that line: Require all granted .. More information on this link http://httpd.apache.org/docs/2.4/upgrading.html ;)

2 answers

1

sudo a2enmod rewrite

and then

sudo apache2 Restart

  • It hasn’t worked yet.... And the second command here only runs if it is sudo service apache2 Restart

0

This new version of Apache, its root has been changed to "/var/www/html".

If this is the case, then you have 2 options:

first) You put your projects in

"/var/www/html/"
;

2nd) Or changes the Documentroot of the archive

"/etc/apache2/sites-available/000-default.conf"
for
"DocumentRoot /var/www"
.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.