Nov 21, 2009

Installing Apache, Php And Mysql On Win Xp

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Software > Internet & Network Clients/Servers

Installing Apache, Php And Mysql On Win Xp

TavoxPeru
Hi, i develop a web application that runs perfectly on my development machine -Win 2kPro- where i have Apache, Php and MySql installed. A few days ago i went to my client to install it in a Win XP machine that will act as the webserver, so i proceed to install the Apache 2.0.59 webserver, Php 5.1.x and MySql 5.x and my web application and everything installs and works fine without a problem. Then, i proceed to run my web application to test it and also to know if something gone bad, happily everything is fine and works perfectly smile.gif

As you thought this web application will run in a network environment so then i proceed to install in every machine -remote machines- that will access this machine -the webserver- a simple direct access, but as usual nothing is perfect and problems starts to show.

When i access my web application via this direct access nothing happens, these remotes machines don't connect to the webserver and only shows a 404 error page, first i try with the URL http://localhost/my_web_application_name/ because this works at the webserver, and.... logically it doesn't gonna work at the remote machines because localhost refers only to the webserver so then i change the URL to http://name_of_the_pc_that_acts_as_the_web...plication_name/ and it shows up my web application login screen smile.gif so i proceed to login but nothing happens sad.gif and everytime i try to login it always show me again the login page.

does someone knows how to configure this direct access to get connected to the webserver or knows an URL that shows how to do this?????

Best regards,

 

 

 


Comment/Reply (w/o sign-up)

yordan
It should work as localhost, because localhost is the system which will look inside the database in order to perform the login. However, don't you have something designing too precisely the original system, for instance the cookie domain and the cookie path ?
Of course, these are the problem I usually have with phpbb, probably yours are quite different.
Yordan

Comment/Reply (w/o sign-up)

TavoxPeru
QUOTE(yordan @ Sep 26 2006, 06:29 AM) *

It should work as localhost, because localhost is the system which will look inside the database in order to perform the login. However, don't you have something designing too precisely the original system, for instance the cookie domain and the cookie path ?
Of course, these are the problem I usually have with phpbb, probably yours are quite different.
Yordan

Hi, thanks for your interest, well, i dont touch them in any manner, neither in my development systmen or at my client machine that acts as the webserver.

Today i go to my clients office and i found the solution, i simply change the direct access properties by modifiying its URL, instead of http://name_of_the_pc_that_acts_as_the_web...plication_name/ i only put http://machine_ip_number/my_web_application_name/ and now everything works fine. biggrin.gif

Never wonder that the solution of this topic was so easy and simple.

Best regards,

 

 

 


Comment/Reply (w/o sign-up)

yordan
QUOTE
found the solution

Great ! Congratitulations !
You guess that probably your client network has a small problem, ne sytem names are nok know from all the workstations.
I must confess that I have the same problem at home, one of my PC's don't recognize automatically my server's name and I have to type the IP address istead of server name. So, this problem you wil probably have often.
Maye a workaround for your future clients could be to add the server's IP in the local hosts file on the PC's which cannot resolve automatically the server's name. Maybe you could just try this for your next client installation, and tell us the results.

Comment/Reply (w/o sign-up)

TavoxPeru
QUOTE(yordan @ Sep 28 2006, 04:25 AM) *

Great ! Congratitulations !......Maye a workaround for your future clients could be to add the server's IP in the local hosts file on the PC's which cannot resolve automatically the server's name. Maybe you could just try this for your next client installation, and tell us the results.

Thanks, and what you say is something that i think after i solve this problem, so tomorrow when i visit my client i will try this solution to see what happens.

Tell me something, the file that you mention is this one???

SYSTEMDRIVE:\SYSTEMROOT\System32\Drivers\etc\hosts

and if i'm right, in this file i only need to put the ip number and the name of the machine, something like this???

xxx.xxx.xxx.xxx name_of_the_pc_that_acts_as_webserver

Best regards,

Comment/Reply (w/o sign-up)

yordan
QUOTE
SYSTEMDRIVE:\SYSTEMROOT\System32\Drivers\etc\hosts

and if i'm right, in this file i only need to put the ip number and the name of the machine, something like this???

xxx.xxx.xxx.xxx name_of_the_pc_that_acts_as_webserver

Exactly like that.
Yordan

Comment/Reply (w/o sign-up)

TavoxPeru
QUOTE(yordan @ Sep 28 2006, 03:36 PM) *

Exactly like that.
Yordan

Thanks, yesterday i went into my clients office and test it to see what happens and happilly it works without any problem, but know comes other questions all related with the security, because this company access internet through its network and this machine acts as a webserver does i need something else to check and configure to avoid any kind of trouble like a hacker, virus, dos attacks, etc?????

BTW, i know that XP comes with a firewall but i read in another forum that is better to disable it to work with apache, so when i install the apache i disabled it -the firewall- do you know if i need to reconfigure it to work with my application because of the security as i say before.

Best regards,


Comment/Reply (w/o sign-up)

yordan
OK, you did a webserver install, this was the job your customer asked you to do.
Now, your customer needs a security audit.
Security people are really strang people, which are rather paranoid, and spend their time thinking how a hacker could enter their customer site.
So, you should really ask a security skilled guy to look at this network. The only thing you can tell your customer is "ask a specialist". And this specialist cannot be yourself.
This is really a matter of philosophy.
Because Apache is in the open world, everybody will be happy when everybody will be able to access everything everywhere in the word.
Security people are very closed people. Their main dream is closing everything, so no intruder can come in.

For instance, you disabled Microsoft Windows Firewall. This is OK for testing purposes : if you shutdown the firewall and your applican works, then you startup your wirerall and your application does not work any more, this means that your application is blocked by the firewall.
Nice, great, for testing purposes you did the right thing, now you know that the firewall blocked your application. But you cannot leave the things like that, because if you leave the firewall down you leave your site without any protection.
Of course, everybody know that Microsoft Windows firewall is a very weak protection ; however, it's a kind of protection, and if you remove it you have no protection at all.
No, the correct way is : now you know that the firewall blocks the port 80 on your apache server, the next step is to turn the firewal on again, and ask the firewall to let you access the port 80 on the apache server. Even better thought, if your customer has very few computers (let's say ten computers with fixed IP address), you should ask the firewall to open the apache 80 port for only the computers which are supposed to access apache, and block all the other ones.
The next step is to ask your customer to buy a "real" professionnal firewall. You will be really surprized if you read the firewall logs, how many computers from all around the world (japan, Canada, Fidji, etc...) try intering your computer.
So, for you own knowledge, you could start reading the astahost forum network security pages, and install on your own PC a firewall like the free part of ZoneAlarm firewall.
And, for your customer, give the only professional advice you could imagine : "please rent a network security specialist".
If you try by yourself and somebody hacks your customer site, the customer will say that you did a bad job.
If you tell the customer to rent a real network specialist, and the customer refuses, then an accident is the responsability of the customer, not yours.
Regards
Yordan

Comment/Reply (w/o sign-up)

TavoxPeru
QUOTE(yordan @ Oct 9 2006, 07:12 AM) *
OK, you did a webserver install, this was the job your customer asked you to do.
Now, your customer needs a security audit.
Security people are really strang people, which are rather paranoid, and spend their time thinking how a hacker could enter their customer site.
So, you should really ask a security skilled guy to look at this network. The only thing you can tell your customer is "ask a specialist". And this specialist cannot be yourself.
This is really a matter of philosophy.
Because Apache is in the open world, everybody will be happy when everybody will be able to access everything everywhere in the word.
Security people are very closed people. Their main dream is closing everything, so no intruder can come in.
i agree with you absolutely.
QUOTE(yordan @ Oct 9 2006, 07:12 AM) *
For instance, you disabled Microsoft Windows Firewall. This is OK for testing purposes : if you shutdown the firewall and your applican works, then you startup your wirerall and your application does not work any more, this means that your application is blocked by the firewall.
Nice, great, for testing purposes you did the right thing, now you know that the firewall blocked your application. But you cannot leave the things like that, because if you leave the firewall down you leave your site without any protection.Of course, everybody know that Microsoft Windows firewall is a very weak protection ; however, it's a kind of protection, and if you remove it you have no protection at all.
No, the correct way is : now you know that the firewall blocks the port 80 on your apache server, the next step is to turn the firewal on again, and ask the firewall to let you access the port 80 on the apache server. Even better thought, if your customer has very few computers (let's say ten computers with fixed IP address), you should ask the firewall to open the apache 80 port for only the computers which are supposed to access apache, and block all the other ones.
The next step is to ask your customer to buy a "real" professionnal firewall. You will be really surprized if you read the firewall logs, how many computers from all around the world (japan, Canada, Fidji, etc...) try intering your computer.
Yeah, you are right again, is incredible how many computers try to access a computer, i know it very well, what i dont really know is how to configure the microsoft firewall that comes with XP because i dont work with XP but i dont think it would be complicated, i hope that it compared with zone alarm -i work with sometime ago- will be more easy.
QUOTE(yordan @ Oct 9 2006, 07:12 AM) *
So, for you own knowledge, you could start reading the astahost forum network security pages, and install on your own PC a firewall like the free part of ZoneAlarm firewall.
And, for your customer, give the only professional advice you could imagine : "please rent a network security specialist".
If you try by yourself and somebody hacks your customer site, the customer will say that you did a bad job.
If you tell the customer to rent a real network specialist, and the customer refuses, then an accident is the responsability of the customer, not yours.
Regards
Yordan
Thats it, thanks a lot for your advices and i think that for others it will be helpful as well.

Best regards,

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : installing, apache, php, mysql, win, xp

  1. Apache Bug
    Slowing down (0)
  2. Apache, Subdomains, Indexes And Mail
    (5)
    Hi, on my other computer (not connected to the internet) I have an Apache server, just to test out
    PHP pages and stuff, I'd like to know how to do some stuff in it, like: Have subdomains, e.g.
    abc.localhost, do you modify something in the httpd.conf file? How do you edit DNS records? Indexes,
    set it up so that http://localhost will take you to http://localhost/index.php . At the moment,
    it's set up so that it'll take you to localhost/index.html, but if there's no index.html
    file, it'll take you to a list of files. Mail, e.g. abc@localhost, how do y....
  3. Problem With Apache In Xampp
    (2)
    I use XAMPP as the development server on my laptop but recently the Apache version bundled
    hasn't been working saying that there are "no listening sockets available". It is currently set
    to the default port of 80 but even when I cahnge it to something unused it still doesn't work.
    I can't find a version of XAMPP with Apache 1 installed as I heard that downgrading it might
    work. I can't thinkof anything that would cause it to stop working but even when I close all the
    programs and stop running all the background services except explorer it still doesn'....
  4. Please Help: Problem In Enabling Mod_rewrite Module In Apache 1.3.27
    (1)
    Hi everybody, I am new to PHP sub-forum and this is my first post in this sub-forum. I have a
    problem and I need your assistance. I want to mod_rewrite my new website (yet to be hosted).
    However, before hosting it, I want to test my .htaccess file in my local server ( Server version
    : Apache 1.3.27 ). Although I have made the following modifications in my Apache Configuration File
    (httpd.conf) to enable mod_rewrite module: QUOTE LoadModule rewrite_module
    modules/mod_rewrite.so AddModule mod_rewrite.c But, it is still not working for me. I tried out
    p....
  5. Apache Rewrite
    (0)
    Hi, i run Apache 2.0(i think) on a Windows XP system and now i want to use
    mod_rewrite(modules\mod_rewrite.so). But...it doesn't work so fine*hehe*(soo far). I have
    uncommented this line: #LoadModule rewrite_module modules/mod_rewrite.so And now(what i have
    readed)i should uncomment this line: #AddModule mod_rewrite.c But i don't find it anywhere, in
    httpd.conf? What is wrong? Sorry the /wacko.gif' border='0' style='vertical-align:middle'
    alt='wacko.gif' /> Englisch!....
  6. Apache, Vsftpd Problems - Resolution Error
    FTP as well (1)
    (if this topic is in the wrong spot, I apologize. please just move it as I wasn't sure *exactly*
    where this belonged... linux or here but because the name is Internet & Network client/servers, I
    figured it fit here more than Linux) I noticed this after I re-installed Apache (SUSE Linux
    Enterprise Server 9, has both Apache2 and Apache 1.3.X but the test page for the server says:
    QUOTE     Webserver version: ) but everytime I go to http://192.168.0.105/~tnewton , the
    browser starts looking for "linux.site" but if I go to http://192.168.0.105/~tnewton/ , it l....
  7. Installing Extensions To Firefox Folder?
    (1)
    hello dear, I am using the lastest version of Firefox 1.04. I found that estensions and themes were
    installe for a individual user The profile folder is under c:\documents and
    settings\User\application data\mozilla\firefox\ why do they just install the firefox folder?? The
    problems are: 1. other users have to reinstall all the extensions, themes, etc (weast disk space..)
    2. basicly, firefox don't need to reinstall after windows reinstalled if I put firefox folder in
    my D: drive. However, because of extensions, themes, etc are not installed in firefox folder, all e....
  8. Apache And Merlin
    local host server (12)
    I downloaded both but I think I only need one but not sure, and can I start using them before I have
    a website?....

    1. Looking for installing, apache, php, mysql, win, xp

See Also,

*SIMILAR VIDEOS*
Searching Video's for installing, apache, php, mysql, win, xp
advertisement



Installing Apache, Php And Mysql On Win Xp

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com