iklearmy Posted April 3, 2008 Share Posted April 3, 2008 I have installed MySql 5.23, PHP5.2.5 and Apache 2.2.8 on my Asus Eeepc and it all works fine with one exception. Any linked files within the web page are not being served e.g. <link rel="stylsheet...etc > <img src="...etc > files are not being served. So in the web browser (firefox 2.0.0.7) the web pages don't have any styles and only getting the little boxes where the images should be. If I right click on the little image box and select show image the browser simple shows the file name in a blank window. The web page is correct because if I open it in a web browser through the system file manager all styale and graphics are loaded. It seems like Apache is not serving the other files associated within the pages. I have tried Apache 2.2.6 and got the same results. Anyone got any idea what I need to do to fix this? Simplify answers please cos I am a bit of a linux novice. Quote Link to comment https://forums.phpfreaks.com/topic/99379-solved-apache-not-serving-style-sheets-or-images/ Share on other sites More sharing options...
trq Posted April 3, 2008 Share Posted April 3, 2008 I have tried Apache 2.2.6 and got the same results. Sounds likely it is a coding issue then. Quote Link to comment https://forums.phpfreaks.com/topic/99379-solved-apache-not-serving-style-sheets-or-images/#findComment-508500 Share on other sites More sharing options...
iklearmy Posted April 13, 2008 Author Share Posted April 13, 2008 Found the problem in the httpd.conf file. I needed to do the following: EnableMMAP off EnableSendfile off The default values were on Quote Link to comment https://forums.phpfreaks.com/topic/99379-solved-apache-not-serving-style-sheets-or-images/#findComment-516081 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.