Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

recompiled PHP problem. help pls.

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

recompiled PHP problem. help pls.

Postby almightymike » Thu May 08, 2003 8:51 pm

HEllo!

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
almightymike
New php-forum User
New php-forum User
 
Posts: 9
Joined: Mon Mar 10, 2003 7:42 pm

Postby mike » Fri May 09, 2003 2:21 am

you probably forgot to clean the configure/make history. Try:

- rm config.cache
- make clean
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens

Postby almightymike » Mon May 12, 2003 9:33 pm

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
-20020429/
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?
almightymike
New php-forum User
New php-forum User
 
Posts: 9
Joined: Mon Mar 10, 2003 7:42 pm

Postby Oleg Butuzov » Mon May 12, 2003 11:00 pm

you forget to load php module =)
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby mike » Sat May 17, 2003 5:52 am

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 http://www.apache.org/dist/httpd/apache_1.3.27.tar.gz

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 \
--enable-sockets

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

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

put:
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

change:

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

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

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

Pejone: phplib4.so is automatically inserted into httpd.conf when you "make install" php as apache apxs.
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens

Postby Oleg Butuzov » Sat May 17, 2003 10:01 am

2mike
what can i say =))))
I am using WIN =).
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby mike » Fri May 23, 2003 6:06 pm

AppServ is best fit on windows plattforms. Search for "appserv" on google.
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens

Postby WiZARD » Mon May 26, 2003 3:43 am

mike wrote:AppServ is best fit on windows plattforms. Search for "appserv" on google.

I dont know....
i'm use apache
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Redcircle » Mon May 26, 2003 9:27 pm

apache works great on winbloze
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby mike » Thu May 29, 2003 2:04 pm

I dont know....
i'm use apache


LOL!

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

on: http://academic.cmri.ac.th/appserv/
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens

Postby Redcircle » Fri May 30, 2003 10:30 am

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.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.