Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by pctony: http://wiki.apache.org/httpd/ScratchPad/DebianPHP The comment on the change is: fixed url, added spacing rount titles ------------------------------------------------------------------------------ - ## Please edit system and help pages ONLY in the moinmaster wiki! For more - ## information, please see MoinMaster:MoinPagesEditorGroup. - ##master-page:Unknown-Page - ##master-date:Unknown-Date - ##acl MoinPagesEditorGroup:read,write,delete,revert All:read - #format wiki - #language en == Installing Apache 2 and PHP 5 on Debian == Lately a lot of folks on #Apache requested help with the installation of Apache 2[.2] and PHP 5 on a Debian[-based] system. @@ -23, +16 @@ }}} This will download the latest lists of packages, to make sure you also install the latest version of the software. - ===Installing the Software=== + === Installing the Software === + Installing then the required packages is as straight forward as installing any other package on Debian, the trick is knowing what packages you need: {{{ apt-get install apache2-mpm-prefork libapache2-mod-php5 @@ -37, +31 @@ After the install is done, and was successful, hitting ''http://localhost/'' in your browser should prove that you now have a running web server. === Configuring PHP === + As Debian is trying to be an extra friendly distro, it splits a single package up in all possible and impossible modules. In Apache's case those modules are called ''libapache2-mod-something'' and their configuration files are saved in ''/etc/apache2/mods-available''. To enable it, you'd type something like: {{{ @@ -56, +51 @@ That's it. You should now be able to run PHP scripts on your newly installed web server. === Resources === + [["Info/DistrosDefaultLayout"]] In order to become familiar with your new Debian-based Apache symstem you should read this. Also you will be very surprised that the Debian folks not only make weird changes to make your life harder but also document it very well: - [[DistrosDefaultLayout#head-afb889cc78d0a4f74ca995f02aad7e8a2a7c21b9]] In order to become familiar with your new Debian-based Apache symstem you should read this - Also you will be very surprised that the Debian folks not only make weird changes to make your life harder but also document it very well: In ''/usr/share/doc/apache2/'' You should find most of the documentation you need.
