I am new to deploying websites to a remote server. I have been searching for the steps that I should follow to do that for a long time but have not found any results.
here is what I have done 'til now:
1- I used a free web hosting called 0fees.us.
2- Got sub-domain name from the web host.
3- Upload my files as .zip in htdocs directory using the online file manger in cPanel.
4- Upload my database using mysql in cPanel.
5- Change the database configuration in the my website.
After that I typed the sub-domain in the URL field but it get a browser error says:
the connection to the server was reset while the page was loading
What else should I do, so I can type the domain name I see my website on the browser?
Change/configure nameserver settings that points domain to your server ip address.Delete the default index page. And rename the main page you want to display initially to index.html or index.php
Related
Recently, i transfer from localhost with xampp to online host using cloud hosting. But then I encounter some error related to the direction of a file. For example, when using in localhost, the URL for directing from the homepage to login: localhost/login. But when I using in the cloud hosting it then become domain.name.com/homepage/login.
This lead to the 404 error. The html code for the file is the same when using in localhost and cloud hosting.
Login
It is better to give the path from the current file location.
Like you can access the files in the same folder using file.php
You can access the files in another folder using folder_name/file.php
You can access the files in parent folder using ../file.php
Thank you
I have cloned a whole online website built with prestashop by FTP and hosted it on a XAMPP. I have downloaded the SQL dump and imported it locally with phpMyAdmin. I have changed the conf files to use the local database.
When I go to localhost/myProject it redirects me to the website url. Why is that ? is there another configuration setting to edit? I have already looked in the conf table in database and domain URL was already set to "localhost", even on the online version.
I found a reference to the website in table "ps_shop_url". I changed its values to localhost, now when I go to localhost it tells me "this page has an infinite redirection loop"
change the you site url to localhost in database.sql file as below:
Change www.yourdomain.com to localhost & make sure you have putted your site htdocs directory...
Can you show entry that you have made in ps_shop_url table.
Physical url should be /prestashop1606/ for localhost/prestashop1606/
I have a web application hosted on AWS on Ubuntu server. I have Apache and mysql running on it. It was working perfectly fine till yesterday, All of sudden when I try to access phpmyadmin using my domain name (like http://example.com/phpmyadmin) it gives 404 error.
If I simply type http://example.com on the browser it opens the home page, but if I click on any of the link of my site which refer to different directory, gives the same error.
I have checked the 000-default file under /etc/apache2/sites-enable. My Document Root is set perfectly fine, and directory has Override option to All.
Can any one have any idea then please help me.
Thanks
I currently have the following problem and was hoping that you could help me. I am busy building a website with a login system in Dreamweaver cs5. My login is created and I set up my testing server as the domain I am creating the website for.
This testing server does connect successfully. After this I am trying to establish a MySql connection. I insert my connection name which is dbConfig as well as the information of the MySql database that I set up on cpanel for this domain. I then get the following error:
HTTP Error code 404 file not found.
I don't know where to go from here as I have never worked with php or MySql before and am unsure of where to go from here.
If it is parent domain then you need to upload your files to "WWW" folder from FTP. There might be a case where you may not see "WWW" folder. Some hosting cpanel have different default folder to upload files. For Example: Godaddy hosting cpanel has "html" folder where you can upload your files. But almost all other hosting has "WWW" folder. If you are uploaded to subfolder For Example: www/test then to access your files you need to check like "http://example.com/test/" . OR if it in root folder then you just need to go to your domain url "http://example.com"
I am trying to setup a PHP server so that I could use the "Live" feature in Dreamweaver, in addition to being able to preview in my browser without having to upload the .php file via an FTP application every time, which is not efficient when I want to do quick small previews.
I have setup a new website and selected a folder for the site on my local drive.
For the server, I have the following information (I don't know how much of it is relevant):
Remote: Yes
Test: Yes
Server Name: Server
Connect using: FTP
FTP Address: my domain name
Username: my username
Password: my password
Port: 21
Root directory: blank
Use passive FTP: Yes
Use IPV6 Transfer Mode: No
Use proxy: No
Use FTP performance optimization: Yes
Maintain Synchronization Information: Yes
Automatically upload files to server on save: Yes
Enable file checkout: No
Server model: PHP MySQL
When I test the server, it is successful and I am able to get the site/server to show up in "Manage Sites". However, when I want to test my .php file on the "Live" preview panel or as a preview in Chrome, I get the error message: "Dynamically-related files could not be resolved because the site definition is not correct for this server." When I upload the .php file to my FTP manually, the page displays properly but when I try doing this it either does not work or the Chrome preview mode just spits out the entire raw code.
I tried and Googled, but I could not find a solution to this problem. Any help would be greatly appreciated.
Side note: I have my hosting from GoDaddy and the server from there is based on MySQL.
Thank you.
To set up PHP server with dreamweaver follow the following steps
Step 1.
Make Sure you have MAMA(For MAC OX) or WAMP (Window OS) install. If you dont know where to get then click this link
http://www.mamp.info/en/downloads/ and install in you system. (make sure if you are using skype close it because skype and mamp use same port. Later you can chage the port for Skype)
Step 2:
Open Dreamweaver and choose
Site > New Site
Step 3:
Type your site name and click on browse button to locate you htdocs folder (which is normally inside you mamp/wamp folder on you root directory).
Step 4:
Select Server from left hand side and click on add (+) sign.
Follow the following:
Server Name: localhost
Connect Using: Local/Network
Server Folder: (this is wehre your site located (i.e. inside htdocs folder)
Web URL: http://localhost/yourSiteName (yourSiteName is name of your folder)
Click Save.
Step 5:
Check Testing and click SAVE
Step 6:
Last but not least Open File Panel
Window > Files
Now create a new file and Save it inside you folder.
Thats it you are set mate.
hope thats helps
Cheers!
The problem is when you try and run your PHP file from your local machine, there's no web server running - nothing on your machine knows what to do with that file.
The solution is to run a local version of Apache, PHP, MySQL on your local machine - the easiest way to do is to download xaamp - http://www.apachefriends.org/en/xampp.html. Put your website files in the htdocs directory once it's installed, and you can view them by going to http://localhost/websitefoldername