Exercises, examples and other material relating to training module H114. This module is presented on
Private Courses and
Specially Run Courses only
PHP comes standard with some operating systems and with many ISP web space accounts. However, some of our trainees require to source and install it for themselves. We cover installation under Windows (XP), Unix, Linux and Mac OS X.
Related technical and longer articles
Sourcing, installing and configuring PHP
| Articles and tips on this subject | updated |
| 3955 | Building up from a small PHP setup to an enterprise one I've often described Well House Consultants as a "mom and pop" company - a small outfit where we provide a niche service (IT Training and a business hotel in Melksham). We make heavy use of PHP on our web sites, and it serves us very well, being quick and easy for us to code and running well on our ... | 2013-01-05 (longest) |
| 3635 | Parse error: parse error, unexpected T_STRING on brand new web site - why? A brank new web site, written with standard commercial software, running on one of our dedicated servers which has dozens of other sites on it, with standard installs of Apache httpd, MySQL and other LAMP componets (Perl, PHP and Python) - and yet the following error:
Parse error: parse error, unexpected ... | 2012-03-10 |
| 3132 | Virtual Hosting with Apache http server - an overall scheme, and avoiding common pitfalls During many of our courses, I write code snippet examples and add them to our website so that the delegates can refer back to them later - and they also form an ongoing resource for others who happen to be looking for examples. But on our Linux Web Server (LAMP) courses, there's far less original code ... | 2011-01-14 |
| 1731 | Apache httpd, MySQL, PHP - installation procedure If you're installing LAMP (Linux, Apache, MySQL, PHP), what do you do and in which order? Here's a summary of the procedure we followed on todays Apache httpd deployment course - in this case running (tailored) for a single company audience, and tailored for specfic needs.
(I've documented this and ... | 2010-06-23 |
| 2646 | Compile but do not run PHP - syntax check only The -l option to PHP on the command line compiles but does not run the code in the file - so it's very useful for syntax checking your code.
Here's an example where I tested a file with a deliberate mistake:
-bash-3.2$ php -l wsse.php
Parse error: syntax error,
unexpected '{', expecting '(' in wsse.php ... | 2010-03-03 |
| 2589 | Your PHP code does not work? Here is where to start looking. If people take the trouble to write to me and ask for help when one of the examples on our web site isn't working for them, the least I can do is to provide them with a few pointers.
But it's really hard for me to provide help when the questioner doesn't tell me the symptoms of what's wrong. Would ... | 2010-01-18 |
| 2433 | Controlling, supressing, enabling PHP error messages Q: "How can I suppress the PHP error messages?"
Q: "I get no error messages - how can I tell what is going wrong in my PHP"
Q: "Can I replace the PHP error messages with my own"
However PHP is configured, there is no satisfying everyone ... and it's a mystery to many people who install PHP code as to ... | 2009-10-03 |
| 2317 | How to make a Risotto (PHP build style) Written on last night's long flight ... posted today
Talking with Gisela, seated next to me on this Mexicana flight, I have learned why my Risottos are always sticky. Basically, wrong ingredients and wrong cooker method!
Here's her recipe, from Buenos Aires via Mexico City ...
Take some carnaroli ... | 2009-08-02 |
| 1936 | Quick Summary - PHP installation For Course Delegates - a quick reminder of the crucial commands. The numbers alongside the commands are just the history numbers!
As your regular user:
1012 tar xzf bristol/php-5.2.5.tar.gz
1013 cd php-5.2.5/
1015 vi INSTALL
1027 ./configure --with-apxs2=/usr/local/httpd_2.2.10/bin/apxs ... | 2008-12-11 |
| 1768 | What is built in to this httpd and PHP? If you build your own tailored Apache httpd and PHP, you should take a full backup when you're done, and also fully document which options you selected and modules you included in the build.
You SHOULD do so, of course ... but it's something that you can overlook all too easily. If you find yourself ... | 2008-08-24 |
| 1688 | cannot restore segment prot after reloc message - PHP / httpd Here's a message that we got yesterday when building some of the machines on our Lamp deployment course
[root@easterton apache2]# ./bin/apachectl start
Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: ... | 2008-06-27 |
| 1667 | Checking server performance for PHP generated pages I had a couple of reports recently about web pages from our site being a little slow to load, and my independent spy tells me that they're not bad, but not the world's fastest either. And a little thought lead me to conclude that could be because of the various PHP scripting elements included at the ... | 2008-06-07 |
| 934 | Clustering, load balancing, mod_rewrite and mod_proxy "It's not friendly - it's like a reference book". Customer comment on yesterday's tailored training day, where we were load balancing a web application between a number of back end servers, using Apache httpd, with mod_proxy and mod_rewrite to do the clever bits.
Our customers are right - it IS tough ... | 2006-11-26 |
| 481 | PHP upgrade - traps to watch Did you want a Perl or Python course that starts on a Sunday? Or to book an old course that starts way back on 31st December 1969?
Our new online booking system's been under test on our in-house server for a while, but it was this weekend it went live together with most of the rest of the site. ... | 2006-06-05 |
2326
Examples from our training material
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Sourcing.
Installing PHP.
Installation of PHP under an Apache Web Server on Windows XP Pro.
Installing PHP under OSX.
Configuring PHP.
Some choices for you to make.
Configurations to enable services.
Limits you can change.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.