recompiled PHP problem. help pls.




we recompiled PHP to enable ftp. But after recompiling and restarting apache, the phpinfo() still shows the old configuration. What could we have forgotten to do? Help!
btw, FTP functions still don't work/exist
you probably forgot to clean the configure/make history. Try:

- rm config.cache
- make clean
mike to mike hehe

this is what I got from our sysad. I think he just showed me what he did. I already emailed him your previous reply.

[root@ourserver php-4.3.2RC2]# ./configure --with-apache=/home/roger/sources/apache_1.3.20 --with-mysql=/usr/local/mysql --enable-track-vars --enable-ftp

[root@ourserver php-4.3.2RC2]# make

[root@ourserver php-4.3.2RC2]# make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - installed: 0.9
[PEAR] Console_Getopt - installed: 1.0
sh: /usr/bin/cpp: No such file or directory
[PEAR] PEAR - installed: 1.1
[PEAR] DB - installed: 1.3
[PEAR] HTTP - installed: 1.2
[PEAR] Mail - installed: 1.0.1
[PEAR] Net_SMTP - installed: 1.0
[PEAR] Net_Socket - installed: 1.0.1
[PEAR] XML_Parser - installed: 1.0.1
[PEAR] XML_RPC - installed: 1.0.4
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist

With httpd.conf open in your text editor, find a section that looks like the following:

# And for PHP 4.x, use:
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

Just take away the "#" before the two AddType lines, and add ".phtml" on the line with ".php". If you want to create your own file extension for PHP files, like .joe (really, you can!), add .joe after the .php and .phtml in the first AddType line. The section should now look something like this:

# And for PHP 4.x, use:
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

TIP: If you want to parse *.html files as PHP, just add the file extension to the list in your AddType line, so that it ends up looking like this:

AddType application/x-httpd-php .php .phtml .html

Save the file, go up a directory (cd ..), and stop and restart Apache

anyone else know what happened wrong?
hehe heya mike... apache 1.3.20??? We are on 1.3.27... why dont you use this one? Ok many things might be wrong. Will give you a small installation guide for apache 1.3.27/php 4.3.x

Install apache:
1. cd /usr/local

2. wget

3. tar -xzf apache_1.3.27.tar.gz

4. cd apache_1.3.27

5. ./configure --enable-module=unique_id --enable-module=rewrite --enable-module=speling --enable-module=expires --enable-module=info --enable-module=log_agent --enable-module=log_referer --enable-module=usertrack --enable-module=proxy --enable-module=userdir --enable-module=so

6. make

7. make install

Install PHP:
1. cd /usr/local

2. download php-4.3.x and tar -xzf php-4.3.x.tar.gz

3. cd php-4.3.x

4. ./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--enable-ftp \
--enable-sysvsem \
--enable-sysvshm \

5. make ... make install (as apache)

in /usr/local/apache/conf/http.conf :

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps


<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi

Then hit /usr/local/apache/bin/apachectl start
and apache will start.

Pejone: is automatically inserted into httpd.conf when you "make install" php as apache apxs.
AppServ is best fit on windows plattforms. Search for "appserv" on google.
I dont know....
i'm use apache


AppServ v2.0.0 Package includes :

Apache 1.3.27
Apache Monitor
PHP 4.3.1
MySQL 4.0.12
PHP-Nuke 6.5
phpMyAdmin 2.4.0

oh.. it's for people that don't know anything about computers so they can install it and ask questions on why something does this cause they didn't setup anything themselves it was all automatic..

it's like the kid with the tricked out rice burner that paid for all the work to be done and can't even change the oil in the car..

If you can't tell I'm a little bit of a purist.. everyone should install them seperately so they know how things are supposed to work.