Allt från Computex 2023
Permalänk
Medlem

Apache 2.0.54 + PHP 5.0.4

Finns det nån info nånstans där nån förklarar hur man får apache + php att fungera? Jag har redan apache på datorn men tänker nu installera php, är det mkt conf och sånt?

Får det här felmedellande vid ./configure

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.

Permalänk
Medlem

jag tror att du måste installera libxml2

Visa signatur

8D

Permalänk
Medlem

ohhhh fan blir nog optiker snart trodde det var libxm12

Det som jag gjort är:

1. "cp php.ini-dist /usr/local/lib/php.ini"

2. LoadModule php4_module libexec/libphp4.so

Så här ser det ut:

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
LoadModule php4_module libexec/libphp4.so

3. Längst ner la jag dom här:

AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml

Får upp följande fel meddelande när jag ska starta Apache

Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/libexec/libphp4.so into server: Cannot open "/usr/local/apache2/libexec/libphp4.so"

-------------------------------------------------------------------------------------

När jag var klar med make install fick jag upp det här:

Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] HTML_Template_IT- installed: 1.1
[PEAR] Net_UserAgent_Detect- installed: 2.0.1
[PEAR] XML_RPC - installed: 1.2.2
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
(CONFIG_FILES=scripts/php-config CONFIG_HEADERS= /usr/home/elo/php-5.0.4/config.status)
creating scripts/php-config
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist

Vad menas med detta?

Permalänk
Medlem

Varför försöker du ladda php4 när det är php5 du har installerat?