SuSE 11.1 and apache2 installation
Welcome back. Last time I installed postgresql and now I am after apache2.
I use zypper, the command-line repository manager for SuSE to load things up. You can use YaST2 if you like. It is just a glossy UI that sits atop zypper.
Command | Description |
---|---|
zypper | OpenSuSE package manager command-line tool. |
vim | Not explicitly listed, but I use the VIM text editor to modify configuration files. |
/etc/init.d/* | Not really a command, but the directory in most Linux distributions where services are started, stopped, and restarted. |
First I want to check out what is out there in repository-land:
Pacifica:/home/phardin/Documents # zypper se apache
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+---------------------------------------+-----------------------------------------------------+-----------
| CASA_auth_token_apache2_2_support | Novell CASA Authentication Token Apache2_2 Suppor-> | package
| ant-apache-bcel | Optional apache bcel tasks for ant | package
| ant-apache-bsf | Optional apache bsf tasks for ant | package
| ant-apache-log4j | Optional apache log4j tasks for ant | package
| ant-apache-oro | Optional apache oro tasks for ant | package
| ant-apache-regexp | Optional apache regexp tasks for ant | package
| ant-apache-resolver | Optional apache resolver tasks for ant | package
| apache-portlet-1_0-api | Portlet API 1.0 from Jetspeed2 | package
| apache-portlet-1_0-api-javadoc | Portlet API 1.0 from Jetspeed2 | package
| apache2 | The Apache Web Server Version 2.0 | package
| apache2 | The Apache Web Server Version 2.0 | srcpackage
| apache2 | apache2: Security fixes for various vulnerabilities | patch
| apache2-devel | Apache 2.0 Header and Include Files | package
| apache2-doc | Additional Package Documentation. | package
| apache2-example-pages | Example Pages for the Apache 2 Web Server | package
| apache2-mod_apparmor | AppArmor module for apache2 | package
| apache2-mod_auth_ntlm_winbind | Enables Apache to authenticate users against Micr-> | package
| apache2-mod_fcgid | Alternative FastCGI module for Apache2 | package
| apache2-mod_jk | Connectors between Apache and Tomcat Servlet Cont-> | package
| apache2-mod_jk | Connectors between Apache and Tomcat Servlet Cont-> | srcpackage
| apache2-mod_jk | apache2-mod_jk security update | patch
| apache2-mod_macro | Define and Use Macros within the Apache Configura-> | package
| apache2-mod_mono | Run ASP.NET Pages on Unix with Apache and Mono | package
| apache2-mod_perl | Embedded Perl for Apache | package
| apache2-mod_perl-devel | Embedded Perl for Apache - Development package | package
| apache2-mod_php5 | PHP5 Module for Apache 2.0 | package
| apache2-mod_php5 | php5: fixed multiple securityissues | patch
| apache2-mod_python | A Python Module for the Apache 2 Web Server | package
| apache2-mod_scgi | Apache module named mod_scgi that implements the -> | package
| apache2-mod_security2 | ModSecurity Open Source Web Application Firewall | package
| apache2-mod_security2 | ModSecurity Open Source Web Application Firewall | srcpackage
| apache2-mod_security2 | apache2-mod_security2: fixed DoS in multipart pro-> | patch
| apache2-mod_tidy | Apache Module using the Tidy Library to Clean Up -> | package
| apache2-mono-complete | Hack to make apache2 start on boot | package
| apache2-mono-complete | Hack to make apache2 start on boot | srcpackage
| apache2-prefork | Apache 2 "prefork" MPM (Multi-Processing Module) | package
| apache2-utils | Apache 2 utilities | package
| apache2-worker | Apache 2 worker MPM (Multi-Processing Module) | package
| perl-Apache-AuthCookie | Apache/Perl Authentication and Authorization via -> | package
| perl-Apache-AuthNetLDAP | use Net::LDAP for user authentication in Apache | package
| perl-Apache-AuthNetLDAP | use Net::LDAP for user authentication in Apache | srcpackage
| perl-Apache-DBI | Apache authentication via perl DBI | package
| perl-Apache-DBI | Apache authentication via perl DBI | srcpackage
| perl-Apache-Filter | Alter the output of previous handlers | package
| perl-Apache-Filter | Alter the output of previous handlers | srcpackage
| perl-Apache-Session | persistent storage for arbitrary data | package
| perl-Apache-Session | persistent storage for arbitrary data | srcpackage
| perl-Apache-Session-Wrapper | A Simple Wrapper Around Apache::Session | package
| perl-Apache-Session-Wrapper | A Simple Wrapper Around Apache::Session | srcpackage
| perl-Apache-SessionX | Persistent Storage for Arbitrary Data (for Embperl) | package
| perl-Apache-SessionX | Persistent Storage for Arbitrary Data (for Embperl) | srcpackage
| perl-Apache2-AuthCookieDBI | An AuthCookie module backed by a DBI database. | package
| perl-MasonX-Request-WithApacheSession | Add a Aession to the Mason Request Object | package
| perl-MasonX-Request-WithApacheSession | Add a Aession to the Mason Request Object | srcpackage
Pacifica:/home/phardin/Documents #
Holy Cats!! What a bunch of packages!
Ok. I happen to know that mediawiki is written in php. I know I need to be able to use postgres with apache. I know I need to use subversion with apache. I will look for anything that might help me with this. First, I want to see what will get installed with the basic
apache2
package.To do this I will use zypper with the 'dry run' option:
Pacifica:/home/phardin/Documents # zypper in -D apache2
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW packages are going to be installed:
apache2 apache2-prefork apache2-utils libapr1 libapr-util1
Overall download size: 1.3 M. After the operation, additional 3.4 M will be used.
Continue? [YES/no]:
Retrieving package libapr1-1.3.8-2.1.i586 (1/5), 131.0 K (293.0 K unpacked)
Retrieving: libapr1-1.3.8-2.1.i586.rpm [done]
Installing: libapr1-1.3.8-2.1 [done]
Retrieving package libapr-util1-1.3.9-2.1.i586 (2/5), 99.0 K (215.0 K unpacked)
Retrieving: libapr-util1-1.3.9-2.1.i586.rpm [done]
Installing: libapr-util1-1.3.9-2.1 [done]
Retrieving package apache2-utils-2.2.10-2.8.1.i586 (3/5), 109.0 K (176.0 K unpacked)
Retrieving: apache2-utils-2.2.10-2.8.1.i586.rpm [done]
Installing: apache2-utils-2.2.10-2.8.1 [done]
Retrieving package apache2-prefork-2.2.10-2.8.1.i586 (4/5), 263.0 K (583.0 K unpacked)
Retrieving: apache2-prefork-2.2.10-2.8.1.i586.rpm [done (33.9 K/s)]
Installing: apache2-prefork-2.2.10-2.8.1 [done]
Retrieving package apache2-2.2.10-2.8.1.i586 (5/5), 746.0 K (2.1 M unpacked)
Retrieving: apache2-2.2.10-2.8.1.i586.rpm [done (180.0 K/s)]
Installing: apache2-2.2.10-2.8.1 [done]
Pacifica:/home/phardin/Documents #
I think all I need to add to this is documentation and php5 support:
Pacifica:/home/phardin/Documents # zypper in apache2 apache2-mod_php5 apache2-doc
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW packages are going to be installed:
apache2 apache2-doc apache2-mod_php5 apache2-prefork apache2-utils libapr1
libapr-util1 libmm14 php5 php5-ctype php5-dom php5-hash php5-iconv php5-json php5-pdo
php5-sqlite php5-tokenizer php5-xmlreader php5-xmlwriter
Overall download size: 5.5 M. After the operation, additional 19.9 M will be used.
Continue? [YES/no]:
Retrieving package libmm14-1.4.2-16.79.i586 (1/19), 40.0 K (40.0 K unpacked)
Installing: libmm14-1.4.2-16.79 [done]
Retrieving package libapr1-1.3.8-2.1.i586 (2/19), 131.0 K (293.0 K unpacked)
Retrieving: libapr1-1.3.8-2.1.i586.rpm [done]
Installing: libapr1-1.3.8-2.1 [done]
Retrieving package apache2-doc-2.2.10-2.8.1.i586 (3/19), 1.7 M (10.0 M unpacked)
Retrieving: apache2-doc-2.2.10-2.8.1.i586.rpm [done (452.4 K/s)]
Installing: apache2-doc-2.2.10-2.8.1 [done]
Retrieving package libapr-util1-1.3.9-2.1.i586 (4/19), 99.0 K (215.0 K unpacked)
Retrieving: libapr-util1-1.3.9-2.1.i586.rpm [done]
Installing: libapr-util1-1.3.9-2.1 [done]
Retrieving package php5-5.3.1_git200911032107-29.1.i586 (5/19), 1.0 M (3.0 M unpacked)
Retrieving: php5-5.3.1_git200911032107-29.1.i586.rpm [done (263.7 K/s)]
Installing: php5-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-xmlwriter-5.3.1_git200911032107-29.1.i586 (6/19), 41.0 K (38.0 K unpacked)
Retrieving: php5-xmlwriter-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-xmlwriter-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-tokenizer-5.3.1_git200911032107-29.1.i586 (7/19), 37.0 K (18.0 K unpacked)
Retrieving: php5-tokenizer-5.3.1_git200911032107-29.1.i586.rpm [done (570 B/s)]
Installing: php5-tokenizer-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-pdo-5.3.1_git200911032107-29.1.i586 (8/19), 66.0 K (91.0 K unpacked)
Retrieving: php5-pdo-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-pdo-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-json-5.3.1_git200911032107-29.1.i586 (9/19), 43.0 K (34.0 K unpacked)
Retrieving: php5-json-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-json-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-iconv-5.3.1_git200911032107-29.1.i586 (10/19), 45.0 K (34.0 K unpacked)
Retrieving: php5-iconv-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-iconv-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-hash-5.3.1_git200911032107-29.1.i586 (11/19), 105.0 K (190.0 K unpacked)
Retrieving: php5-hash-5.3.1_git200911032107-29.1.i586.rpm [done (206 B/s)]
Installing: php5-hash-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-dom-5.3.1_git200911032107-29.1.i586 (12/19), 74.0 K (151.0 K unpacked)
Retrieving: php5-dom-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-dom-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-ctype-5.3.1_git200911032107-29.1.i586 (13/19), 35.0 K (14.0 K unpacked)
Retrieving: php5-ctype-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-ctype-5.3.1_git200911032107-29.1 [done]
Retrieving package apache2-utils-2.2.10-2.8.1.i586 (14/19), 109.0 K (176.0 K unpacked)
Retrieving: apache2-utils-2.2.10-2.8.1.i586.rpm [done (34.7 K/s)]
Installing: apache2-utils-2.2.10-2.8.1 [done]
Retrieving package apache2-prefork-2.2.10-2.8.1.i586 (15/19), 263.0 K (583.0 K unpacked)
Retrieving: apache2-prefork-2.2.10-2.8.1.i586.rpm [done]
Installing: apache2-prefork-2.2.10-2.8.1 [done]
Retrieving package php5-xmlreader-5.3.1_git200911032107-29.1.i586 (16/19), 41.0 K (26.0 K unpacked)
Retrieving: php5-xmlreader-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-xmlreader-5.3.1_git200911032107-29.1 [done]
Retrieving package php5-sqlite-5.3.1_git200911032107-29.1.i586 (17/19), 71.0 K (132.0 K unpacked)
Retrieving: php5-sqlite-5.3.1_git200911032107-29.1.i586.rpm [done]
Installing: php5-sqlite-5.3.1_git200911032107-29.1 [done]
Retrieving package apache2-2.2.10-2.8.1.i586 (18/19), 746.0 K (2.1 M unpacked)
Retrieving: apache2-2.2.10-2.8.1.i586.rpm [done (189.9 K/s)]
Installing: apache2-2.2.10-2.8.1 [done]
Additional rpm output:
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Finished.
Updating etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.
Retrieving package apache2-mod_php5-5.3.1_git200911032107-29.1.i586 (19/19), 945.0 K (2.8 M unpacked)
Retrieving: apache2-mod_php5-5.3.1_git200911032107-29.1.i586.rpm [done (248.8 K/s)]
Installing: apache2-mod_php5-5.3.1_git200911032107-29.1 [done]
Pacifica:/home/phardin/Documents #
It took me 3 times to get the command line right on that. I kept checking that first section that told me what would be installed and then asked the yes, or no question. I kept saying 'no' until I saw the right packages appear.
One other thing I need is PHP. I think it is already installed:
Pacifica:/home/phardin/Documents # zypper if PHP5
Loading repository data...
Reading installed packages...
Information for package PHP5:
Repository: @System
Name: php5
Version: 5.3.1_git200911032107-29.2
Arch: i586
Vendor: openSUSE Build Service
Installed: Yes
Status: up-to-date
Installed Size: 3.0 M
Summary: PHP5 Core Files
Description:
This package contains the PHP5 core files, including PHP binary (CLI)
and PHP configuration (php.ini). This package must be installed in
order to use PHP. Additionally, extension modules and server modules
(e.g. for Apache) may be installed.
Additional documentation is available in package php-doc.
Pacifica:/home/phardin/Documents #
Now, we have the docs, we have the modules, we have the apache2 server, and we have the
/etc/init.d/apache2
script to start the engine. Let's see what happens when we crank it up!/etc/init.d/apache2 start
Crank up my trusty browser and type in:
localhost
and hit return....Access Denied!
This is fabulous as it means my server is running and on the job.
For OpenSuse the configuration files for apache2 are in
/etc/apache2<.code>. Here you will find a file called, default-server.conf
, which is largely a set of include statements. configuration for add-on sites and modules is in, conf.d
. Looking there I see a configuration file, apache2-manual.conf
. Reading this configuration I see that it is expecting to find the apache2 manual at, /usr/share/apache2/manual
. A quick check shows me that this is where the installed manual is. But, the permissions are all wrong for the server to read these files.
When I posted about setting up the postgresql server I noted that a new user and group had been created with the installation of postgresql, postgres
and postgres
. Well a similar thing has happened with apache2. Now there is a user, wwwrun
, and user, www
. I will change the ownership of the files and directories in the manual directory all in one shot with the, chown -R wwwrun:www /usr/share/apache2/manual
, command.
Back to the browser, http://localhost/manual/en
, and there it is!
Next, I will be going back to my postgres installation and configuring it to handle backing a mediawiki site so I can keep track of my coding documentation.
0 Comments:
Post a Comment
<< Home