Php + mysql + apache installation notes on SUSE10-Linux Enterprise Application-Linux server application information. The following is a detailed description. The self-installed apache of SUSE 10 does not know where it is.
Always prompts 403 error,
GOOGLE, there are quite a few people who find this problem,
In desperation, we had to reinstall
Some foreign users suggest using Yast to delete him. If you want to delete him, keep it. At most, keep it for 80 users.
Install one principle: Read More manual
Which of the following is provided by PHP?
Example 2-4. Installation Instructions (Apache 2 Shared Module
Version)
1. gzip-d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar-xvf php-NN.tar
5. cd httpd-2_0_NN
6../configure -- enable-so
7. make
8. make install
Now you have Apache 2.0.NN available under/usr/local/apache2,
Configured with loadable module support and the standard MPM prefork.
To test the installation use your normal procedure for starting
The Apache server, e.g .:
/Usr/local/apache2/bin/apachectl start
And stop the server to go on with the configuration for PHP:
/Usr/local/apache2/bin/apachectl stop.
9. cd ../php-NN
10. Now, configure your PHP. This is where you customize your PHP
With various options, like which extensions will be enabled. Do
./Configure -- help for a list of available options. In our example
We'll do a simple configure with Apache 2 and MySQL support. Your
Path to apxs may differ, in fact, the binary may even be named apxs2 on
Your system.
. /Configure -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-mysql note at this time, sometimes the error is reported:, because the SUSE did not install FLEX and bison hurry to gnu go down, install all the way, green light, OK
/
11. make
12. make install
If you decide to change your configure options after installation,
You only need to repeat the last three steps. You only need
Restart apache for the new module to take effect. A recompile
Apache is not needed.
Note that unless told otherwise, 'Make install' will also install PEAR,
Various PHP tools such as phpize, install the php cli, and more.
13. Setup your php. ini
Cp php. ini-dist/usr/local/lib/php. ini
You may edit your. ini file to set PHP options. If you prefer having
Php. ini in another location, use -- with-config-file-path =/some/path in
Step 10.
If you instead choose php. ini-recommended, be certain to read the list
Of changes within, as they affect how PHP behaves.
14. Edit your httpd. conf to load the PHP module. The path on the right hand
Side of the LoadModule statement must point to the path of the PHP
Module on your system. The make install from above may have already
Added this for you, but be sure to check.
For PHP 4:
LoadModule php4_module libexec/libphp4.so
For PHP 5:
LoadModule php5_module libexec/libphp5.so
15. Tell Apache to parse certain extensions as PHP. For example,
Let's have Apache parse the. php extension as PHP. You cocould
Have any extension (s) parse as PHP by simply adding more,
Each separated by a space. We'll add. phtml to demonstrate.
AddType application/x-httpd-php. php. phtml
It's also common to setup the. phps extension to show highlighted PHP
Source, this can be done:
AddType application/x-httpd-php-source. phps
16. Use your normal procedure for starting the Apache server, e.g .:
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