Lines Matching refs:a

24           + Installing a PHP extension on Windows
36 + Where a configuration setting may be set
60 a web server and a web browser. You probably already have a web
62 have a web server (e.g. Apache on Linux and MacOS X; IIS on Windows).
63 You may also rent webspace at a company. This way, you don't need to
69 servers PHP has a direct module interface (also called SAPI). These
73 module support for your web server, you can always use it as a CGI or
85 extension. This is a completely different approach than writing web
97 » http://www.php.net/downloads.php. We recommend you to choose a
127 with a compile and configure process, or through various pre-packaged
130 package installation system. This can assist in setting up a standard
131 configuration, but if you need to have a different set of features
132 (such as a secure server, or a different database driver), you may need
135 whether somebody has already built a packaged version of PHP with the
139 * Basic Unix skills (being able to operate "make" and a C compiler)
155 a list of all available options along with short explanations running
170 on a separate page.
192 with various options, like which extensions will be enabled. Do a
193 ./configure --help for a list of available options. In our example
194 we'll do a simple configure with Apache 1 and MySQL support. Your
236 each separated by a space. We'll add .phtml to demonstrate.
247 using a HUP or USR1 signal.)
249 Alternatively, to install PHP as a static object:
266 11. ./configure --prefix=/www --activate-module=src/modules/php5/libphp5.a
267 (The above line is correct! Yes, we know libphp5.a does not exist at this
312 This will create a libphp5.so shared library that is loaded into Apache
313 using a LoadModule line in Apache's httpd.conf file. The PostgreSQL
318 This will create a libphp5.so shared library for Apache, but it will
319 also create a pgsql.so shared library that is loaded into PHP either by
321 explicitly in a script using the dl() function.
325 This will create a libmodphp5.a library, a mod_php5.c and some
328 --activate-module=src/modules/php5/libphp5.a and the Apache build
329 system will create libphp5.a and link it statically into the httpd
331 binary, so the final result here is a single httpd binary that includes
337 into the final httpd you will get a pgsql.so shared library that you
341 advantages and drawbacks of each method. Building as a shared object
349 Apache's default httpd.conf currently ships with a section that
374 We do not recommend using a threaded MPM in production with Apache 2.
377 with a threaded MPM
384 » Apache download site, and a fitting PHP version from the above
423 ./configure --help for a list of available options. In our example
424 we'll do a simple configure with Apache 2 and MySQL support.
477 rename or copy it to a .phps file:
489 Following the steps above you will have a running Apache2 web server
490 with support for PHP as a SAPI module. Of course there are many more
501 of this decision, and having at least a fair understanding of the
503 discusses MPMs in a great deal more detail.
511 To build a multithreaded version of Apache, the target system must
559 environment for the spawned processes. PHP will kill a child process
570 Lighttpd provides a program called spawn-fcgi to ease the process of
575 It is possible to spawn processes without spawn-fcgi, though a bit of
579 requests) each child will live. Here's a simple bash script to help
593 # Binding to a domain socket
655 3. gunzip php-x.x.x.tar.gz (if you have a .gz dist, otherwise go to
708 php.ini-values, for example you can set a
713 4. This is only needed if you want to configure a directory that only
714 consists of PHP scripts (same like a cgi-bin directory):
720 After that you can configure a directory in the Administration
735 6. To use PHP Authentication on a single directory, add the following:
750 WS/iPlanet/Netscape is a multithreaded web server. Because of that all
754 way to try this in the old PHP way with getenv() or a similar way
764 wanted to start, as a CGI script (a CGI script inside of the admin
788 directives which could interfere with yours. If you want to place a
793 create a PHP script which displays a directory listing and replace the
820 By default, PHP is built as both a CLI and CGI program, which can be
821 used for CGI processing. If you are running a web server that PHP has
833 If you have built PHP as a CGI program, you may test your build by
834 typing make test. It is always a good idea to test your build. This way
835 you may catch a problem with PHP on your platform early instead of
857 compile it, or install a pre-compiled binary.
883 contains the basic engine (plus gettext and iconv). Next, take a look
894 # /usr/local/sbin/phpxs -a mysql
897 # /usr/local/sbin/phpxs -a imap
898 (remove mysql as a test)
919 * The default install of Apache runs inside a » chroot(2) jail, which
921 will therefore need to create a /var/www/tmp directory for PHP
937 Older releases of OpenBSD used the FLAVORS system to compile up a
1009 Second, before installing a package, it's wise to ensure the package
1035 The examples will show a lot of packages including several PHP specific
1082 There are a few pre-packaged and pre-compiled versions of PHP for Mac
1083 OS X. This can help in setting up a standard configuration, but if you
1084 need to have a different set of features (such as a secure server, or a
1087 own software, it's worth checking whether somebody has already built a
1103 with the default web server requires uncommenting a few lines in the
1108 up a local development environment. It's highly recommended to always
1112 further details. The following instructions are geared towards a
1113 beginner with details provided for getting a default setup to work. All
1114 users are encouraged to compile, or install a new packaged version.
1126 Note: One way to open this is by using a Unix based text editor in
1130 prompt for a password): sudo nano /private/etc/apache2/httpd.conf
1137 2. With a text editor, uncomment the lines (by removing the #) that
1172 location on Mac OS X is /usr/local/php/php.ini and a call to
1173 phpinfo() will reveal this information. If a php.ini is not used,
1183 7. Create a phpinfo() file
1185 creating a file in the DocumentRoot with the following PHP code:
1216 * Installing a PHP extension on Windows
1225 » PECL is a repository of PHP extensions that are made available to you
1231 extension. Adjust accordingly. These instructions also assume a
1235 To be useful, a shared extension must be built, installed, and loaded.
1252 automatically, so in this case there is no need for a separate
1272 Installing a PHP extension on Windows
1274 On Windows, you have two ways to load a PHP extension: either compile
1275 it into PHP, or load the DLL. Loading a pre-compiled extension is the
1278 To load an extension, you need to have it available as a ".dll" file on
1285 To compile a standalone extension (aka a DLL file), please refer to
1301 Library (PECL) is a repository for PHP Extensions, providing a
1307 benefit from your time. A nice side effect is that you give them a good
1336 The most common way to load a PHP extension is to include it in your
1363 If you are using PHP with a web server, the location and format of the
1372 If the problem lies in a compile-time setting mismatch, you probably
1391 may install a beta package using the following command:
1395 You may also install a specific version using this variant:
1409 because you're behind a firewall, or it could be because the extension
1410 you want to install is not available as a PECL compatible package, such
1415 The phpize command is used to prepare the build environment for a PHP
1417 a directory named extname:
1441 php-config is a simple shell script for obtaining information about the
1486 You might find that you need to build a PECL extension statically into
1554 CGI or a server module, safe mode, etc.), and preferably enough code to
1561 If you think you have found a bug in PHP, please report it. The PHP
1568 Read the » How to report a bug document before submitting any bug
1580 * Where a configuration setting may be set
1602 major, minor and release versions. If there is a value for
1626 necessarily documented in this manual: for a complete list of
1632 ; any text on a line after an unquoted semicolon (;) is ignored
1655 a per-directory basis. These files are processed only by the
1681 Where a configuration setting may be set
1683 These modes determine when and where a PHP directive may or may not be
1685 For example, some settings may be set within a PHP script using
1715 configuration from within the Apache configuration files. For a listing
1717 have a look at the List of php.ini directives appendix.
1721 PHP_INI_ALL and PHP_INI_PERDIR type directives. To clear a
1728 Used to set a boolean configuration directive. Can be used only
1734 can not be overridden by .htaccess or ini_set(). To clear a
1738 Used to set a boolean configuration directive. This can not be
1763 on a per-directory basis using the Windows registry. The configuration
1781 If you are interested in a complete list of configuration settings on
1797 1. Why shouldn't I use Apache2 with a threaded MPM in a production
1800 3. Unix: I installed PHP, but every time I load a document, I get the
1807 6. Unix/Windows: I have installed PHP, but when I try to access a PHP
1808 script file via my browser, I get a blank screen.
1809 7. Unix/Windows: I have installed PHP, but when try to access a PHP
1810 script file via my browser, I get a server 500 error.
1816 9. Windows: I have installed PHP, but when I try to access a PHP
1818 specified CGI application misbehaved by not returning a complete
1833 Why shouldn't I use Apache2 with a threaded MPM in a production
1840 platform. It needs a working OS, a working web server and
1845 completely separate memory segments and a strong sandbox for
1849 If you want to use a threaded MPM, look at a FastCGI
1875 Unix: I installed PHP, but every time I load a document, I get the
1879 the case, and then try to reproduce the problem with a small
1881 you can provide a backtrace with your bug report to help the
1891 + If you are getting a core dump, gdb should inform you of this
1933 Unix/Windows: I have installed PHP, but when I try to access a PHP
1934 script file via my browser, I get a blank screen.
1935 Do a 'view source' in the web browser and you will probably find
1942 Unix/Windows: I have installed PHP, but when try to access a PHP script
1943 file via my browser, I get a server 500 error.
1945 see a sensible error message, from the command line, change to
1947 and run php -i. If PHP has any problems running, then a suitable
1948 error message will be displayed which will give you a clue as to
1949 what needs to be done next. If you get a screen full of HTML
1966 Windows: I have installed PHP, but when I try to access a PHP script
1971 returning a complete set of HTTP headers.
1975 all. To get to see a sensible error message, from the command
1978 running, then a suitable error message will be displayed which
1979 will give you a clue as to what needs to be done next. If you
1980 get a screen full of HTML codes (the output of the phpinfo()
1995 Internet Services Manager. If a script file does not exist
1996 then the server will return a 404 error instead. There is also
2003 Make sure any user who needs to run a PHP script has the rights
2007 And for IIS4 you need to tell it that PHP is a script engine.
2014 to 1 so be sure the directive isn't commented out (with a ;).
2023 To be sure your php.ini is being read by PHP, make a call to
2024 phpinfo(). Near the top, there will be a listing called
2027 a directory PATH exists, then it's not being read, and you
2031 If php.ini is being read and you're running PHP as a module,
2091 + Add a new line to the end of the file: set PHPRC=C:\php