wrong default PHP problem

moshem

Verified User
Joined
Nov 23, 2008
Messages
27
Hi all,

I tried to update my freebsd 4.1 DA with PHP4, MYSQL 4 and apache 1.3

I did manage to upgrade it to PHP5 and apache 2.

while looking for a way to upgrade to MYSQL 5, I found the 1.1 script on the site:

http://files.directadmin.com/services/custombuild/1.1/

which I also read will upgrade my MYSQL version.

I followed the instructions and got the file, extracted it and tried to build.

Code:
./build update_data

and got :

Code:
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
There is wrong default PHP in /usr/local/directadmin/custombuild/options.conf set.

I tried getting files from my backup, but nothing helps, I even tried ./build update_data and got the same error.

I have no idea what's wrong and I am stuck. Here is the options.conf

Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
zend=no

#Possible values - 4.1, 5.0
mysql=5.0
mysql_inst=no
mysql_backup=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=no
mail-header-patch=yes
dovecot=yes

#Statistics
awstats=no
webalizer=yes

#FTP options
proftpd=yes

#Jailed shell (beta)
jail=no

#CustomBuild options
custombuild=1.1
autover=no
bold=yes
clean=yes
clean_old_webapps=no

#Cron settings

cron=no
[email protected]
notifications=yes
updates=no

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
cleanapache=no
fileserver=1
eximconf=no

thanks for any help you can suggest
 
well, I'm trying, but alas, now a new problem emerges..

I downloaded the gnu 2.5.3, ran configure, then make and then make install,

make install got me this:

Code:
Making install in intl
if test "grep" = "gettext"  && test 'intl-compat.o' = 'intl-compat.o'; then  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/lib /usr/local/include;  /usr/bin/install -c -m 644 libintl.h /usr/local/include/libintl.h;  @LIBTOOL@ --mode=install  /usr/bin/install -c -m 644 libintl.a /usr/local/lib/libintl.a;  else  : ;  fi
if test 'yes' = yes; then  test no != no || /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/lib;  temp=/usr/local/lib/t-charset.alias;  dest=/usr/local/lib/charset.alias;  if test -f /usr/local/lib/charset.alias; then  orig=/usr/local/lib/charset.alias;  sed -f ref-add.sed $orig > $temp;  /usr/bin/install -c -m 644 $temp $dest;  rm -f $temp;  else  if test no = no; then  orig=charset.alias;  sed -f ref-add.sed $orig > $temp;  /usr/bin/install -c -m 644 $temp $dest;  rm -f $temp;  fi;  fi;  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/share/locale;  test -f /usr/local/share/locale/locale.alias  && orig=/usr/local/share/locale/locale.alias  || orig=./locale.alias;  temp=/usr/local/share/locale/t-locale.alias;  dest=/usr/local/share/locale/locale.alias;  sed -f ref-add.sed $orig > $temp;  /usr/bin/install -c -m 644 $temp $dest;  rm -f $temp;  else  : ;  fi
.././mkinstalldirs: Can't open .././mkinstalldirs: No such file or directory
*** Error code 2

Stop in /home/moshebox/grep-2.5.3/intl.


I have no idea how to go over this, I tried and still trying google...

any idea ?
 
Well...

I don't know... but that is what I got installed on my VPS and there is nothing I can do about it.

I can't understand why grep won't install correctly..
 
Because it cant find the file:

/home/moshebox/grep-2.5.3/mkinstalldirs

is that the right location to the file?
 
that directory name did not exist.

but I did an mkdir and it exist, then I re-ran make install :

Code:
210# make install
Making install in intl
if test "grep" = "gettext"  && test 'intl-compat.o' = 'intl-compat.o'; then  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/lib /usr/local/include;  /usr/bin/install -c -m 644 libintl.h /usr/local/include/libintl.h;  @LIBTOOL@ --mode=install  /usr/bin/install -c -m 644 libintl.a /usr/local/lib/libintl.a;  else  : ;  fi
if test 'yes' = yes; then  test no != no || /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/lib;  temp=/usr/local/lib/t-charset.alias;  dest=/usr/local/lib/charset.alias;  if test -f /usr/local/lib/charset.alias; then  orig=/usr/local/lib/charset.alias;  sed -f ref-add.sed $orig > $temp;  /usr/bin/install -c -m 644 $temp $dest;  rm -f $temp;  else  if test no = no; then  orig=charset.alias;  sed -f ref-add.sed $orig > $temp;  /usr/bin/install -c -m 644 $temp $dest;  rm -f $temp;  fi;  fi;  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/share/locale;  test -f /usr/local/share/locale/locale.alias  && orig=/usr/local/share/locale/locale.alias  || orig=./locale.alias;  temp=/usr/local/share/locale/t-locale.alias;  dest=/usr/local/share/locale/locale.alias;  sed -f ref-add.sed $orig > $temp;  /usr/bin/install -c -m 644 $temp $dest;  rm -f $temp;  else  : ;  fi
*cC
.µא=פ..: not found
*** Error code 127

Stop in /home/moshebox/grep-2.5.3/intl.
*** Error code 1

Stop in /home/moshebox/grep-2.5.3.
210#

I can't even understand the problem now
 
Not sure what that even means.

Maybe you should try updating your sources and installing a new grep source.

Code:
pkg_add -r cvsup-without-gui

echo "
*default  host=cvsup5.us.freebsd.org
*default  base=/usr
*default  prefix=/usr
*default  release=cvs
*default  tag=RELENG_4
*default  delete use-rel-suffix
src-all

" > /etc/cvsup-src

cvsup /etc/cvsup-src

cd /usr/src/gnu/usr.bin/grep
make install
 
thanks for your help..

pkg_add -r cvsup-without-gui

Code:
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.10-release/Latest/cvsup-without-gui.tgz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.10-release/Latest/cvsup-without-gui.tgz' by URL
 
thanks for your help..

pkg_add -r cvsup-without-gui

Code:
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.10-release/Latest/cvsup-without-gui.tgz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.10-release/Latest/cvsup-without-gui.tgz' by URL

pkg_add -r "ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/4.11-RELEASE/packages/All/cvsup-without-gui-16.1h.tgz"
 
done this:

Code:
210# pkg_add -r "ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/4.11-RELEASE/packages/All/cvsup-without-gui-16.1h.tgz"
Fetching ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/4.11-RELEASE/packages/All/cvsup-without-gui-16.1h.tgz... Done.
pkg_add: package bsdpan-mod_perl-1.29 has no origin recorded
pkg_add: package bsdpan-mod_perl-2.0.3 has no origin recorded

now running cvsup...

will report back

thank you!
 
it is taking a while...looks like it will take a few more hours.

I am on an ssh client here, if I disconnect my laptop from the network it will the download process stop ? I have to leave here in an hour..

can I make continue work in the background somehow ?


thanks
 
You might need to stop it then install this:

Code:
pkg_add -r "ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/4.10-RELEASE/packages/All/screen-4.0.2.tgz"


Then restart it like this:

screen cvsup /etc/cvsup-src

Then you can press:

ctrl + a + d

When you login later run:

screen -r

To reattach to it if it is still running.
 
Ok, I installed screen using a 2nd ssh session.

I guess I can't attache the 1st using the 2nd...

if I stop the csvup process will it restart from the begining, or will it skip the ones that it already downloaded ?
 
damn, no luck!

Code:
 Checkout src/usr.sbin/zic/zic.c
Finished successfully

[screen is terminating]
210# cd /usr/src/gnu/usr.bin/grep
210# make install
install -s -o root -g wheel -m 555   grep /usr/bin
install: grep: No such file or directory
*** Error code 71

Stop in /usr/src/gnu/usr.bin/grep.
 
ugh you might need to build all the sources then.

Code:
cd /usr/src
screen make buildworld && make buildkernel KERNCONF=GENERIC && make installkernel KERNCONF=GENERIC

shutdown -r now

After it comes back from reboot do:

cd /usr/src
make installworld
 
wow, that sounds drastic.....

how long will it take ?

I am on a VPS, so I may be on a jailed shell.

will shutdown have the desirable effect here ?
 
Well if you dont wanna update all your OS sources you can probably just do:

Code:
cd /usr/src
screen make buildworld
cd /usr/src/gnu/usr.bin/grep
make install

buildworld will build all the sources but not install them. Its gonna take a few hours to compile it all.

But its best to do the above to update all your OS sources make sure everything works well together.

As far as rebooting the VPS I am not sure I have never used a VPS before.
 
Back
Top