Some people like to study things before starting to use it. Some people tackle things head on straight away. Either way, as far as Apache/PHP/MySql web hosting goes, it is good to understand some of the configuration of this hosting.
Maybe the hosting is already set up and you are curious about how it works. Think, for this scenario, one of the best places to start is via PHP’s “phpinfo();” command information, which we show you for a local MAMP web server, on a Mac laptop, here, with this tutorial.
The information from phpinfo() can tell you about modules installed for PHP which can be important knowledge to know what your setup is capable of for functionailty you may want to add yourself. For instance, module gd makes working with images much easier. One of the modules mysql or mysqli is necessary for MySql database usage.
The information from phpinfo() can tell you about PHP $_SERVER variables, which are invaluable to use. HTML form processing can use $_POST and/or $_GET variables and $_SERVER variables to achieve great things. This information may stop you thinking you have to reinvent the wheel. Square wheels are so “last week”.
As you can imagine the Apache/PHP/MySql triad is quite a complex beast and want to help your thirst for knowledge with a list of lookable-uppables with MAMP examples where that might help (help being the operative word, please do not think that any of these configuration files should be copied onto your computer system, as they are only intended for perusal and comparison purposes, or for your general interest), in a list below:
httpd.conf Apache configuration | php.ini PHP configuration | my.cnf MySql configuration |
robot.txt link |
.htaccess link | mime.types link |
rpm link |
apt link | yum link |
cPanel link | pecl link | pear link |
module link |
plugin link | extension link |
.inc files link | $_SERVER variables link | environment variables link |
Link to some downloadable PHP programming source code to show phpinfo() information (rename to phpinfo.php).
If this was interesting you may be interested in this too.