Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: php.ini
PostPosted: Thu Oct 25, 2012 6:34 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:35 pm
Posts: 111
Location: United Kingdom
So I've switched from using the standard PHP supplied with Ubuntu to one which I have compiled myself. The only problem is it does not come with a pre-existing php.ini file so I am unsure where to put it. I've installed PHP into /opt/php and php-fpm.conf lives in /opt/php/etc so is that where I should put the php.ini file for global configuration options? I need to load APC and set a couple of other options.

Thanks :).


Top
   
 Post subject: Re: php.ini
PostPosted: Thu Oct 25, 2012 8:51 am 
Offline
Senior Member

Joined: Tue May 03, 2011 11:55 am
Posts: 105
Is PHP working? If so, you can output phpinfo() to a page and it will tell you where it expects to find the .ini file in the configuration listing.


Top
   
 Post subject: Re: php.ini
PostPosted: Thu Nov 01, 2012 10:39 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:35 pm
Posts: 111
Location: United Kingdom
For future reference if anyone looks at this thread the php.ini file goes in the /lib folder of the prefix you used when compiling by hand. So for example I used --prefix=/opt/php when compiling so the php.ini goes in /opt/php/lib/php.ini.


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


Who is online

Users browsing this forum: No registered users and 2 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