-1

I just shifted my working environment form Windows to Ubuntu 16.04. I've been working with PHP. It worked well in xampp but shows missing file with LAMPP. My folder structure is:
Project
----indexfile
--css
----custom.css
This is how I included the css file:

<link href="/css/custom.css" rel="stylesheet" type="text/css">  

What I noticed is missing the project folder name. But providing Project name before path won't be good idea. I even tried path like ./css/custom.css but no luck.Css missing files in ubuntu

Any help would be appreciated. Thanks

Veey
  • 216
  • 3
  • 13

1 Answers1

0

If you project folder is in /var/www/html you are not using lampp, you are using apache2, you must uninstall apache2 and reinstall lampp and put your project folder in /opt/lampp/htdocs, file permission to write here is needed,remember

Jorge Bowen
  • 184
  • 2