| Search Me! Lots of information is found in this board. You can also ask general questions here if you'd like! This is the last stop on Surmunity. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
URB4N 5K1LLZ
Super #1
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
|
[Dedicated - Article] PHP Configuration
PHP Configuration is mainly controlled through the php.ini file. The php.ini file includes a large array of configurations and corresponding values.
Introduction Fig 1. (This is some text copied from a php.ini file) The php.ini file comes very well documented from within the file itself. You will notice many lines that begin with a semicolon ; , these lines are considered comments. The text in bold illustrates the configuration/module and its corresponding value separated by the equal sign. PHP Code:
Fig 2. (This figure illustrates a header box) To distinguish different sections from the rest of the php.ini file, "blocked boxes" are used as a method of formatting of which the parser will skip over. Similar techniques are used in Cascading Style Sheets, HTML, and many other languages. PHP Code:
The simplest way to edit the php.ini file is through the terminal. The nano command is amongst the most popular. MAC Directions First Open Terminal (Macintosh HD/Applications/Utilities/) Then, begin an SSH Session (replace root w/your username & replace the IP Address with your IP Address): Code:
$ ssh root@10.2.14.21 Code:
$ nano /usr/local/lib/php.ini ![]() |
|
|
|
|
|
#2 (permalink) |
|
Surpass Abuse Admin
Super #1
Joined in Mar 2005
Lives in Houston, TX
Hosted on NONE
7,797 posts
Gave thanks: 11
Thanked 278 times
|
php.ini is not always located at /usr/local/lib/php.ini on dedicated servers. `php -i | grep ini` can be used to find php.ini's proper location ...
Also, shared users cannot edit this file.
__________________
Unofficial IRC Channel: #surpass EFNetUnofficial = No official support. Support requests can be submitted to our helpdesk. |
|
|
|