Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 31, 2010 4:30 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
I installed nginx and php and it works, but when I see the php info It says Loaded Configuration File: (none). I'm trying to get memcache to work and it needs to load the correct configuration file. How can I do this?


Top
   
 Post subject:
PostPosted: Wed Mar 31, 2010 10:28 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
How are you running php? apache/php-fpm/something else. What is your OS?

Is there a php.ini file in either /etc /usr/local/lib /usr/lib or /lib


Top
   
 Post subject:
PostPosted: Thu Apr 01, 2010 2:24 am 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
I'm running this under Mac OS X Snow Leopard, using nginx with fastcgi and PHP. There's a php.ini in the correct directory (at least it says the php.ini is located in that directory) but for some reason it's not loading.


Top
   
 Post subject:
PostPosted: Thu Apr 01, 2010 5:36 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ah..local install, well this is a linux server forum so help might be sparse, make sure the php.ini file is readable (if in doubt chmod it 0644). If you still have problems try a mac forum.


Top
   
 Post subject:
PostPosted: Sun Apr 04, 2010 2:06 am 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
Yeah that didn't work....I did post on a mac forum and I'm waiting for replies there. I thought since Mac OS is Unix based that some possible solutions for Linux may work for Mac.


Top
   
 Post subject:
PostPosted: Sun Apr 04, 2010 10:41 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Did you install PHP or are you using the Apache and PHP that came with OS X?

If you did the former, you should do the latter. Saves you a lot of time, and it's probably somewhat trivial to get memcached going in that environment. If you're stuck with the former, make sure that the built-in PHP isn't being used instead of the one you want.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Sun Apr 04, 2010 2:55 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
I'm trying to emulate my production stack so I won't have as many problems when it comes to deployment time. I installed both nginx and PHP + fcgi via macports (mac package manager).


Top
   
 Post subject:
PostPosted: Sun Apr 04, 2010 4:59 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
sneaks, try using virtual machine if you really want to emulate your production stack.

You can compile apache/nginx/php on osx but it tends to be a bit of a pain (I've done it since 10.6 comes with 5.3 and I wan't 5.2)

I suggest www.virtualbox.org for a virtual machine.


Top
   
 Post subject:
PostPosted: Sun Apr 04, 2010 6:51 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
obs wrote:
sneaks, try using virtual machine if you really want to emulate your production stack.

You can compile apache/nginx/php on osx but it tends to be a bit of a pain (I've done it since 10.6 comes with 5.3 and I wan't 5.2)

I suggest www.virtualbox.org for a virtual machine.

This.

(Or another Linode!)

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group