I built a website (localhost) using PHP and HTML through XAMPP. Now, I want to publish it online (webhost), available to everyone. What should I do? Thanks in advance!
First you need a host to upload your files. For this purchase hosting space from godaddy, bluehost or someother provider. You need to purchase a domain too. After domain and hosting space, if you have purchase linux hosting, then 90% chance is that you will get a cpanel. So log into your cpanel then navigate to 'public_html'. Inside this, using some ftp client like filezilla, or cpanel's build in upload feature, upload all your files. If your website needs a database, then you need to create a database, add database user and password using database wizard tools in cpanel.
When you will purchase a hosting, these things will be very clear once you login and expore a little.
Moving a website to another host consists of the following steps:
Moving the website's files.
Moving the website's database(s) (if any).
Configuring your application to work at the new host.
Pointing your domain's DNS to the new host.
A more detailed breakdown of these steps can be found below:
Transferring the files to the new host
The most convenient way to transfer your website's files to your new web hosting account is via FTP. You should connect to your hosting account and download the files locally to your computer. Then you have to upload them to your new hosting account's main folder (usually public_html, www or httpdocs).
More information on how to use FTP can be found in our FTP tutorial.
Transferring the website's databases
You have to export the database content from your old hosting account (usually into an SQL file), create a new database at your new hosting company and import the information in it. For detailed information on how to import/export databases via phpMyAdmin you can refer to this tutorial.
Application setup on the new host
This really depends from the website application that you are using. For step-by-step instructions on how to reconfigure some of the most popular applications
Check this out https://www.heroku.com/. The website will update as you push your code to the git. It's free, easy to use and good for small project.
Related
So i am having a problem, there is a website which have been hosted on plesk and currently to access that website i have to change my hosts file in system32 folder and put the IP and website domain name to access that file. Now i want to remove that so that i can access my website without editing my hosts file. How can i do that?
Note: I didn't made those settings on that website where i have to edit my hosts file to access the website and the website is made in wordpress.
I really dont have idea what to do because i have always used wamp to use it on localhost. Please Help guys!! thanks alot.
The issue is that your website does not have public DNS records and you should create them.
As you want to host it on Plesk server let me explain on example:
Let's assume that you have created a website and called it example.com. For development and tests you used wamp server on your local machine and to reach website you edited local hosts file.
Now you want to move it to production, so what you need to do:
First you should register your domain. You can do it with some registrar like GoDaddy.
Next you need to create this domain in Pleks > Subscriptions > Add Subscription. On this step Plesk will create a DNS zone for your domain on local DNS server.
After that you have two options:
1. Allow Plesk to host and serve DNS zone. In this case you need to configure Plesk server as name servers for your website on registrar side.
2. Use another DNS server, for example provided by your hosting provider, and configure zone for your website manually.
Finally you need to wait until zone will be propagated world-wide and your website will become accessible.
You can read more about DNS here, here and here.
I have a client who gave me the FTP credentials server to upload the web files to the public_html folder and a pre-existing MySQL database to dump the tables of the website, only, without complete information of the server, as I know the server host the number of other website as well(shared hosting).
After uploading the web files to the public_html directory and dumping the MySQL tables to the given database, When I browse the newly created website. It is too too much slow, even it says the resource limit is exceeded, with 3 or 4 more request to the server, and the website is created using the wordpress.
As in the most of the shared hosting the service provider provide the cpanel, which display the system status and the resource usages for each website, as the Server has not any c panel software installed (sysadmin use the CLI method) to view the resource usage by the each website.
I also create the <?php phpinfo(); ?> script to view the server information, but I couldn't get any clue from the output of this script.
Is there any php scripts which can show the information about the Bandwidth usage, CPU usage, ram usage, memory usage/allocated by php/mysql by the particular website so that we can put that script in the root directory of the website and execute it by calling it from the browser. If No is there any other alternative way to view the server resource usage by this particular website. OR Should I need to contact the server administrator about this issue
You need to contact the server administrator about this.
If it's a shared hosting service, you can't access files and directories outside the one that has been assigned for you to use and host your files.
In order to know the server load and resources you would need to access UNIX files outside your directory; otherwise you would need to access CLI on that server. As far as I understand you can't.
In addition, if a shared web hosting service is having performance issues, it should be the machine's administrator concern, not yours.
You should alert the machine's owner and if you still can't get to solve the problem just change hosting provider as the provider is probably overselling.
I have been trying to transfer my magento website to another domain of mine on the same hosting server.
I have searched over the Internet for this but unfortunately didn't find answer about the transfer within same hosting server. However there are a lot of solutions if someone transfer from one server to another.
I have 2 domains on a hosting server. One is mydomain.ca and other is mydomain.com, currently mydomain.ca is running and the folder of mydomain.com is empty.
What I wanna do is to run mydomain.com with the same website which is running on mydomain.ca
If anyone can help that would be greatly appreciated.
If your server has any hosting panel, then there must be an option to copy content from one place to another. You can easily copy content from current virtual host directory (say mydomain.ca) to virtual host directory of (say mydomain.com).
Then login to DB administration tool (say phpMyAdmin), select database of current website, click on operations, then click on copy database.
Then provide name of database where you want to copy existing database.
Now you have to do only 2 changes:
In core_config_data table of copied database, change unsecure base url and secure base url.
In app >> etc >> local.xml of new virtual host folder, change database connectivity details (i.e. host, username, password and database name).
Now delete var/cache, var/session folders from new virtual host directory.
That's all.
If you are planning to have them both running the same website then I think there's a simpler approach.
if your website is currently running as mydomain.ca, then all you need to do is "park" your other domain on this same account. Cpanel etc will usually allow you to do this no problem.
This will basically setup mydomain.ca as a pointer to mydomain.ca. they will both point to the same directory/document root, so you'll only have one set of files and no extra directories to worry about.
some info on doing this via some shared hosting platforms:
https://documentation.cpanel.net/display/ALD/Parked+Domains
http://support.hostgator.com/articles/cpanel/what-is-a-parked-domain-how-do-i-create-and-delete-one
Once the second domain is "parked" they will both point to the same website. If you then wanted to have them use different store fronts, themes etc, you could manage this inside magento without the need to change anything else on the hosting side of things.
Good day!
I've searched for many sites on how I could deploy my PHP projet in the internet but I don't know how to do it because I am confused with some of the technical terms.
You see, I am using xampp for my local web server. Now I want to put it in the internet. I found some free web hosting sites so i've decided to upload all my htdocs files inside it.. But how can I put the xampp (apache server) and my mysql database on it? I'm confused. Please help. A step-by-step procedure of what should i do could be really helpful. Thank you in advance.
Get a hosting account (try www.bluehost.com for instance).They will set you up with a Linux server and MySQL. You don't have to install Apache or MySQL, you will use whatever they've got. All you need to do is upload your PHP files to the right folder, setup your database on their server and you should be good to go.
If you buy a domain-name and space, connect them using the NS settings
If you are using a free, then the settings are already okay.
Export the database from your XAMP.
Login to the remote server. There you'll find PHPMyAdmin. Import the database.
Upload the file.
Make sure file listing is off. That is if a user goes to any directory he can not see the file list!
Done :)
Simplifying a bit, there are two ways you can get your site online.
First, you could purchase or rent a server that is yours and yours alone. This is commonly called "dedicated hosting" and costs somewhere around $100 / month. If you choose this option, you have your own server housed in a datacenter somewhere, and you must install Apache, MySQL, and any other server software you care to use.
I doubt, given what you've described, you have chosen this option.
Second, you could rent "shared hosting" from any one of the dozens of hosting providers out there. If you do this, with a typical cost of $2 to $10 per month, the hosting provider is administering the server. You have no direct access at all. Your only access is through the tools they provide.
Given that, how specifically you can upload files is up to them (is it FTP? SSH? a horrifying web-based upload tool of some kind?) Similarly, how you access your MySQL databases (assuming they offer MySQL databases) is entirely up to them as well.
Many providers now use a tool called cPanel for this administration, so you may try browsing to www.example.com/cPanel (using your domain) on the off chance that works. If not, though, follow the instructions your host provides. Only they can correctly describe how their setup works.
The hosting will be already having apache and mysql installed you only have to put your files thats it
I suggest you contact your webhosting site. The web hosting needs to host php, and mysql. Then you can upload your files to their web server, and copy your mysql database to their mysql server.
You do not need to transfer xampp to your host: apache and mysql are running on nearly every server
Upload all your files in your htdocs directory via ftp to your server
To transfer your database, use phpMyAdmin. It is installed with xampp and alos installed on nearly every server. In phpMyAdmin, use the export/import functionality
In your php file where you connect to the db change the login settings to the settings the hoster gave you
That should work...
Hosting Company already have setup for apache,php, mysql. All you need to uploads all your
files from xampp htdocs to a right folder like public_html using a ftp software like
filezilla. They also provide a control panel like using which you can manage your mysql
database and all others settings like directory permission.
Actually, i have opened a site in a free web hosting company which is not offering file sharing facility (i.e. to store files in different formats) so online chat community of d same site advised me to store the files in a remote server of sites such as rapidshare.com, mediafire.com. But i need downloading and uploading facilities in my website. So i have decided to run uploading and downloading php scripts frm my website which will be connected to the remote server, but i'm afraid scripts are not working. As my user name in mediafire is "karthik_raju1#yahoo.com" when executing the code with this user name i have got an "Error:username must not contain '#' symbol". Can u please suggest me d code to upload files to remote server and kindly suggest me some important tips ,if any...
If you are wanting to store other files, a simple solution would be to consider a better free host such as 000webhost.com or byethost.com or awardspace (This is not an advertisement).