LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   cron php under apache (https://www.linuxquestions.org/questions/programming-9/cron-php-under-apache-54822/)

dave4545 04-13-2003 09:15 AM

cron php under apache
 
Hi.
I have run into a problem.
I have searched extensively and have been unable to find the answer to my question.

I have a file called cron.php

I need to run this file daily using crontab.

I have tried just about everything that was suggested with no luck.
Come to find out I think the root of my problem is php was compiled under apache.

I can run cron.php from my browser but I really need to run it late at night and at a specific time.

Any expertise would be appreciated.
Thank you

Dave.

david_ross 04-13-2003 09:30 AM

Why not use lynx:
lynx -source http://whatever/wherever/cron.php

dave4545 04-13-2003 09:31 AM

Is lynx hard to install?
I don't have it on my server.

david_ross 04-13-2003 09:34 AM

Actullay I've had another look at the help section and you may be better with:
lynx -dump http://whatever/wherever/cron.php

I've only ever used source but using dump will parse the html so the output will look good in either a browser or in a log file.

david_ross 04-13-2003 09:35 AM

Not hard at all - what disro are you using?

dave4545 04-13-2003 09:52 AM

Could you re-phrase that question?
I am a newby.
Thanks.
Dave.

david_ross 04-13-2003 10:03 AM

It is not difficult to install. What linux operating system do you use? RedHat/Mandrake/SuSe

It is a good idea to put it in the "Distribution" section in your profile so that people can direct their help easier :) (It appears to the left of every message)

dave4545 04-13-2003 10:20 AM

Okay. I added it. Is that okay?

david_ross 04-13-2003 10:36 AM

That is the version of apache (web server) and php.

It is the actual version of linux not the applications that run on it. At the top of the console screen (if you use a GUI then press "Ctrl + Alt + F2") you may see something like:
Red Hat Linux release 8.0 (Psyche)
Kernel 2.4.18-14 on an i686

The first line tells me that I am using "Red Hat 8.0"

You usually see this information when initiating a telnet session too.

If you are using a GUI then press "Ctrl + Alt + F7" to get back to it.

PS: GUI = Graphical User Interface

dave4545 04-13-2003 12:22 PM

okay. I found it and added it to my profile.

david_ross 04-13-2003 12:47 PM

That's what I needed!

Download:
ftp://rpmfind.net/linux/redhat/updat...4-9.1.i386.rpm

Then run this as root:
rpm -ivh /path/to/lynx-2.8.4-9.1.i386.rpm

Replace /path/to with the directory that you saved the lynx-2.8.4-9.1.i386.rpm file to. eg /home/dave4545

dave4545 04-13-2003 01:04 PM

I really appreciate it David. I'll try it tonight. Gotta take the kid to see his grandparents. I'll let you know how the install goes.

Thanks.
Dave

dave4545 04-14-2003 07:57 AM

hi.
hmm? I tried and got a few errors. I'm searching to see what it is....
Here is exactly how it looks.

[root@www3 rpm]# rpm -ivh /usr/local/lynx/lynx-2.8.4-9.1.i386.rpm
error: failed dependencies:
libcrypto.so.1 is needed by lynx-2.8.4-9.1
libssl.so.1 is needed by lynx-2.8.4-9.1

dave4545 04-14-2003 08:08 AM

Okay. I guess it means I need to install some more packages.
I looked at some and there are so many different versions.
How do you decide which one to use?

Thanks.
Dave.

dave4545 04-14-2003 08:41 AM

Okay.
I ignored the packages. Gonna see if that works.

Nope. Doesn't work without them.


All times are GMT -5. The time now is 09:34 PM.