Multiple Apache Servers?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Multiple Apache Servers?

Postby bhende19 » 26. July 2008 04:45

Two questions

First - can you run two Apache servers - one httpd and one xampp? if so how is his done? Seems I have confused the process by having a web site and xampp running at same time.

Secondly - if you already have PHP installed (or perl same question) - does xampp point to the same install or does it install a second copy? Can if be done so there is only one copy of PHP?

Thanks
bhende19
 
Posts: 8
Joined: 26. July 2008 04:36
Location: Dallas, TX, USA

Postby deepsurfer » 26. July 2008 09:24

Why --> you will start two processes of Apache (or XAMPP) ?

One XAMPP works for multiple Websites include there own references in PHP and PERL (PERL is install from Linuxsystem not from XAMPP)

http://localhost/web1 = /opt/lampp/htdocs/web1
http://localhost/web2 = /opt/lampp/htdocs/web2
http://localhost/web2 = /opt/lampp/htdocs/web2

will you use domain-names, look in this forum for "Virtualhost" "VHOSTS" "VHOST" (english search section)

greets
Deep
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby Nobbie » 26. July 2008 10:22

>First - can you run two Apache servers - one httpd and one xampp?

There is no "xampp" Apache server, this is was well httpd as your httpd, it's only installed into a different path (/opt/lampp/bin/httpd).

> if so how is his done?

You CAN run two different httpd (but mostly there is no use), you must run them on different Ports or on different IPs. The LISTEN option in httdp.conf (each httpd has his own httpd.conf) must be used to determine on which IP and/or Port the server is listening.

>Secondly - if you already have PHP installed (or perl same question) - does xampp point to the same install or does it install a second copy?

Same for PHP as for httdp - Xampp comes with an own copy of PHP, also installed in /opt/lampp/....

Xampp cannot use the pre-installed version of PHP if there is already one.

So, if you have already a httpd and a php version on your machine, there is no need to install Xampp. Xampp comes with the same httpd, the same php, the same mysql, as it is simply a collection of these tools. They might be newer version than the pre-installed (but not surely) and they are installed into different folder (/opt/lampp) than your pre-installed versions. So if you like to work with Xampp instead of the pre-installed httdp, php etc., you should de-install the software before installing Xampp.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Thanks - now to continue

Postby bhende19 » 26. July 2008 16:04

Many thanks to each of you responding to my posting - it was a huge help.

Now if I get this right - if I already have hpptd, mysql, pearl, etc installed then there is no need to install xampp. But I like it because it comes with the splash page and other tools. My problem is (or has been in previous versions) that when I install java or other tools into their "normal" Red Hat folders then xampp can not find or use them. I understand about the proper versions working together and that is a plus for xampp because they have already made sure these applications do work together.

So why not have xampp check for preinstalled applications and then link to them so the overall machine locations would be "more normal"??? OR have xampp put the applications in the "standard" Red Hat directories??? Seems this would make my life as an admin a lot simpler.

PS this interactive discussion and support from more experienced users is another BIG reason that I like to use xampp.

Thanks again.
bhende19
 
Posts: 8
Joined: 26. July 2008 04:36
Location: Dallas, TX, USA

Postby Nobbie » 26. July 2008 20:38

>So why not have xampp check for preinstalled applications and then link to them so the overall machine locations would be "more normal"??

Ok, if you like to do that job in programming a "search script" for multiple operation systems with multiple versions and multiple releases of Apache, multiple versions and releases of PHP, multiple versions and releases of MySQL, multiple installatation folders (depending on the distribution), feel free to do that job and provide it to the Xampp team.

>OR have xampp put the applications in the "standard" Red Hat directories?

Why only "Red Hat"? What about Ubuntu, Mandrake, SuSE, Debian, Knoppix, Kanotix and and and?

> Seems this would make my life as an admin a lot simpler.

Maybe your life - but there are some more lifes in the world different from yours...
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Postby bhende19 » 26. July 2008 22:09

Let me again thank you for your response to my original - it was timely and got me going down the right path. As for the second reply - as someone who has been programming since 1967 in various language, various machines and operating systems, owned 5 software companies, managed 450 staff programmers and support staff for more than 10 years, and who has worked in 26 countries assure you that I am fully aware of the multitude of OS's and application revision combinations.

But that is not the issue - in my mind a machine that has a fully free form application directory layout is a little out of whack and in an enterprise setting would lead to total chaos. Each machine would need to have a maintenance scheme of its own. (and lots of good documentation which we know does not happen often). As a IT manager / CIO / etc, I would want my machine(s) to match the standard layouts for any given distro. So while I used Fedora Core as an example I believe that xampp should fit the way Fedora would assign to install the individual packages of mysql, pearl, etc. And so forth for the other distros. In that way the overall process for the enterprise is continued. And as you know lots of Linux systems are installed in enterprise settings.

As for the scripts - I would be happy to construct one for Fedora, but since I know nothing about the other distros someone else would have to undertake that task.
bhende19
 
Posts: 8
Joined: 26. July 2008 04:36
Location: Dallas, TX, USA

Postby Nobbie » 27. July 2008 12:27

bhende19 wrote:As a IT manager / CIO / etc, I would want my machine(s) to match the standard layouts for any given distro. So while I used Fedora Core as an example I believe that xampp should fit the way Fedora would assign to install the individual packages of mysql, pearl, etc. And so forth for the other distros.


As a IT manager, senior consultant, senior systems engineer etc. I strongly believe that it is a main problem of linux that there are these different distros with different release system, different delivery systems, different installation services, different application paths etc. as it is horrible waste of manpower to build and support all these different platforms which truly aren't(!) different as they consist all of the same kernel, the same GNU, the same GPL applications and so on.

The Xampp Project is the first (for me) known project that goes the right way: one installation procedure, one installation path, one central repository for ALL distros, what makes life much easier and safes tons of time. I am not(!) member of the Xampp team but I am very sure, that they will never have enough manpower to support the wrong way of having different distros instead of having ONE Linux.

Therefore, I think that its just the wrong way that Xampp should take care of existing (distro-depending) installations, it MUST be just vice verse and Xampp should become the standard for all distros instead!

So, dont blame Xampp, blame Fedora, Ubuntu, Debian and all the others for not (yet) making Xampp their standard Web Development Application Package.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Postby bhende19 » 27. July 2008 18:39

Glad to hear that you are such a supporter of unified / managed systems. I agree with you that xampp is a great start on the unification and on many items in your message. Thanks for your efforts and verbalizations - you are not a lurker - and that
you are willing to take the time to assist others says many positive things about you.

Grats.
bhende19
 
Posts: 8
Joined: 26. July 2008 04:36
Location: Dallas, TX, USA


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 30 guests