'Laravel CSS files not found and No styling applied (Apache2 Ubuntu)
I have a application know as nexthour cms which I am running using apache2 on ubuntu. I have added all the configuration in apache2 and downloaded all the extensions in php. The nexthour appliaction is based on Laravel. The issue is that there is a server.php file in the root directory. When I ran this file for the first time it went through some steps for installation of the application. Once those steps were done it showed the application but no styling was being shown. The webpage was only showed text when opening server.php file and when I open links like login it takes me to the login page but no styling is applied. When I checked the css file location from source code it shows the path localhost/server.php/css/thecssfile.css but the file is not found.
When I open the public directory all the styling is being applied but the issue here is that it is not able to find the login page when I press login.
When I checked the login page location from server.php file it shows as localhost/server.php/login and it opens fine but still without any styling. Remember that server.php is not a directory it is a php file. Where do I find the login file in the folder as server.php is not a directory?
When I checked the login page location from public/index.php it is localhost/public/login file is not found and I checked the directory and there is no login file or directory.
What should I do in this case? I can not use the server.php file as there is no styling and I can also not use public/index.php as the login page is not found. Please help me out as I a complete noob in laravel or php and this is a application I have downloaded and not developed. Your help will be highly appreciated if someone could let me know whats happening here.
Update: localhost/public/index.php/login works fine but no styling show up here.
Solution 1:[1]
Got it all fixed just had to use sudo a2enmod rewrite to resolve this issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Online Coder |
