Intranet Web Server

Discussion in 'Server Operation' started by mainestratman, Oct 4, 2007.

  1. mainestratman

    mainestratman New Member

    Greetings all,

    I'm attempting to set up a simple webserver for intranet use only. I would love to have ISPConfig on it (to play around with it more than anything else, really), but am a little gunshy after my first attempt at installation and it completely locked everything up on me.

    I attempted to follow Falko's "Perfect Fedora 7 Server" instructions, however I am loading up Fedora 7 using the "LiveCD" option, which is the only option I currently have.

    My biggest question is that I have no hostname or a need for a hostname, since I can just run this server via a static IP address, so how would that affect the /etc/hosts file, if at all?

    I'm also having issues accessing phpMyAdmin, but I'm 99% certain that stems from the whole host/localhost quandry I'm in.

    Any input/idea would be appreciated, and thank you so much for this site and forums... such a wealth of information I've stumbled across. :)
     
  2. giganet

    giganet New Member

    You could try something like this in '/etc/hosts'

    Code:
    127.0.0.1 localhost.localdomain localhost
    xxx.xxx.xxx.xxx localhost.localdomain MyServer
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    Note: replace 'xxx' with your internal IP

    After you have edited '/etc/hosts' and saved it as above run 'hostname' then run 'hostname -f'.
    On both accounts you should see 'localhost.localdomain' as you host name.

    Now run 'shutdown -r now'

    You may have to edit your firewall to allow certain activities too??


    Hope this helps somewhat.

    Regards
     
  3. mainestratman

    mainestratman New Member

    Hi giganet,

    Thanks for the response... for giggles, this is what I tried just before I got your message and everything seems to be working splendidly:


    Code:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1	localhost.localdomain	localhost
    192.168.1.122	192.168.1.122	intraweb
    ::1	localhost6.localdomain6	localhost6
    Since the F7 box is safely tucked behind all the LAN security, I completely disabled the firewall on it... and actually decided I'm not going to use ISPConfig on it, but may keep it there to play around with it.

    Although.. I still can't access my phpMyAdmin.. not that it's a major issue at this point.
     
  4. giganet

    giganet New Member

    Do you receive any errors when trying to access 'PHPMyAdmin'?
     
  5. mainestratman

    mainestratman New Member

    Code:
    Not Found
    
    The requested URL /phpmyadmin was not found on this server.
    Apache/2.2.6 (Fedora) Server at 192.168.1.122 Port 80

    Code:
    Not Found
    
    The requested URL /phpmyadmin was not found on this server.
    Apache/2.2.6 (Fedora) Server at 192.168.1.122 Port 81
     
  6. giganet

    giganet New Member

    Are you able to log onto mysql using:
    Code:
    mysql -u root -p
    Do you also have mysql-client installed on your server?


    Regards
     
  7. mainestratman

    mainestratman New Member

    Yes and yes.

    I'm already running a php/mysql program on the server (dotproject).. works perfectly.
     
  8. giganet

    giganet New Member

    Which version of PHP are you running?

    Have you seen this note?
    Code:
    I looked at the latest dotProject, version 2.0.1, which was released in April. DotProject runs on a typical LAMP (Linux, Apache, MySQL, PHP) server setup, but version 2.0.1 doesn't work properly with PHP 5 (there are some workarounds, but it's not worth the trouble), so you'll need to stick with PHP 4 (the most recent version 4.3.11 is a good choice).
    I found this at: http://www.linux.com/feature/46046


    Regards
     
  9. mainestratman

    mainestratman New Member

    Honestly, I'm not sure which version of PHP I'm running.. nowhere near the box right now so I won't be able to check until tomorrow.

    I didn't see that note on dotproject, but it's pretty irrelevant, since it's working fine.. it's just the fact I can't get into phpMyAdmin that bugs me, even though MySql, etc., are set up properly... it's almost like my browser is literally looking for the phpmyadmin folder in the /www/http/ folder....
     
  10. giganet

    giganet New Member

    To determine PHP version run 'php -v'

    I was merely grabbing straws from when I was going through the same thing with my FC5 server.



    Regards
     

Share This Page