PHP compile and weird anomalies

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
itbegary
Forum Commoner
Posts: 34
Joined: Sun Jan 05, 2003 2:50 am

PHP compile and weird anomalies

Post by itbegary »

Hello,

Ok, here's the problem/anomaly. I had to make some tweaks to Apache to accomidate a different mod config. I added mod_so while I was there. That's pretty much the only change.

I then made a clean version of PHP with these options:

make clean > /dev/null
./configure --with-mysql=/usr/local/mysql --with-xml --enable-ftp
make
make test
make install

make clean > /dev/null
./configure --with-apache=../apache_1.3.27 --with-imap=../imap-2001a --with-gettext --enable-track-vars --with-mysql=/usr/local/mysql --with-xml --enable-ftp
make
make install

I did this because I wanted PHP to be compiled into Apache but I may also want to run some PHP scripts on the local machine.

Anyways, now for some odd reason when I run phpinf(); on the web server it notice that LS_COLORS kill's my screen output. Then investigating it I found that it think's it's term type is "VT100". On the box sitting next to it the term type is being reported as "dumb".

I did find the latest and greatest of the modules for what I was looking for before compiling. I was wondering if this was a bug or some setting that I missed. Or is it possible a code change from PHP 4.1.2 to 4.3.0, maybe Apache 1.3.26 to 1.3.27, etc.

Known good:

'configure' '--with-apache=../apache_1.3.26' '--with-mysql=/usr/local/mysql' '--with-imap=../imap-2000c' '--with-gettext' '--with-xml' '--enable-track-vars'

Broken one:

'./configure' '--with-mysql=/usr/local/mysql' '--with-xml' '--enable-ftp' '--with-apache=../apache_1.3.27' '--with-imap=../imap-2001a' '--with-gettext' '--enable-track-vars'

Any ideas on how to change this back would greatly be appreciated.

Gary Smith,
gary@primeexalia.com
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

I take it you didn't make a backup of your old files then? :roll:
itbegary
Forum Commoner
Posts: 34
Joined: Sun Jan 05, 2003 2:50 am

Post by itbegary »

It had nothing to do with a backup. This was a brand new install. At this point in time it's nothing super critical to me as I can do a full install with the RPM's but then I don't get the additional modules that I want. So all in all there was no original files to backup.

I did a fresh install of RH 7.3, install the dev options and a couple libraries. The rest was from the source code downloaded (open ssl, mod ssl, mod perl, php 4.3.0, apache 1.3.27 and fp4).

I did have to tweak one apache file for the fp4 settings and the httpd.conf to allow for the php extensions to work.

I am starting to think that it's more of an Apache issue though. Here is the full listing

PWD /usr/local/apache/htdocs
LESSOPEN |/usr/bin/lesspipe.sh %s
USER root
LS_COLORS no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:
cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:
*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:
*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:
*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:
*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:
*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:
*.xpm=01;35:*.png=01;35:*.tif=01;35:
MAIL /var/spool/mail/root
INPUTRC /etc/inputrc
BASH_ENV /root/.bashrc
SSL_BASE /usr/local/ssl
LANG C
SSH_CLIENT 10.0.0.63 3786 22
LOGNAME root
SHLVL 2 On the working box it's run level 5. Could this be because I kickstarted it and manually in a shell and not using the init.d scripts?
SHELL /bin/bash
USERNAME root
HISTSIZE 1000
HOME /root
TERM vt100
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
SSH_TTY /dev/pts/1 Why does it think I'm in a shell. I know I live in one but...
_ /sbin/initlog
[/b]
itbegary
Forum Commoner
Posts: 34
Joined: Sun Jan 05, 2003 2:50 am

Post by itbegary »

It's an apache runlevel issue. Because I have been restarting the Apache daemon from an SSH script it has been resetting the runlevel to the current shell.

When you schedule the deamon to start at run level 345 and reboot all is good. First restart changes everything...

I'm still not clear after reading a bunch of ng postings and even some Apache documents if the terminal matters. It just sticks out when you have a box next to it with a very plain config and everything reports different.
Post Reply