Results 1 to 9 of 9
  1. #1

    Please try to help me.. PHP script not functioning in CentOS :(

    I have a php script which works in Red hat 9, fedora cores which basically executes a program off a PHP website. For some odd reason, this script just doesn't work on CentOS 4.0, I am not sure what it could be.. anyone know why my php script may not be able to execute? PHP "seems" install as php website does load...

    any help would be great, thanks for reading

  2. #2
    Join Date
    Apr 2003
    Make sure no php-safe-mode and that you have not disabled any functions. I would also check the error_log and messages, maybe some sort of SElinux is causing the problem.
    John W, CISSP, C|EH
    MS Information Security and Assurance - Server Administration and Security - Managed VPS and Dedicated Servers with VIP Service

  3. #3
    how would I check no php-safemode?

  4. #4
    Join Date
    Oct 2003
    any error message?

  5. #5
    Join Date
    Mar 2003
    California USA
    cd to the directory and php -f file.php and see what it returns.
    Steven Ciaburri | Proactive Linux Server Management -
    Managed Servers (AS62710), Server Management, and Security Auditing.

  6. #6
    I might have found the problem.. but I can't fix it or not sure how... it is running apache v 2 on this machine, how would I make it run back th old apache version identical to the other disitributions? apache V 1.x

  7. #7
    i've checked error_log.. it says this
    PHP Notice: Use of undefined constant

    weird because this script works with all other distributions... any ideas?

  8. #8
    Join Date
    May 2002
    this is not error, this is only notice. may be after reinstalling O/S php haven't some libraries which required by your script. if your script have a installer - try reinstall script to different location on your site for getting more information about issue.
    Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR, AS51168

  9. #9
    hmm do you know how I would reinstall php with all libraries that may have been in fedora core ? the "yum" in centos is so much different

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts