Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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


Published on

  • Be the first to comment

  • Be the first to like this

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/ </li></ul></ul></ul><ul><ul><li>Becomes: </li></ul></ul><ul><ul><ul><li>LoadModule ssl_module modules/ </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/“ </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> </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