• 0

How to install PHP intranet at work?


Question

Hi everyone,

I would like to install a basic PHP Intranet at work with a MySQL Database.

I managed to install the website on the main Server (Windows Server 2008),

I can access the website via "http://localhost/" and "http://127.0.0.1"

but I can't access this website from my other work computers on the same network.

All my company computers are connected through a LAN network.

How can I make the website accessible to all computers connected to the network?

Thanks

Link to comment
https://www.neowin.net/forum/topic/826834-how-to-install-php-intranet-at-work/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

You need to asign a Host header to the website, so the server knows to what host header to listen to and to which site to redirect. You can host multiple sites on one server and with Host headers you determine which site to load on which url

example: http://192.168.1.10/ or http://intranet.companydomain.com/

  • 0

I'm using Apache on XAMPP (but I can use IIS if you think it'll be easier)

Can you give me more details about the "Host header"... I don't know what it means

I tried to access the IP of of the server http://192.168.1.10/

but I receive a 404 page error

It's because of this error that I ask for your help

  • 0
  sbauer said:
Remove XAMPP from the production server. Just use IIS. PHP + IIS is fine. http://www.microsoft.com/web/platform/phponwindows.aspx

IIS + PHP will be easier to share on the internal server than using XAMPP?

This link you provided me is excellent!! :)

  • 0
  Tropical Dream said:
IIS + PHP will be easier to share on the internal server than using XAMPP?

This link you provided me is excellent!! :)

Yes. XAMPP on a production server is not acceptable. It's fine if you need something quick and dirty on your development machine, but you need to know how to maintain and manage Apache, PHP, mods, database (mysql), and security, individually when working in a production environment. Over the course of the machine's lifetime, something will break, and you'll need to know how to support it.

IIS 7 (the version on Windows Server 2008) is very powerful. Microsoft has worked with the PHP project directly to make sure PHP works well under IIS 7.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I'm not sure why anyone would want to use Chrome on Android when there are far better browsers that let you disable ads. I personally use Vivaldi and never see ads by default. Am I right in thinking you can't block ads on Chrome for Android?
    • Same time next month y'all, when we see this 💩posted again?
    • I mean, it's not like they did something like force you to have U2's "Songs of Innocence" on your computer with no way to remove it... *coughcough*
    • Going to quote myself from a comment I made to a related article: It's not about the OS, it's about the workflow. OS fans consistently miss this. People have work to do and they've invested a lot of time, effort and even money building their workflows. It's expensive to change, so that change has to offer real benefits that compensate for the cost of updating workflow and sorry, Win 11 just doesn't. Win 11 breaks workflow in weird and pointless ways seemingly either to dumb down the OS (with the same results as we saw when MSFT tried to dumb down Office's menuing system with "SmartMenus") or make it look more like macOS. MSFT seems to have completely lost the basics of UI/UX like FITS and muscle memory in Win 11. If they had made these optional - then sure, but they aren't. That's the same reason most users won't just jump to an entirely new OS - which has an even bigger workflow cost - until there's just no other option. Not only is there the core workflow cost, but the cost of finding new parallel software for the new OS, transferring and possible converting files and dealing with incompatibilities and then redeveloping workflows. It's just not as simple as "switch". And now there IS another option, stay on Win 10 for another year and pray for Win 12 (much as Win 7 users did with Win 8 - which happened when Win 10 came out).
    • At least that album was really good. I don't know if F1 was $200 million well spent yet...
  • Recent Achievements

    • Mentor
      The Werewolf went up a rank
      Mentor
    • First Post
      Myriachan earned a badge
      First Post
    • Week One Done
      DrRonSr earned a badge
      Week One Done
    • Week One Done
      Sharon dixon earned a badge
      Week One Done
    • Dedicated
      Parallax Abstraction earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      615
    2. 2
      ATLien_0
      227
    3. 3
      +FloatingFatMan
      170
    4. 4
      Michael Scrip
      166
    5. 5
      Som
      148
  • Tell a friend

    Love Neowin? Tell a friend!