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

  • SEARCH
  • Home
  • 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 6345583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:51:00+00:00 2026-05-24T20:51:00+00:00

I am currently setting up my New Mac Mini Lion server. I am now

  • 0

I am currently setting up my New Mac Mini Lion server.
I am now installing mongodb and apc extension.
I want to include the ini settings for the extensions on the /etc/php.d directory (similar with my server settings on centOS)

I tried to do

php -i | grep php.d

and it gives me

Scan this dir for additional .ini files => /etc/php.d/
Additional .ini files parsed => /etc/php.d/apc.ini,
/etc/php.d/mongo.ini
PHP_INI_SCAN_DIR => /etc/php.d/
_SERVER["PHP_INI_SCAN_DIR"] => /etc/php.d/

But when I tried on phpinfo() on a php script, I got:

Configuration File (php.ini) Path   /etc
Loaded Configuration File   /private/etc/php.ini
Scan this dir for additional .ini files     (none)
Additional .ini files parsed    (none) 

The php environment on CLI and php script is the same
which php

/usr/bin/php

and on php script page

PATH /usr/bin:/bin:/usr/sbin:/sbin

Is there anything I should set on the apache side?

I am thinking to stick with the Built-in apache and php from the mac installation because I like the Server App from Mac.

Please help me.

Thank You

  • 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-24T20:51:02+00:00Added an answer on May 24, 2026 at 8:51 pm

    I just did this the other night, although it was not on Lion Server.

    sudo nano /etc/apache2/httpd.conf
    

    uncomment (delete the #)

    #LoadModule php5_module   libexec/apache2/libphp5.so
    

    save with ctrl+o then Enter

    then restart apache

    sudo apachectl restart -t
    

    Additionally, you will need to

    cd /etc
    sudo cp php.ini.default php.ini
    sudo chmod 666 php.ini
    

    I would also recommend configuring php.ini (basically every module is disabled).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Because I'm currently setting up a new server for use, I've been using a
I'm currently setting up my website on a new SQL Server 2008 server, however
I'm currently setting up a new production environment for a Rails application which includes
We're currently in the process of setting up a source control/build/and more-server for .NET
I'm currently in the process of setting up a media server for my dorm
I'm currently working on setting up a new project of mine and was wondering
I'm setting a new text value to a UILabel . Currently, the new text
I am currently setting up a development VPC to test some new technology. I
I want use html5's new tag to play a wav file (currently only supported
Im currently setting up a new site which uses CodeIgniter and the Facebook library

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.