LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New to Linux, installed Fedora 10 on VMWare Workstation 6.0.3 trying to set up apache (https://www.linuxquestions.org/questions/linux-newbie-8/new-to-linux-installed-fedora-10-on-vmware-workstation-6-0-3-trying-to-set-up-apache-700942/)

sweetcoco 01-29-2009 11:13 PM

New to Linux, installed Fedora 10 on VMWare Workstation 6.0.3 trying to set up apache
 
I am new to Linux, right now I've installed Fedora 10 on VMWare Workstation Ace Edition, with minimum problems. I would like to host a web site using Apache. I have installed apache and receive this error once I try to start it:

[root@virtual-fedora ~]# service httpd start
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 192.168.1.102:80
no listening sockets available, shutting down
unable to open logs
[FAILED]

This is the first time I've tried to host a web site so maybe I'm not doing something right. Every place I've looked says something about DNS, host names and various other technical words that I don't understand. If its not PC hardware, I know nothing about it. Could someone please help

3rods 01-31-2009 08:50 AM

I'm not super familiar with fedora, but you need to check your ports.conf file, it's in /etc/apache2/ for ubuntu, not sure where yours is. In that file it should say this:

Code:

Listen 80

<IfModule mod_ssl.c>
    Listen 443
</IfModule>

Or something like

Code:

Listen: *:80
Don't bind to a specific IP unless you know what you're doing.


If you need to find files fast, install a tool called "locate"; then, as root, do a "sudo updatedb".
That will make a database of all the files on your linux box to search quickly. Then you just do a "locate file" and it comes right back. Very useful for the n00b. I use is all the time.

Also, check out a virtual appliance called Ubuntu JeOS. You can find the link off of VMWare's site. It's a fully operational Ubuntu server already setupo inside a VMWare container, all ready to go and the webserver is all setup. It does not have a GUI installed and that helps keep the file size small, but you can always install it if you want it. (sudo apt-get install ubuntu-desktop)

Good luck.

jstephens84 01-31-2009 09:22 AM

check you system to see if something else is running on port 80. Looks like something else is already using that port. a simple test could be to change the port number to say 8080 or 8000 and try and start again. to get a list of all running processes

Code:

netstat -a

sweetcoco 02-01-2009 11:09 PM

I've installed Fedora 10 on VMWare Workstation Ace Edition, with minimum problems. I
 
Thanks for the replies, right now I would just like to get Fedora working again. I installed the VMWare tools and now I get a black screen. It looks like it might just be easier to reinstall Fedora, I'm first going to try to revert to a snapshot I took when I was trying to figure out the Apache problem. Hopefully it works:scratch:


All times are GMT -5. The time now is 08:45 PM.