Fedora Linux Support Community & Resources Center
  #1  
Old 4th February 2005, 06:05 PM
civ247 Offline
Registered User
 
Join Date: Nov 2004
Posts: 12
fc3, php wont access file

Acessing a text file with the standard apaches/php installation wont work. It just fails evertime. Other php in the html file works fine.
The identical php script callefd from the command line works fine. - #!/usr/bin/php


Its a wierd problem that i havent been able to solve, & neither has anyone else. I have tried it while logged in as root and changed the permissions of the files concerned, without sucess.

I had given up a while a ago but decided to ask here in case it was fedora specific or i might get lucky.

Any ideas appreciated.
Reply With Quote
  #2  
Old 4th February 2005, 07:06 PM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
Look for the following lines in your "/etc/httpd/conf/httpd.conf" file. These lines "enable" the php module, and tell apache which files to "process" using php.

LoadModule php4_module modules/libphp4.so
AddHandler php-script php
AddType text/html php
__________________
Only dead fish go with the flow....

Hmmm, what did I miss?
Reply With Quote
  #3  
Old 5th February 2005, 04:12 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
Only the file access part doesn't work? That suggests permission problems, though you said you changed them already.

Have you looked at the error log in /var/log/httpd? Could be useful.

Which php function are you using?
Reply With Quote
  #4  
Old 7th February 2005, 11:11 AM
civ247 Offline
Registered User
 
Join Date: Nov 2004
Posts: 12
Quote:
Originally Posted by Jman
Only the file access part doesn't work? That suggests permission problems, though you said you changed them already.

Have you looked at the error log in /var/log/httpd? Could be useful.

Which php function are you using?
Thanks for the responses, i reinstalled over the weekend because usb had gone dodgy as well and its all working fine now. It must have been some unusaul thing i affected. Though i nevr thought of looking at the logfiles. Thanks
Reply With Quote
Reply

Tags
access, fc3, file, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor file access zacharysturgeon Security and Privacy 4 21st May 2009 08:12 PM
!! Can't access file in mounted file system. john7sp Using Fedora 9 21st December 2008 06:33 PM
Japanese file names wont display F10 Saint Mike Using Fedora 1 8th December 2008 04:15 AM
Totem-xine wont play movie file with mp4 extension. mat.hunt Using Fedora 2 8th April 2007 10:16 AM


Current GMT-time: 08:04 (Friday, 18-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat