LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-05-2005, 08:02 PM   #1
renegadeavenger
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Rep: Reputation: 15
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
 
Old 08-06-2005, 01:14 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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?
 
Old 08-06-2005, 06:47 PM   #3
renegadeavenger
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Original Poster
Rep: Reputation: 15
hmmm the other difference I see is.. this is using apache 2, how can I make it run with old apache 1 version ?
 
Old 08-07-2005, 06:55 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Install apache 1.

To be honest that shouldn't really make a difference with php though.
 
Old 08-07-2005, 08:16 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Make sure your php script is compatible with the newer version of PHP that comes with CentOS.
 
Old 08-08-2005, 08:33 PM   #6
renegadeavenger
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Original Poster
Rep: Reputation: 15
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>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php issue petenyce Linux - Newbie 1 09-16-2005 08:38 AM
Whats the differnce between Centos and CentOS? duffmckagan cAos 1 06-12-2005 12:23 PM
mysql and php issue czarherr Programming 4 04-07-2005 05:36 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM
php issue in 8.1 bitfuzzy Slackware 1 11-05-2003 12:39 PM


All times are GMT -5. The time now is 12:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration