Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2008, 09:40 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default php.ini

What is the difference between these 2 files. I am a bit stumped.

/usr/local/cpanel/3rdparty/etc/php.ini

and

/usr/local/lib/php.ini

Are there 2 php.ini files?
__________________
West Dorset Community
Reply With Quote
  #2 (permalink)  
Old 01-24-2008, 10:01 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

also can't edit /usr/local/cpanel/3rdparty/etc/php.ini

vi will delete but can't type for some reason.
__________________
West Dorset Community
Reply With Quote
  #3 (permalink)  
Old 01-25-2008, 02:31 PM
Moderator
 
Join Date: Sep 2006
Posts: 629
Send a message via MSN to harry
Default

Try this : php -i |grep php.ini and the file you get is the configuration file loaded for the server which is editable.

Hope this helps you else you can contact our technical support staff, they will help you better.
__________________

WebHosting UK
Affiliate Program
Earn 20% commission on each referral.
Reply With Quote
  #4 (permalink)  
Old 01-25-2008, 02:40 PM
Max Max is offline
Junior Member
 
Join Date: Dec 2007
Posts: 12
Default

/usr/local/cpanel/3rdparty/etc/php.ini is cpanel ini file

where as

/usr/local/lib/php.ini php/apche php.ini file

but both are same.
Reply With Quote
  #5 (permalink)  
Old 01-25-2008, 03:29 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

thx both, i managed to sort it!
well actually support (Seb) sorted it after i managed to take down half of my sites with the above and open_basedir
__________________
West Dorset Community
Reply With Quote
  #6 (permalink)  
Old 01-25-2008, 03:47 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,702
Default

Quote:
Originally Posted by jon123 View Post
thx both, i managed to sort it!
well actually support (Seb) sorted it after i managed to take down half of my sites with the above and open_basedir
Glad to have it sorted.

Make sure you don't delete anything as misconfiguration can be rectified but once deleted is gone.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote
  #7 (permalink)  
Old 01-25-2008, 04:14 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

I will remember that!

I just remembered, when i edit files like php.ini, httpd.conf, it always tells me that there is another swp file and do i want to still continue editing or delete, etc!
Not sure whether to delete or what, or why these files exist. Backup maybe?
Any thoughts?
__________________
West Dorset Community
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:18 AM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum