Hello everyone,
I have recently been given the task to make some upgrades to our development server.
It is a fresh install of Fedora Core 6 (Not my choice - dont get me wrong I like Fedora as a desktop linux but not as a server would have rather had centOS then I wouldnt be asking these questions) with apache2handler, mysql 5.0.27, php 5.1.6, ISPConfig and a bunch of other things pre installed. Now they want me to upgrade the php to 5.2 latest release and have mssql capability with it oh and if its possible a copy of php 4 running on a virtual server since this is a development machine. I have www . example . com going to the ISPConfig and from there I am going to set up 2 subdomains php4 . example . com and php5 . example . com.
Ok as for the questions.
1. What is the easiest / best way to go about this! <-- sub note no changes have been done to the actual machine but I created a vmware version of the server on my computer to play with first.
When I do phpinfo I get
Quote:
'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/usr/share/file/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
|
now if I put that in as the install for php 5.2 it doesnt know where apsx2 is located the odd part is in the config above it says its in /usr/sbin/apxs i checked nothing is there so I searched and found I had to recompile apache2 with some commands so I downloaded apache2 and did ./configure --prefix=/usr/local/apache2 --enable-mods-shared=most --enable-so
ran make and make install which of course installed apache2 in /usr/local/apache2.
2. Now I have 2 httpd files one set with services and the other that I can only turn on at the command line?
3. Should I have done --prefix=??? I have no idea where is it default installed I cant find it. obviously the original httpd file has been modified by ISPConfig and if I do reinstall apache2 it moves the httpd to a new location or can I fix that? or will I have to reinstall ISPConfig?
4. If anyone can explain why it is that when you install apache2 and php from fedora core or yum update (Which doesnt seem to have 5.2? very odd cause it did for centOS?) and the config file shows all the options why cant I just reconfigure php (basically why is it saying that enable so is missing.
5. When I did compile both the apache2 and php 5.2 and started the right httpd and went to view the phpinfo.php file all I see is text (and I did add <?php at the beginning so I know its not that)
6. I also noticed in the config code above that it indicates --without-mysql even though mysql is installed and connected?
if anyone can answer any of these questions and make sense of any of this for me
thanks in advance
Very Confused??