LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-27-2007, 03:05 AM   #1
crash1hd
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Question php apache2 and Fedora Core 6


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??

Last edited by crash1hd; 04-27-2007 at 03:22 AM.
 
Old 04-27-2007, 01:50 PM   #2
crash1hd
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Any thoughts anyone - anyone?
 
Old 05-29-2007, 10:13 AM   #3
brudinie
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Apache prefix for fedora core 6

The original Apache2 that ships with FC6 lives here:

/usr/sbin/httpd

Try

./configure --prefix=/usr/sbin/httpd --enable-mods-shared=most --enable-so
 
  


Reply

Tags
apache2, fedora, mysql, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 + php on fedora core 4 leroy Linux - Software 1 12-19-2006 11:23 PM
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Linux - Server 4 09-29-2006 05:42 AM
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Fedora 4 09-29-2006 03:14 AM
How to Setup Apache2-2.0.58, PHP-5.1.4 and MySql-5.0.22 on fedora core 4? ni2_qt Linux - Newbie 1 09-07-2006 06:27 AM
Fedora Core 3: Apache2 & PHP louis_net Fedora 4 03-14-2005 11:53 PM


All times are GMT -5. The time now is 08:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration