PHPsu
MANUAL ZH  |  EN
     


Current Position :| index>FAQ> PHP installation problems

PHP installation problems

FROM: AUTHOR: TIME:2008-05-03 HITS:
1. Unix / Windows: my php.ini file should be placed on what »
UNIX default under it should be placed on / usr / local / lib directory. This is the <install-path> / lib. Many people will be compiled to change it, use - with-config-file-path signs. For example, you can set it: - with-config-file-path = / etc

Then you can copy the source bag to the php.ini-dist / etc / php.ini, you edit it to meet the demand for localization.
Windows php.ini default under the path is the Windows system directory. If you are using Apache webserver, php.ini Apaches were first installed in the directory was to find, for example: c: \ program files \ apache group \ apache. So that you can Php.ini counterparts have different versions of the Apache (the same machine).
For more details check configuration file.
2. Unix: I installed PHP, but every time I load a document, will receive the following message: Document Contains No Data! Matter how »

phpsu.com is a free phpscool


This may be because you have taken place in the PHP core-dumping wrong. Find your server error log file to see if this is the case. And then report the error. If you know how to use gdb, you can provide a backtrace error in your report. This will be the developers to solve this problem of great help. If you are in the PHP as an Apache module to use, then please do the following steps:

Stop httpd process

gdb httpd

Stop httpd process

> Run-X-f / path / to / httpd.conf

Here you have the wrong URL

> Run-X-f / path / to / httpd.conf

If you have core dump, gdb will now inform you

Enter: bt

In your bug report should be included in the backtrace. These will be sent to http://bugs.php.net/

If your script uses the regular expression functions (ereg () and friends), you should ensure that you build PHP and Apache is the same one used in a regular expression package. In PHP and Apache 1.3.x this process is automated. welcome to phpsu.com
3. Unix: I use RPMS installed PHP, but Apache does not support PHP pages! How to do »
Suppose you install the Apache and PHP (from RPM), you need anti-increasing number of bank notes or your http.conf file: # Extra ModulesAddModule mod_php.cAddModule mod_php3.cAddModule mod_perl.c # Extra ModulesLoadModule php_module modules / mod_php.soLoadModule php3_module modules/libphp3.so / * for PHP 3 * / LoadModule php4_module modules/libphp4.so / * for PHP 4 * / LoadModule perl_module modules / libperl.so

And add: AddType application/x-httpd-php3. Php3 / * for PHP 3 * / AddType application / x-httpd-php. Php / * for PHP 4 * /

... To all local, or you want to support PHP in the virtual domain.
4. I use RPMS installed PHP 3, but it does not I need the support of database options! How do I »
PHP 3 built-in support because of the relationship, compile a complete application may be suitable for all the PHP RPM is very difficult. In PHP 4 have talked about this point. The PHP 3, we can only suggest that you use INSTALL.REDHAT (in PHP bag) describe the mechanism. If you must use the RPM version of the PHP 3, Reading ... phpsu.com is a free phpscool
RPM package management is set RPMS simple to install, non-database support and because the use of RPMS / usr / instead of the standard / usr / local / directory stored documents. RPM documents you need to tell you what database to support the higher level and their Directory location.
The following example will explain the Apache model of how to support the current database Mysql.
Of course all of these can be slightly modified to support other PHP support database. We assume that you install the MySQL and Apache, is used RPMS installed.

First, remove mod_php3: rpm-e mod_php3

Then get the rpm and installation, is not - re-build rpm-Uvh mod_php3-3.0.5-2.src.rpm

Editor / usr/src/redhat/SPECS/mod_php3.spec documents
% Build in an increase in the database you want to support and path information.
You should increase the MySQL: - with-mysql = / usr \

% build section looks like:. / configure - prefix = / usr \ - with-apxs = / usr / sbin / apxs \ - with-config-file-path = / usr / lib \ - enable-debug = no \ - enable-safe-mode \ - with-exec-dir = / usr / bin \ - with-mysql = / usr \ - with-system-regex
phpsu is a phpschool


Upon completion of changes, such as the following renumbering rpm: rpm-bb / usr/src/redhat/SPECS/mod_php3.spec

Then install the rpm rpm-ivh / usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm

Restart Apache, you have been under the Mysq rpm
TITLE:PHP installation problems
Copyright 2008 The PHPsu All rights reserved. This mirror generously provided by: .Hp Inc.
Last updated: Fri Jun 6 22:58:06 GMT-8 2008