I have Laravel 5.6 App on Centos 7 with Apache 7.3 and Apache 2.4.
I'm getting Token Mismatch Exception on Login Page
[root@e-records erecords]# ls -la storage/framework/
total 8
drwxrwxr-x. 6 apache root 81 Jan 13 12:00 .
drwxrwxr-x. 5 apache root 46 Jan 13 12:00 ..
drwxrwxr-x. 3 apache root 36 Jun 11 10:47 cache
-rwxrwxr-x. 1 apache root 103 Jan 13 12:00 .gitignore
drwxrwxr-x. 2 apache root 24 Jun 26 10:44 sessions
drwxrwxr-x. 2 apache root 24 Jan 13 12:00 testing
drwxrwxr-x. 2 apache root 4096 Jun 26 10:27 views
I tried to enable SELinux
[root@e-records erecords]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31
I checked this Solution:
.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
.httpd.conf
<VirtualHost ***:80>
ServerAdmin root@localhost
DocumentRoot /var/www/html/erecords/public
<Directory /var/www/html/erecords/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ServerName e-records.ksuhs.edu.sa
ErrorLog logs/cod-error_log
CustomLog logs/erecords-access_log common
DirectoryIndex index.html index.php index.htm
</VirtualHost>
My issue is exactly as described in the first answer of This question
and I applied his solution but it didn't work
Why Apache not creating sessions?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2FwDgmI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire