I'm ready to install Apache, I think

  • Thread starter Thread starter Jameson
  • Start date Start date
  • Tags Tags
    apache install
Click For Summary

Discussion Overview

The discussion revolves around the installation and configuration of the Apache web server on a Linux system, specifically Mandriva LE 2005. Participants share their experiences, challenges, and suggestions related to the installation process, running the server, and configuring it to work with PHP and MySQL.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • Jameson expresses uncertainty about finding and installing Apache, mentioning confusion over version numbers and installation difficulties.
  • Warren suggests using a package manager based on the Linux distribution to simplify the installation process.
  • Exequor mentions that Apache2 can be compiled from source and shares a link to the official download page.
  • Some participants assert that Apache2 should be available on the installation CDs, with Exequor emphasizing that Jameson is not installing on Windows.
  • Jameson reports difficulty in starting Apache and expresses frustration over the lack of GUI tools for configuration and process monitoring.
  • Several participants provide commands for starting and stopping Apache and MySQL, but Jameson encounters issues with these commands not working as expected.
  • Jameson shares feelings of frustration and confusion about using Linux and Apache, contemplating reverting to Windows due to the challenges faced.
  • Later, Jameson confirms that Apache is running after further exploration and expresses a desire to learn more about its configuration.

Areas of Agreement / Disagreement

Participants generally agree that installing Apache can be challenging, especially for those new to Linux. However, there is no consensus on the best approach to resolve Jameson's installation issues, as multiple suggestions are offered without a clear resolution.

Contextual Notes

Jameson’s experience highlights potential limitations in the installation process, including uncertainty about package availability and command functionality. There is also a lack of clarity regarding the configuration of Apache, PHP, and MySQL on Mandriva LE 2005.

Who May Find This Useful

This discussion may be useful for users new to Linux who are attempting to install and configure web servers, particularly those using Mandriva or similar distributions. It may also benefit those seeking community support for troubleshooting installation issues.

Jameson
Insights Author
Gold Member
MHB
Messages
4,533
Reaction score
13
So I've installed my Linux program and now have decided to run a nice little webserver. The latest version of Apache on their website is 1.3.3 I believe but I've heard that their is a 2.0 version. Can someone show me where this is? Also, I've heard that installing this on Linux can be a little hard. Any tips? I've Googled for some but haven't found any great tutorials.

Thanks guys,
Jameson
 
Computer science news on Phys.org
Depending upon your Linux distribution, you can use a package manager to install Apache. It's really quite simple that way. What distribution are you using?

- Warren
 
I'm using Mandriva LE 2005
 
It should be on one of the CDs.
 
The latest is apache2, you can get the source to compile here http://httpd.apache.org/download.cgi. On windows apache2 works better since I don't run into some of the problems that i had with 1.3. I have it with php5.04 and mysql 4.1
 
Its better to get Apache2 off the cds. I can guarantee you that it's there.

Exequor, he is not installing apache on windows, so it doesn't matter if apache2 works better than apache1 on windows.
 
Thanks to all. I installed Apache 2 off of the install disk, but now I have no idea how to run it or configure it. This seems so much more difficult than my familiar Windows. I don't even know how to run the server, or PHP, or MySQL. How do I do this?

Thank you guys
 
It's actually quite simple. To start apache simply type:

/etc/init.d/apache2 start

To start mysql type:

/etc/init.d/mysql start

To stop apache type:

/etc/init.d/apache2 stop

Once you start apache go to http://localhost in your browser. You'll see an apache test page.

Now I don't know if Mandriva sets USERDIR by default on apache but if it does you should be able to create a public_html folder in your home directory, stick your html, php, etc files in there and go to http://localhost/~username/index.html

Check to see if PHP is running in apache by putting a test php file in public_html and then going to that page: http://localhost/~username/test.php

If you get a permission denied when trying to visit any of your test pages make sure to set the right permissions on the directories with chmod 644 <filename>
 
Last edited by a moderator:
I tried the command to start Apache but it says no such file existed. I'm positive I installed it, I just don't know where to find the file. Any suggestions? Shouldn't it be where you said?
 
  • #10
try:

ls /etc/init.d/

There should be an apache file there if you installed it.
 
  • #11
I browsed the files in that folder, none named Apache. Should I be looking in some kind of root folder? I was so sure I installed it. I went through the whole install wizard and had to put in the CD's and it said Apache installed...

:(

Jameson
 
  • #12
apachectl start

/etc/init.d/apache2 start.. If this did not work, this will also probably not work, but you could try it...
 
  • #13
apachectl start

command could not be found

-------------

It didn't work... does anyone here run their own Apache server or had any of the same problems I'm having?

Thanks for all of your help guys
 
  • #14
install apache from the net, it's worth a try and it's not difficult..
 
  • #15
I'm about to give up. I really understand nothing about Apache and everything I've read on it is useless. Has anyone had these feelings when dealing with Linux? I thought it would be much nicer, but I've had one big headache.

I don't understand how Apache works, and it runs in the background; I can't see any GUI to watch the processes or configure anything. Where do I put my webpages?

Times like these, I'm just so tempted to reinstall Windows...
 
  • #16
It doesn't seem like you installed apache. Boot from the mandriva cds and select upgrade. Then when it prompts you about the packages make sure apache, php and mysql are installed.
 
  • #17
I finally figured out Apache is running... I just have to learn a lot about configuring it. Why can't Linux be as easy as Windows?! Uggg.. I went to http://localhost and got the test page, so Apache is up and running. I'll try running Webmin to see if that helps.

Jameson
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
17
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 24 ·
Replies
24
Views
11K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K