I have build a php-mysql website on localhost wampserver having many other folders (alias, apps, bin, lang, logs, etc. etc.) along with my website folder. While moving them to live server, what all folders should be moved to 'httpdoc' folder of godaddy. Also, what files need to be changed among them (like config file) ?
Thanks.
Related
I am new to all things servers but I am competent enough to understand. Please point me in the right direction.
At school, we have a 'shared drive'. I downloaded, set-up, and ran a WAMP server. I created HTML pages with PHP code to send/retrieve data from the database. I didn't want it on the internet, only locally accessible.
I then decided to move this to the 'shared drive' so that everyone on the school network could access it by simply going to their favorite browser on a school computer and typing 'localhost:8080/' like I do on mine.
I copied and pasted everything, the entire 'Wamp64' folder with all my changes included, onto a folder in the shared drive. I modified the 'http-vhost.conf' file
DocumentRoot "I:/Laboratory/Internal/Server/wamp64/www/project1/"
Directory "I:/Laboratory/Internal/Server/wamp64/www/project1/"
as follows with the new path. Still, nothing when I got onto a PC and typed 'localhost:8080/'
This is all I've done. Every single step.
I understand how naive my understanding may seem. Please, point me in the right direction.
I think you are missing the point of what a web server is i.e. Apache.
It is a software server and as such can sit on any PC in your network, which could be the server or the little old box in the corner that no one ever uses because it is a bit out of date.
It sits on that PC and listens for things trying to connect to it, usually on port 80, but could be any port like your 8080.
So, placing it on the hardware server itself is not necessary.
And, just copying an install to a shared drive and expecting an PC on the network to be able to then us it is just not possible.
Also, its always best to install WAMPServer i.e. Apache, where you want it to be located. Copying an installed version from one drive to another never works, as the install modifies path data all over the place and of course the Apache and MySQL services are installed (windows service installed) from the original drive and folder. So your moving the wamp folder to another machine will definitely not work.
I suggest you install a WAMPServer on a PC that is left on all the time, using port 80, I am guessing that the school wont let you install it on their server for obvious reasons.
Then copy your site code to this new installation.
Then backup you database, and restore it to the new machines WAMPServer (MySQL)
Then amend the Apache config to allow access from the schools local network but not the internet, by amending the httpd.conf or if you are using WAMPServer 3 by amending the httpd-vhost.conf file, there are many answer available on that subject.
Next, if the school has a DNS Server, I would ask for a domain name to be added to that, pointing to the ip address of the PC you installed WAMPServer on. The domain can be anything but something like davidproject.school could be used.
Then you create a Virtual Host in WAMPServer using the ServerName = davidproject.school and ServerAlias = www.davidproject.school
Then people will access it from any browser in the school with the url davidproject.school
This is my first time deploying xampp server to cloud. I followed this tutorial and everything is straight forward. But when it comes which folder to transfer I found it unclear. I transferred my xampp folder(to the htdocs folder in the remote cloud) containing the whole server files but when I try to access it through the internet the .php files do not exist.
The local project you have on your machine should be serving from htdocs directory on your machine. You have to sync that with the directory online. Follow the steps:
Login in the server using FTP and go to /opt/bitnami/apache2/htdocs/
Copy contents of this remote folder into your machine as a backup
Now open your local XAMPP folder. On windows its c:xampp/htdocs on linux /home/user/www
Copy all the files in htdocs directory from your local machine to server
This should do it.
I have a wordpress site, I need to work on it on my server but i don't want the site to be online in any way shape or form. i want to complete the site completely and only then launch it, how can i do this?
thanks,
edit: im currently using xampp, but facing issues, so i want to shift to my server.
Take the wordpress files out of the documentroot (where your files are displayed from)and put them in some temporary document and set up virtualhosts on your server so that you can have more than one documentroot so you can test it in your browser but it wont be live.
You could use something like MAMP or WAMP, MAMP works on both windows and macs, these are local server environments which you install on your own computer. You can then develop them on your computer and once finished, upload the files to the production server. This is quite common practice.
If however, you want to use your server you could block all connections which do not come from your own IP Address. For example in your .htaccess file you could put:
order deny, allow
deny from all
allow from 111.222.333.444
If it was me working on development of a WordPress site I would do it one of 2 ways:
1) Either create a new VirtualHost and password protect it
2) Use a local instance of Apache to serve the WordPress installation locally.
Option 2 is probably the handiest. Pushing the new site live is then a simple case as uploading the theme directory to the live environment and enabling it, provided you keep all relevant files within the theme directory.
Apache can be installed using either LAMP (for Linux) or WAMP (for Windows)
Hello I am running tests on my XAMPP server.
Let's say we have the following scenario :-
My Laptop is running the server in a small Local Network.
And I am accessing my Server with my personal PC.
Is it possible to upload files to htdocs from my Personal PC to the Server Laptop?
If we assume that all security settings are turned off. Basically I need to remotely upload files to HTDOCS so I can use them from the server!
As far as I remember doesnt XAMPP come with a FileZilla server as part of the install?
So configure the fileZilla server on the laptop, create a userid and set that userid up to be able to see the htdocs folder.
Then install FileZilla client on the desktop PC. You can then use FTP ( FileZilla ) in just the same way you would if the site was running on a real hosted server.
FileZilla Server setup instuctions
No.
Web servers do not, by default, run any services that write file uploads to a directory on the server.
You'll need to run some kind of suitable service such as SFTP, Windows File & Print Sharing, or a web based file uploader script.
I have wordpress installed and running in my local machine with Windows and Xampp server. I want to access my site from all machines within my network. I have copied all the files with database dump, but it's not working. Posts, pages, plugins nothing are displaying.
I am new to wordpress, any help will be appreciated.
Thanks.
If your local Wordpress installation (running on 127.0.0.1) work, is not necessary any modifications.
Just access from computers on LAN with ip machine
192.168.0.1/wordpress <- IP of XAMPP PC.