Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > OSX/PHP not serving up CSS scripts

OSX/PHP not serving up CSS scripts
Thread Tools
Forum Regular
Join Date: Jun 2003
Location: San Francisco
Status: Offline
Reply With Quote
Jul 30, 2003, 12:18 AM
 
Hi all,

I have a PHP quandry - my PHP desktop will not serve up CSS scripts!

I have just installed PHP on my desktop G4, with instructions from the Marc Liyanage website (http://www.entropy.ch/software/macosx/). The installation process went smooth, and my machine is serving up most of the scripts well. However, my machine will not serve up any of my CSS scripts (forbidden access at Port 80), so the websites look like doo doo. This is my first attempt at such an installation, and really don't know how or where to proceed. Any help would be greatly appreciated!

Thanks in advance,
- Moo!
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Jul 30, 2003, 02:11 AM
 
if you did install php correctly, you really don't have a php quandry... it just sounds like you're not using css properly.

css (cascading style sheets) isn't a script, it's just a set of attributes that your page uses so it knows how to display the information.

take a look at this. it'll go through all the basics and you should be able find what you're doing wrong there...
(Last edited by mzllr; Jul 30, 2003 at 02:22 AM. )
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Jul 30, 2003, 02:19 AM
 
good point. does css work with normal html pages? have you had it working before? at all? show us some code, so we can get a better idea of where the problem may be
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jul 30, 2003, 07:31 AM
 
If you are getting "Forbidden" it's probably a permissions issue. Make sure that the css files are in your /Library/WebServer/Documents/ tree and that they are readable by all, and that their parent directory is readable and executable by all.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mooga2  (op)
Forum Regular
Join Date: Jun 2003
Location: San Francisco
Status: Offline
Reply With Quote
Jul 30, 2003, 05:36 PM
 
Thanks for the responses - Arkham_c gave me an idea about permissions that worked great... what if the permission for the only one file not being served had its "read" permissiont turned off?
I honestly don't know how or why it happened, but the one CSS file did have a different permission from all the others. This was probably a fluke occurrence with the system, but I switched the permissions, and everything works wonderfully. Thanks to everyone for your responses.

PS - Mike Zeller, so you're in smelly ole San Jose, eh? Me too!

Later,
- Moo!
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Jul 30, 2003, 05:50 PM
 
Originally posted by Mooga2:
PS - Mike Zeller, so you're in smelly ole San Jose, eh? Me too!

Later,
- Moo!
yeah, the job market smells kind of funny.... everything else is alright...
     
Mooga2  (op)
Forum Regular
Join Date: Jun 2003
Location: San Francisco
Status: Offline
Reply With Quote
Jul 30, 2003, 06:04 PM
 
Originally posted by mzllr:
yeah, the job market smells kind of funny.... everything else is alright...
Yeah, I know what you mean. I know of quite a few people who actually feel lucky to have their jobs at Kinkos now... before the economy took a dump, Kinkos was just a detour on their way towards greatness (in their own minds, of course!). Overall, website work has been better than when we started outta college, so we feel pretty lucky here.

Anyway, good luck in this job market... maybe our paths will cross again sometime. Later!
- Moo!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2