您的位置:首页 > 运维架构 > Apache

solaris php and apache Installation introduction

2007-04-06 10:43 465 查看
apache-2.0.59-sol10-sparc-local.gz Apache 2 - the popular web server - installs in /usr/local/apache2. This apache package was configured with openssl support. Dependencies: expat, libiconv, gdbm, zlib, db-4.2.52.NC, openssl-0.9.8e, and you may need /usr/local/lib/libgcc_s.so.1 either from the libgcc-3.3 or gcc-3.3.2 or higher packages. Documentation can be found in /usr/local/apache2/doc/apache2. The configuration files in /usr/local/apache2/conf must be edited to fit your site's needs, including ssl support. The httpd-std.conf there should be copied to httpd.conf and any edits you must make included. Suggested special edits for httpd.conf include changing the line

Group #-1 to Group nobody
If you have already been using apache2, MAKE SURE that you backup any files in the conf, htdocs, modules, or other subdirectories of /usr/local/apache2 where you might have changed or added files so that installing the updated apache2 will not cause your configuration or other files to be lost.
The configuration step for this package was
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http
The modules that were compiled with this package can be found in /usr/local/apache2/modules. You may also need to set up startup scripts to begin the httpd processes at boot up. See the appropriate link for your level of Solaris in openssh.html where you can determine how to set up the randomness features required when using openssl.

php-4.4.5-sol10-sparc-local.gz The PHP scripting language - installs in /usr/local/php4 to avoid confusion with php5 which installs in /usr/local/php. Php requries that either libgcc-3.3 or gcc be installed. PHP is used with apache 2.0.59, not apache 2.2, and mysql which should also be installed along with any packages they may require. PHP needs configuration. php.ini related files are in /usr/local/php4/doc/php4 along with other documentation. php.ini needs to be installed in /usr/local/php4/lib. The libphp4.so file is installed in /usr/local/apache2/modules. The following two lines

·         LoadModule php4_module        modules/libphp4.so

·         AddType application/x-httpd-php .php

need to be placed in your httpd.conf file in their appropriate places.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: