Install PHP + Mysql + Apache under Solaris10

Source: Internet
Author: User
Install PHP + Mysql + Apache-Linux Enterprise Application-Linux server application under Solaris10. For details, refer to the following section. Platform: Sun solaris 10 for iSCSI
Software: httpd-2.0.55.tar.gz

Php-4.4.2.tar.gz

Mysql-5.0.18.tar.gz

Unpackage after download

1. The system is installed in the/export/home/www directory. To facilitate management, create a directory

# Mkdir www

# Cd www

# Mkdir apache

# Mkdir php

# Mkdir mysql

2. Go to the http2.0 directory of the unwrapped package

#./Configure -- prefix =/export/home/www/apache -- enable-so

# Make

# Make install

3. Go to the PHP Directory after unpacking

#./Configure -- prefix =/export/home/www/php -- with-apxs2 =/export/home/www/apache/bin/apxs -- with-mysql

# Make

# Make install

4. Go to the Mysql directory after unpacking

#./Configure -- prefix =/export/home/www/mysql

# Make

# Make install

# Cp support-files/my-medium.cnf/etc/my. cnf

After installing the system, configure the system

1. php configuration

# Cp php. ini-dist/export/home/www/php/lib/php. ini

# For other security configurations, see related information

2. apache configuration

# Vi httpd. conf

Add LoadModule php4_module modules/libphp4.so

Modify Group to Group nobody.

Add AddType application/x-httpd-php. php. phtml

Go to the htdocs directory and delete all the files.

And edit the file test. php.

  

Test whether PHP is successful

3. Mysql Configuration

# Useradd mysql

# Groupadd mysql

#/Bin/mysql_install_db -- user = mysql

#/Chown-R root.

#/Chown-R mysql var

#/Chgrp-R mysql.

#/Bin/mysqld_safe -- user = mysql &

# Mysqladmin-uroot password "youpassword"
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.