Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6715323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:36:04+00:00 2026-05-26T08:36:04+00:00

I using a new server (Rackspace, Ubuntu 10.04) trying to run a php file

  • 0

I using a new server (Rackspace, Ubuntu 10.04) trying to run a php file via linux shell, and the file uses MongoDB to insert and store information being collected. I keep getting an error that is defined in the MongoDB library I am using: “The MongoDB PECL extension has not been installed or enabled”

When I run the same file/script in a browser window, it runs just fine.

A few things to note:

  • MongoDB php extension is installed and enabled (confirmed via phpinfo)
  • Using CodeIgniter with the MongoDB library found here: https://github.com/alexbilbie/codeigniter-mongodb-library
  • Using the CodeIgniter cron job bootstrapper extension found here: http://codeigniter.com/wiki/Cron_job_bootstrapper

I’ve used all of the above together on a previous, different server without issues.

I’m new to configuring a server 100% on my own, can anyone help me understand why the MongoDB PHP extension would not be recognized when run via shell, but work when accessed via http? Would it be an issue with my server configuration, or does the problem have to do with the libraries I am using?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:36:04+00:00Added an answer on May 26, 2026 at 8:36 am

    Ubuntu has two php.ini, one for Apache one for command line. If I remember correctly they are under:

    /etc/php5/apache/..
    /etc/php5/cli/...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a new server and when using my php script, I'm able to
I am using eclipse Galileo. The New Server Runtime Environment dialog box contains three
I am using a new service to pull xml data from a server. The
I'm using parallel-python and start a new job server in a function. after the
I am pretty much new to using SQL Server 2000. I have been using
I'm coming from a MS SQL Server background. Working on a new project using
I'm using something like this on my server: TcpServerChannel channel = new TcpServerChannel(settings.RemotingPort); ChannelServices.RegisterChannel(channel,
I am currently using SQL Server Management Studio (Ver 9.00.3042.00) and click the New
I just deployed an application to a new server, and although I'm using virtualenv,
Because I'm currently setting up a new server for use, I've been using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.