J M Githeko
Agenda <ul><li>Software installation – Apche, MySQL, PHP </li></ul><ul><li>Configuring httpd.conf </li></ul><ul><li>Admini...
Apache [httpd.conf] <ul><li>Set Document Root:  </li></ul><ul><ul><li>DocumentRoot “c:/wamp/www/“ </li></ul></ul><ul><li>S...
Apache Error Response Customization <ul><li>Customizable error responses come in three flavors: </li></ul><ul><li>Plain Te...
Httpd.conf Configuration <ul><li>LoadModule php5_module &quot;c:/wamp/bin/php/php5.2.9-1/php5apache2_2.dll“ [Load PHP modu...
MySQl <ul><li>See MySQL.doc tutorial on NTC website </li></ul><ul><li>Use MySQL client: </li></ul><ul><li>E.g. To create a...
FTP <ul><li>Hosting site must have an FTP server running </li></ul><ul><li>Install ftp client </li></ul><ul><li>Connect to...
FTP
Free Web Hosting With PHP/MySQL <ul><li>http://www.000webhost.com/ </li></ul><ul><li>Key Info to Keep Carefully: </li></ul...
Web Site Security – Next Week
Upcoming SlideShare
Loading in...5
×

J M Githeko Agenda Software installation – Apche, MySQL, PHP

346

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
346
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

J M Githeko Agenda Software installation – Apche, MySQL, PHP

  1. 1. J M Githeko
  2. 2. Agenda <ul><li>Software installation – Apche, MySQL, PHP </li></ul><ul><li>Configuring httpd.conf </li></ul><ul><li>Administering MySQL </li></ul><ul><li>FTP </li></ul><ul><ul><li>Servers – Filezillar Server </li></ul></ul><ul><ul><li>Clients – FileZilla , SmartFTP , CuteFTP … </li></ul></ul><ul><li>Web Analytics – AWSTATS, Google Analytics – measures website statistics </li></ul>
  3. 3. Apache [httpd.conf] <ul><li>Set Document Root: </li></ul><ul><ul><li>DocumentRoot “c:/wamp/www/“ </li></ul></ul><ul><li>Server Name: </li></ul><ul><ul><li>DocumentRoot &quot;c:/wamp/www/“ </li></ul></ul><ul><li>Loading Modules: </li></ul><ul><ul><li>Remove “#” comment from module name </li></ul></ul><ul><ul><li>E.g. </li></ul></ul><ul><ul><ul><li>#LoadModule ssl_module modules/mod_ssl.so </li></ul></ul></ul><ul><ul><li>Becomes: </li></ul></ul><ul><ul><ul><li>LoadModule ssl_module modules/mod_ssl.so </li></ul></ul></ul>
  4. 4. Apache Error Response Customization <ul><li>Customizable error responses come in three flavors: </li></ul><ul><li>Plain Text </li></ul><ul><li>Local Redirects </li></ul><ul><li>External Redirects </li></ul><ul><li>(1) Plain Text </li></ul><ul><li>#ErrorDocument 500 &quot;The server made a boo boo.&quot; </li></ul><ul><li>(2) local redirects </li></ul><ul><li>#ErrorDocument 404 /missing.html </li></ul><ul><li>#ErrorDocument 404 &quot;/cgi-bin/missing_handler.pl“ </li></ul><ul><li>(3) External Redirects </li></ul><ul><li>#ErrorDocument 402 http://localhost/subscription_info.html </li></ul>
  5. 5. Httpd.conf Configuration <ul><li>LoadModule php5_module &quot;c:/wamp/bin/php/php5.2.9-1/php5apache2_2.dll“ [Load PHP module] </li></ul><ul><li>DirectoryIndex index.php index.php3 index.html index.htm [Cause Apache to look for index.php before index.html] </li></ul><ul><li>AddType application/x-httpd-php .php [Recognise php files] </li></ul>
  6. 6. MySQl <ul><li>See MySQL.doc tutorial on NTC website </li></ul><ul><li>Use MySQL client: </li></ul><ul><li>E.g. To create a user: </li></ul><ul><li>GRANT ALL PRIVILEGES ON drupal.* TO root@localhost IDENTIFIED BY 'rootpassword'; </li></ul><ul><li>Database: drupal </li></ul><ul><li>User Name: root (on localhost) </li></ul><ul><li>Password: 'rootpassword'; </li></ul>
  7. 7. FTP <ul><li>Hosting site must have an FTP server running </li></ul><ul><li>Install ftp client </li></ul><ul><li>Connect to site </li></ul><ul><li>Upload files (take care not to delete accidentally) </li></ul>
  8. 8. FTP
  9. 9. Free Web Hosting With PHP/MySQL <ul><li>http://www.000webhost.com/ </li></ul><ul><li>Key Info to Keep Carefully: </li></ul><ul><li>Cpanel User Name/Password </li></ul><ul><li>Web Address </li></ul><ul><li>FTP Cpanel User Name/Password </li></ul><ul><li>FTP Address </li></ul>
  10. 10. Web Site Security – Next Week
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×