[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:setup_apache_php_mysql [2012/09/12 19:07 (UTC)] – ADDED: php timezone change and httpd server name info. Left the formatting for the author to do. Moved SOURCES to the bottom. arfon | howtos:setup_apache_php_mysql [2012/09/25 04:42 (UTC)] (current) – deleted page - moved to the howts:network_services section mfillpot | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
- | ====== Setup Apache, PHP and MySQL ====== | ||
- | In order to configure your Slackware Linux box as a MySQL-PHP -ready web server, please follow these instructions: | ||
- | |||
- | * Install the Apache (httpd), php and MySQL packages from the Slackware discs or Slackpkg. | ||
- | |||
- | * Fix php time zone (many apps will complain about this if you don't do it). Edit '''/ | ||
- | < | ||
- | date.timezone = America/ | ||
- | </ | ||
- | * As the root user, open the '''/ | ||
- | |||
- | < | ||
- | |||
- | Now your Apache will include the PHP module when it starts. | ||
- | |||
- | * Set a server name (if your machine' | ||
- | < | ||
- | ServerName www.example.com: | ||
- | </ | ||
- | * Optionally (but recommended), | ||
- | * Optionally 2, if you use Perl for web scripts, you may want to add ''' | ||
- | |||
- | < | ||
- | |||
- | ... and change it by: | ||
- | |||
- | < | ||
- | |||
- | Please note the ''' | ||
- | |||
- | <code bash> | ||
- | |||
- | \\ | ||
- | * If you want your Apache server to start automatically when you start your box, you can change the permissions of the '''/ | ||
- | |||
- | <code bash> | ||
- | |||
- | Now your Apache server will start automatically when your system boots. | ||
- | |||
- | \\ | ||
- | In order to configure your MySQL installation, | ||
- | |||
- | |||
- | == Final Considerations == | ||
- | * Normally you would want to test your recent changes in order to know if they have worked. After restarting Apache, create a ''' | ||
- | |||
- | <code php> | ||
- | <?php phpinfo(); ?> | ||
- | </ | ||
- | |||
- | Now you can open your favorite web browser to the following URL: http:// | ||
- | |||
- | \\ | ||
- | ==== Sources ==== | ||
- | <!-- If you are copying information from another source, then specify that source --> | ||
- | * Original source: [[http:// | ||
- | <!-- Authors are allowed to give credit to themselves! --> | ||
- | * Originally written by User [[wiki: | ||
- | {{tag> |