LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   some help with CentOS PHP issue please! (https://www.linuxquestions.org/questions/red-hat-31/some-help-with-centos-php-issue-please-350435/)

renegadeavenger 08-05-2005 08:02 PM

some help with CentOS PHP issue please!
 
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

david_ross 08-06-2005 01:14 PM

Is it just this particular php script that doesn't run?

Have you tried a phpinfo() page?

Are there any errors in your error_log file?

renegadeavenger 08-06-2005 06:47 PM

hmmm the other difference I see is.. this is using apache 2, how can I make it run with old apache 1 version ?

david_ross 08-07-2005 06:55 AM

Install apache 1.

To be honest that shouldn't really make a difference with php though.

trickykid 08-07-2005 08:16 AM

Make sure your php script is compatible with the newer version of PHP that comes with CentOS. ;)

renegadeavenger 08-08-2005 08:33 PM

guys :( I don't know how to install old php or convert my "very simple script" to work for the new php.

here is my script:


<?php include("var.php"); ?>
<p align="center"><b><a href="javascript:history.back()">Click here once finish$
<br>
<?php
print $user;
passthru("/etc/init.d/file $user restart");
?></p>


All times are GMT -5. The time now is 07:05 PM.