PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, February 10, 2022

[FIXED] Laravel upload to cpanel css issue

 February 10, 2022     css, laravel, laravel-5.3, php     No comments   

Issue

I am trying to upload a laravel project to cpanel hosting server. My laravel version is 5.3 and php version on the server is 5.6.

What I have done is:

  1. Create a folder called "online_system" to root of file manager.
  2. Copy contents of laravel project except public folder.
  3. Create a folder called "online_system" to public_html.
  4. Copy contents of public folder of laravel project.
  5. Jump to index.php file.
  6. Edit require __DIR__.'/../../online_system/bootstrap/autoload.php';
  7. Edit $app = require_once __DIR__.'/../../online_system/bootstrap/app.php';
  8. Change .env to link DB.
  9. Open domain/online_system.

enter image description here

Home page is working fine, but as long as I click login or register provided by laravel, then the website looks plain without css load.

enter image description here

How can I solve this problem?


Solution

Give it a try

<link rel="stylesheet" type="text/css"  href="{{ url('online_system/css/styl.css') }}" />


Answered By - Morteza Rajabi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing