Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htaccess issue for CLI #2

Open
atif opened this issue Jul 31, 2011 · 5 comments
Open

htaccess issue for CLI #2

atif opened this issue Jul 31, 2011 · 5 comments

Comments

@atif
Copy link

atif commented Jul 31, 2011

Hi,

I've integrated this spark in my code and it's working perfect when i hit controller. However, it doesn't work when i try to run using command line (cron) like:

php /path/to/your/codeigniter/root/index.php admin sendtolist

I've written a .htaccess file to remove index.php while accessing app from browser. Can that be an issue?

Thanks,

Atif

@joeauty
Copy link
Owner

joeauty commented Jul 31, 2011

.htaccess files shouldn't affect command line access, I don't think. What is happening?

On Jul 31, 2011, at 7:04 AM, anathematism [email protected] wrote:

Hi,

I've integrated this spark in my code and it's working perfect when i hit controller. However, it doesn't work when i try to run using command line (cron) like:

php /path/to/your/codeigniter/root/index.php admin sendtolist

I've written a .htaccess file to remove index.php while accessing app from browser. Can that be an issue?

Thanks,

Atif

Reply to this email directly or view it on GitHub:
#2

@atif
Copy link
Author

atif commented Jul 31, 2011

Here's how i'm currently executing

php ~/Sites/CodeIgniter_2.0.2/index.php guest test

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_curl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_curl.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_pgsql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_sqlite.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.dll, 9): image not found in Unknown on line 0

Here test method contains the queue init, and send code. I commented test method code, and just echoed "Hello World" to test if it's called. It's not being called from command line.

@joeauty
Copy link
Owner

joeauty commented Jul 31, 2011

Is this your own server, or a server you have admin access on?

On Jul 31, 2011, at 8:54 AM, anathematism [email protected] wrote:

Here's how i'm currently executing

php ~/Sites/CodeIgniter_2.0.2/index.php guest test

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_curl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_curl.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_pgsql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_sqlite.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.dll, 9): image not found in Unknown on line 0

Here test method contains the queue init, and send code. I commented test method code, and just echoed "Hello World" to test if it's called. It's not being called from command line.

Reply to this email directly or view it on GitHub:
#2 (comment)

@atif
Copy link
Author

atif commented Jul 31, 2011

Yes, it's my local machine. I don't think it's related to Personalized Mailer as i'm not able to hit any method through CLI. I'm new to CI. Can you tell me the possible reasons for not being able to hit a CI app through CLI?

Thanks!

@joeauty
Copy link
Owner

joeauty commented Jul 31, 2011

Well, your php install looks messed up. You shouldn't see all of those extension errors.

Can you execute the following code via the php command line?

I'd also check which extensions are required for CLI php access

On Jul 31, 2011, at 11:00 AM, anathematism [email protected] wrote:

Yes, it's my local machine. I don't think it's related to Personalized Mailer as i'm not able to hit any method through CLI. I'm new to CI. Can you tell me the possible reasons for not being able to hit a CI app through CLI?

Thanks!

Reply to this email directly or view it on GitHub:
#2 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants