Closed Wolf1911 closed 5 years ago
You'll need to create a different .htaccess as it doesn't seem to be working with your web server.
That was fast! I don't have an .htaccess, at least I can't see one.
It might be hidden due to the file name not technically existing.
If so try this: https://github.com/CADOJRP/FiveM-AdministrationPanel/blob/master/web/.htaccess
Also, are you using PHP 7 or newer?
No clue, I'm on cPanel with a hosting company.
Try this .htaccess:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
AddType application/x-httpd-php .php
AddType application/x-httpd-php5 .php
AddType application/x-httpd-ea-php70 .php .php7 .phtml
AddHandler application/x-httpd-php .php
I cannot see the file to edit it, sadly.
Alrighty, below is a zip file which inside will have the .htaccess file, you should be able to view it in the zip, if you upload the .htaccess from there or upload the zip through the cPanel file manager and unzip it, this might resolve the issue.
Alright, thanks a bunch. I'll try it now.
Still seems to do it.
I am able to rewrite them now, but none of the files worked.
I got it to work, the php was a couple versions behind on my end. Completely my idiocy! Thanks a whole lot for the help, even if it was a slight waste of time!
Hello, I appear to be having the same issue, i have fresh installs of MySQL, php 7.4, and Apache24. I have tried to edit the .htaccess but it still downloads a file
I tried to upload the panel.sql again and recive this error
Restoring C:\Users###\Downloads\FiveM-AdministrationPanel-master\FiveM-AdministrationPanel-master\web\fivemad1_panel.sql Running: mysql.exe --defaults-file="c:\users###\appdata\local\temp\tmpr1xsth.cnf" --protocol=tcp --host=localhost --user=root --port=3306 --default-character-set=utf8 --comments --database=fivem < "C:\Users\###\Downloads\FiveM-AdministrationPanel-master\FiveM-AdministrationPanel-master\web\fivemad1_panel.sql" ERROR 1060 (42S21) at line 291: Duplicate column name 'active'
Operation failed with exitcode 1 11:37:26 Import of C:\Users###\Downloads\FiveM-AdministrationPanel-master\FiveM-AdministrationPanel-master\web\fivemad1_panel.sql has finished with 1 errors
Instead of opening up the page, it downloads a file.
Here's the site.
I believe I set up the config correctly.