icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Private Hosting » Editing PHP.ini

Private Hosting Questions about VPS, dedicated servers and colocation.

Reply
 
LinkBack Thread Tools Search this Thread
Old March 13th, 2006, 7:59 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2005
2 posts
Gave thanks: 0
Thanked 0 times
Editing PHP.ini

I finally got my domains transferred over to my new dedicated server. I want to edit my php.ini file. How do I go about accessing this for editing?
seansulli is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 13th, 2006, 8:37 AM   #2 (permalink)
All Ur Base R Belong 2 Us
Excelling Contributor
 
mr_fern's Avatar
 
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
Most likely the file will be located here:
/usr/local/Zend/etc/php.ini

The easiest way to locate the file is to create a php info page with
<?php phpinfo(); ?>

The first table tells you the php.ini path

Go into SSH and either download the file to your computer, or use the command
nano /path/to/php.ini

and edit the file on the server. If you're using Nano (it's a text editor), when you're done with the file, do the following: Ctrl-X, Y, Enter
Ctrl-X tries to exit out, since the file's modified it askes if you want to save changes (y for yes), and then it prompts for a file name (the current file name is there), so you just hit enter

Make sure to restart Apache after making changes, because it only reads the configuration file at start up, so any changes won't be visible until apache's restarted.
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 13th, 2006, 8:39 AM   #3 (permalink)
Searcher
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,448 posts
Gave thanks: 935
Thanked 783 times
Thank you for helping out! Always on the ball !
__________________
Follow Surpass on Twitter and Facebook
Check out interesting finds on the Surpass Blog
.... it's coming.


Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 13th, 2006, 8:42 AM   #4 (permalink)
All Ur Base R Belong 2 Us
Excelling Contributor
 
mr_fern's Avatar
 
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
It's my way of avoiding coding lol. I know what I want it to do, but I can't seem to put it into the computer. I'm taking an Object Oriented approach this time around, and I'm still getting adjusted.
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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