Hi Yang Li

Are you sure it's not just a file permission problem?  If the Apache
account does not have read access to /home/prog then even if you make a
local copy of ccp4.setup so Apache can read it, the script will report
that the directory /home/prog/ccp4/ does not exist.  In fact if Apache
doesn't have read access (as you say) to $CINCL/ccp4.setup then
presumably it doesn't have read access to the other ccp4 files either,
in which case how is the Apache account supposed to run ccp4 programs?

HTH!

-- Ian

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of yang li
> Sent: 21 May 2007 10:23
> To: [email protected]
> Subject: How to run ccp4 in php script?
> 
> Hi All,
>       I have some scripts  which need to use  some  
> programs--like cad, refmac--in ccp4,  and I want to 
> use a php script to  run  these  scripts, with  command  as : 
>  $cmd ="  sh  aa.inp"; system($cmd); 
>      As I know, when I use php script, the account is Apache, 
> which is a nologin account, all the files I used
> are put in the directory which belong to Apache.I donnot know 
> what shell it uses, assume it uses bash, 
> since Apache has no permission to /ccp4/include/ccp4.setup, I 
>  copied ccp4.setup to  the  directory I used.
> And add a line in the script to source this ccp4.setup, file, 
> but it gives such error information:
> ********************* WARNING ********************** The 
> directory /home/prog/ccp4 (assigned to CCP4_MASTER) does not 
> exist. The CCP4 programs will not run correctly, and any 
> installation attempt will have errors or will fail. 
> ********************* WARNING **********************
>     I donnot know how to solve this problem. Anyone knows how 
> to run the ccp4 programs with the php script?
>     
> Thanks!
> 
> 


Disclaimer
This communication is confidential and may contain privileged information 
intended solely for the named addressee(s). It may not be used or disclosed 
except for the purpose for which it has been sent. If you are not the intended 
recipient you must not review, use, disclose, copy, distribute or take any 
action in reliance upon it. If you have received this communication in error, 
please notify Astex Therapeutics Ltd by emailing [EMAIL PROTECTED] and destroy 
all copies of the message and any attached documents. 
Astex Therapeutics Ltd monitors, controls and protects all its messaging 
traffic in compliance with its corporate email policy. The Company accepts no 
liability or responsibility for any onward transmission or use of emails and 
attachments having left the Astex Therapeutics domain.  Unless expressly 
stated, opinions in this message are those of the individual sender and not of 
Astex Therapeutics Ltd. The recipient should check this email and any 
attachments for the presence of computer viruses. Astex Therapeutics Ltd 
accepts no liability for damage caused by any virus transmitted by this email. 
E-mail is susceptible to data corruption, interception, unauthorized amendment, 
and tampering, Astex Therapeutics Ltd only send and receive e-mails on the 
basis that the Company is not liable for any such alteration or any 
consequences thereof.
Astex Therapeutics Ltd., Registered in England at 436 Cambridge Science Park, 
Cambridge CB4 0QA under number 3751674

Reply via email to