LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-11-2005, 11:38 AM   #1
skiflyer
LQ Newbie
 
Registered: Jan 2005
Posts: 13

Rep: Reputation: 0
Php Cli


I'm migrating from a windows server to a linux server, and I need to cron up several PHP scripts.

It's going pretty well, but my PHP CLI doesn't have access to any of the PHP modules I've installed... most immediately noteable are the IMAP and the MYSQL modules.

The scripts work fine if I open them in a browser and run through the apache module, but using the CLI version results in a "mysql_connect() function does not exist" and the same with many other functions included in the modules.

I know I could use cron to run lynx against some of the pages, but that doesn't work for all of the scripts, so I would much prefer getting the CLI version working properly.

Any helps?
 
Old 01-11-2005, 12:50 PM   #2
skiflyer
LQ Newbie
 
Registered: Jan 2005
Posts: 13

Original Poster
Rep: Reputation: 0
To answer my own question.

The php4-cli package must be installed before you install the additional modules or they will not work with it.

So uninstalling apache/php4/all the modules/php4-cli, then reinstalling them in the proper order cleared up my problem.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron issue, php script runs fine in browser and cli dtra Linux - Software 1 07-15-2005 05:45 AM
Is CLI in or out? C.B. Linux - General 15 06-27-2005 02:57 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
PHP CLI on Debian rcs1000 Debian 2 08-01-2004 10:40 AM
CLI Ruth Linux - General 2 03-20-2001 05:24 PM


All times are GMT -5. The time now is 03:57 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
Open Source Consulting | Domain Registration