Hello,
I recently bought a VPS which i'm running Centos 7 on it and I tried to install Laravel on it. But when I try to access the ip i get a error that it can't find the page at my ip.
This are my files: .env:
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://91.134.141.26/
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
My config in /etc/httpd/conf.d/portfolio.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/portfolio/public
ServerName http://91.134.141.26/
<Directory /var/www/html/portfolio/>
AllowOverride All
</Directory>
</VirtualHost>
My App.php in /config/app.php
'url' => env('APP_URL', 'http://91.134.141.26/')
Does anyone know what i'm doing wrong or do I need to provide more information
i don't think ServerName http://91.134.141.26/ will work anyway.
don't you have a domain pointed to the IP?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community