I am a new android developer and I just finished my log in and registration pages using php and json with android studio, all that done and works fine on localhost.
Then I move all my php files and db to hostgator hosting and I changed the db user and password in my config.php file but I kept the host as localhost, but when I try run log in page on my app it disable me to log in while the input data is correct. I do not what is the wrong it took from me on week with out find solution.
Btw when I put my ip server of hostgator it gives me error 404 but when I put the domain name it works fine.
You don't have a dedicated server. It's a host. So many domains use the same IP. It means that you cannot use IP only. you have to use domain name only.
Related
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.
I'm trying to do a MySQL db on a vps computer and reach it from my pc. From the vps (with Windows remote access) I can log in and do what I want, but when I try to log in from my computer (which is on another network) it gives me error #1045.
The ports are forwarded and everything works fine except logging in. (I can see the login panel)
Any solutions for this?
Take a look at db server, from what location is able to get acces on server, is there % permision in location, or is it specified different
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.
I have a LAMP application that works. I can deploy this in 15 minutes on a Linux server. I was handed a VPS to deploy it. All I get is WHM. I created an account and that got me a login to cPanel and to the box. cPanel ran some wizard that told me to put my "web source files" in /public_html There is an /cgi-bin inside of that. I cannot get any web assets to be visible from any of those folders. All I get is 404 not found. chmod 777. 404 not found.
My simple question is this: how could I get a simple hello world PHP script to run on a cPanel server? I've been building web pages since before we called them web pages. I do not need to know anything about PHP itself I want to know how to get the cPanel managed server to run PHP scripts. All the documentation I can find on cPanel assumes you've been using it forever. I just need some basic information. Where do I put my PHP code ?????
This is the way cPanel works. If you host your website on shared IP address (main IP address of your server), you cannot access your website using IP address directly. You will always redirect to "http://IP/cgi-sys/defaultwebpage.cgi URL.
To access your website without pointing our domain to your server, you can use temporary URL. By default, it is enabled on the cPanel server. You can access the temporary URL using the following URL:
http://IP/~cpanel_user
Please note that the temporary URL does not work under the following configuration:
If you have enabled mod_userdir tweak and didn't exclude default host
If your server is configured to use mod_ruid2
Hope this information will help you with future use.
I'm using prestashop to set up an e-commerce website on my cloud server. I was able to successfully install it on the server and it works fine on the server locally, i.e. if I look at the website using localhost on the server. However when I try to access it from a different machine it won't work because, it gets redirected to localhost/index.php? I'm not sure what could be wrong or even where to start looking... any help would be appreciated. Only thing I could think of was the index.php file. It has following 2 lines of code and is generated by prestashop.
I apologize if this is not the correct SO website, as I wasn't sure what the issue could be related to.
Thank you.
When moving an CMS to another domain problems like this often occurs. Most CMS saves the domain they should run on in configuration file oder database. If there is an request for another domain they are sending an redirect (HTTP state code 302) back. I think problem here is that this one is set to localhost.
A short search on google pointed out that prestashop saves a domain name configuration in a mySQL database. Since petrashop 1.5 it should be in a table called PREFIX_shop_url. Before it was saved in PREFIX_configuration as PREFIX_shop_url. But I didn't tested on my own. You should have a look on your own and change the value in database to your new domain.
You could use mysql command line client to connect to database and change the value. If your are not so familiar with SQL you could also use a GUI like phpmyadmin.