SoFunction
Updated on 2025-04-08

PHP installation guide: FAQ (I)

one,

Q: I have installed the Unix version of APACHE module as follows, but my PHP script source code is displayed in the browser, or the browser prompts me to save the file. Why?

A: This is because the PHP module does not work properly. Please check the following three places:

Please make sure that the running APACHE execution file is the last one you compiled successfully. Enter the following command:
/path/to/binary/httpd -l
If you don't see mod_php3.c in the list, you're not running a correct execution file.
Please make sure you have added the correct "Mime Type" in one of your .confs. This should be like:
AddType application/x-httpd-php3 .php3
Please make sure that the "AddType" above is not in or in the block, otherwise this AddType will only be effective in the current Virtualhost or Directory.


two,

Q: I have installed PHP as instructions, but my PHP still doesn't work with IIS, why?

Answer: It is necessary to ensure that the user who needs to run PHP has sufficient permissions to run. The IIS server uses an anonymous account created during installation, which requires permission to run. In addition, any user who needs to be proven has permission to run.


three,

Q: How to compile PHP with APACHE 1.?

A: This is very simple, just follow the steps below:

- Get the latest APACHE distribution package from the APACHE site
- UNZIP/UNTAR file to a directory such as /usr/local/src/apache-1.3.9
- Enter "./configure --with-apache=/path/to/your/apache" to start the first compilation of PHP
- Execute "make", "make install" in sequence, create and copy the required files into the APACHE directory
- Enter the APACHE directory and edit the Configuration file. Add: "AddModule modules/php3/" at the end of the file
Execute "./Configure","make"

Everything is done, you already have an APACHE execution file that can run PHP