website gives ERR_CONNECTION_REFUSED - php

My site is pcc.edu.ph domain name is hosted in zoneedit.com, and I am trying to launch my website and make it live on the internet, oh and one more thing I am also using wamp 2.5 as server, and I'm using my computer as a webserver. I have followed the tutorials that was posted over the internet but nothing worked, I think there is something wrong with the apache setup, any suggestions?
here is what my apache httpd.conf
https://www.dropbox.com/s/nig7aro3mfg7cv2/httpd.conf?dl=0
any more suggestions?

Related

DNS_PROBE_FINISHED_NXDOMAIN and domain is resolving

I hosted my PHP website on GoDaddy's Gen 4 VPS. after a while of users using it. The website couldn't be accessed by anyone and all the users received DNS_PROBE_FINISHED_NXDOMAIN. The Nameservers were pointed to the server IP and it was working fine. But when this message appears the domain was resolving, server was working and files could be accessed but when trying to open anything on this domain the users receive DNS_PROBE_FINISHED_NXDOMAIN. When restarting the VPS everything works fine. but this problem happens again and again after users use this website again.
Is there any solution for this or even does anyone faced this problem before or knows the root cause of it??
NOTE: The PHP code was tested before launching and the server specs were more than required.

ERR_CONNCTION_TIME_OUT on all hosted websites

I have domain from namecheap.com and they hosted on my dedicated server with bluehost.com. suddenly since last 2 weeks im facing an issue. on all my domain that i have from namecheap.com hosted on bluehost after browing for few mins gets ERR_CONNECTION_TIME_OUT error and then immediately page reloads automatically. Even on the Cpanel login page of these domains we get the same issue. Though we have some domains registered with bluehost it self and hosted on the same blue host server we dont get this error on those domain. We have contact bluehost they said all is fine from their end, we contacted namecheap.com they said all is good from their end. Now i am stuck what to check and where to check, we have reinstalled the website scripts disabled all the plugins but we still getting this error, it is not all the time when we try to browse website after two three pages we get this error and then its gone then after 2 3 pages it comes again and then gone.
Any sort of suggestions or help will be appreciated.
Typically, an error ERR_CONNECTION_TIMED_OUT occurs when you have intermittent Internet connectivity. I believe you won't face the same problem in other ISP. To fix that, you can try flushing the DNS of your local computer by issuing command ipconfig /flushdnsfrom command prompt. In addition, edit local computer hosts file located at Computer C:\ Windows\ System32\ Drivers\ etc\Hosts, and look for entry like 0.0.0.0 example.com. Remove that entry, save the file and restart your computer.

Using MAMP to test online instead of localhost

I'm new to PHP and everything, so I'm trying to learn some things.
I'm currently developing my first PHP site in Dreamweaver using MAMP and Localhost.
I have already bought my domain name, and built a smaller html site just to act as a "holding site" before the PHP one gets put up. I'm wandering if instead of using localhost, that I could use a subdomain of that domain. So instead of going to localhost/mysite I could go to test.mysite.com.
Tell me if I'm wrong, but I shouldn't have to upload any files to GoDaddy because I'm using MAMP as the server. Right?
Keep in mind, this isn't permanent. I'm not planning on hosting my site on my computer using MAMP. I'm just wandering if it's possible and how to do it if it is.
Any suggestions, comments, or answers are greatly appreciated.
Thanks.
- Ryan
MAMP is not the server. MAMP adds server capabilities to your computer, but you can't use MAMP to mimmic any server.
What I recommend you is working on your computer, with MAMP and using localhost as the "test address". After the page is finished in your localhost, and everything work fine, you can upload your page to your server (with FTP). This way you avoid having to upload your files via FTP every time you make a change in your code.
And welcome to the PHP World. Countless mugs of coffee and restless night await you.
You can create some folder on web server(on your paying hosting) and upload all files from your test localhost folder. Everyting would work perfectly if you type: https://yourwebsite.domain/yourfolder. If you want to set it to view like http://yourfolder.yourwebsite.domain you must from Control Panel set up an some subdomain. Subdomain is make something like this: you enter name of subdomain and folder which is mapped to that subdomain. For example, you set up subdoman http://test.web.com and map that to http://web.com/testfolder.
I hoppe that I help you.

localhost doesn't work

I'm trying to solve out my problem since more than a week, but with no results until now.
When I try to open localhost/phpmyadmin, or any php file, I get on this message:
Internet Explorer cannot display the webpage ".
The same happens with Mozilla; no errors, but the page keeps loading without answer.
My configuration
Windows 7 32bit
Wampserver 2.2D ( all services are running ) green status, server online
My hosts file
127.0.0.1 localhost
::1 localhost
IIS is stopped, but I don't think it's a problem with port 80.
I tried going directly to 127.0.0.1, it didn't work.
I will appreciate any advice.
Thanks
You may want to check your firewall authorizations...
I had same problem; I have since added wampserver as authorized program to my firewall and, as above, stopped IIS services in control panel/admistrative tools.
I had similar problem, a lot of research and analysis but nothing helped. Finally I came across UwAmp which works like a charm for me ever since then. Try it out:
http://www.uwamp.com/
It also supports multiple versions of PHP which you can switch by single click anytime you want.
Ok so if you have IIS on, stop it.
Go to cpanel and search administrative tools, component services, services (local), and scroll to the w's to find and stop:
World wide web publishing service
and
Web deployment agent service (something like that)
Good luck.

How to access PHP files using HTTP over peer-to-peer network?

I connected two PCs (say PC1 and PC2) using a patch cable (Category 5E) while both of them run on Windows 7. The IP addresses for PC1 and PC2 are 192.168.1.2 and 192.168.1.3, respectively. I've successfully configured a homegroup for the two computers and there was no problem in simple file sharings.
What I should know is that, having installed WAMPServer and stored some PHP files in PC1's root directory, how could I access them from PC2? I tried typing 'http://192.168.1.2/aphpfile.php' in the PC2's browser. And, I got no expected result. The browser simply said that it could not access the page. I'm not an expert in networking. Please help me.
PS: Please, don't close this question as a duplication. I searched related questions in this site but nothing was found helpful to me.
By default, WAMP assumes you're developing locally and will not answer requests made from outside the machine. You have to click "put online" from the WAMP menu. It will configure Apache to start listening for incoming connections from outside your machine.

Categories