Need advice on installing Apache & PHP on a company server???

Associate
Joined
1 Jan 2007
Posts
355
Hi guys,

I am after a little advice if possible.

I am developing an Intranet site for my workplace & at the minute it's a very basic site using xhtml & css so as you can imagine it's just a site full of links.

I want to incorprate PHP to make the site more user friendly & dynamic but need some advice with regards to setting up the company server for PHP.

My first question is with regards to checking the server as to whether it's PHP compatible or whether a version of PHP is already installed.

I do know that I need to create a file called phptest.php & then enter "http://localhost/phptest.php" in the browser but where do I need to save this file on the server?

Sorry if this is a stupid question but i'm just learning at the minute.
 
Make a page with this code -

Code:
<?php phpinfo(); ?>

place it into the www folder.

Should be it.

Just save it in the root directory :)

Andy
 
the root folder is defined somewhere in the setup of the server (config.ini? something like that), and is usually called "htdocs", "wwwroot" or "public_html" (according to my limit experience).

Seriously though, I'd consider hiring someone with some experience to set up your apache+php if only for security reasons. And don't make your "info.php" with phpinfo(); in it publically available, at least password the folder with an .htaccess. Letting everyone get a complete technical rundown of what is installed gives a lot of information to hackers.

If its just internal, consider using XAMPP and then following the process to setup up security on it? Might be an idea - but then, I am seriously not experienced with Apache setup...
 
What OS is the server running and what web server (Apache/IIS etc)? Either is easy enough to do, just different ways of doing things depending on the OS etc :)
 
Id hazard a guess at that server not having PHP installed. It also won't have IIS installed as its just a basic XP setup, rather than a server OS.

If its just for internal stuff, consider using 'WAMP' (stands for Windows, Apache, MySQL and PHP). Its a sandboxed setup and won't really effect the rest of the server.

That would be a much easier approach than trying to individually install Apache and PHP on a Windows box.

Do you have any experience of coding in PHP? I would assume that the intranet would be changing (kept up to date) all the time. It would be a good idea to develop a CMS for the end user to use to update the intranet.

Anyhow, good luck, you may need it.
 
Windows XP does not make for a good webserver due to the default 10 connection limit, depending of course on how many concurrent users you are going to potentially have?
 
Back
Top Bottom