How can i secure my wamp/www/Folder-name so that no one can play with the contents of my website - wamp

I have created a local server in my computer lab and hosted a website on it so that people on same network can use it.I am using wamp and php for my website. The computer which is made server is also used by some students so I want to secure my website from being stolen or any changes in the code by students. How can I do it?
My website is stored at the location wamp/www/my-website

Related

How to create a Domain Name for a Django App in a LAN

I recently built a Django app that I am running on a Linux machine with Gunicorn and NGINX. The app is being run inside my company's network which is predominantly a windows environment. Currently, I am able to access the web app via the server's IP address. I know if it was a windows machine I could use the DNS to have it called by a DN. How accomplish this given that it's a Linux machine? For example, I would like to have the company users call the web app from a browser using http://analytics instead of its IP address. Would make the app much more user-friendly instead of always typing in the IP and just for best practice it's probably not secure to be showing the end user the IP anyways.

Too Many Redirects Error in GCP while integrating Lets Encrypt SSL for PrestaShop

I've started learning Google Cloud Platform (GCP). I want to host an e-commerce website using PrestaShop CMS. This CMS is readily available as a Google Click To Deploy product in the GCP Marketplace.
Everything works totally fine unless I start using the Let's Encrypt SSL Certificate in the website. I have successfully set-up the Cloud DNS configurations and the domain name is pointing to correct IP address of VM instance (where the website is being hosted).
But once I run Lets Encrypt's Certbot, I don't know what it does to my website but it starts giving me an error in the browser - ERR_TOO_MANY_REDIRECTS .
UPDATE
I'm posting some screenshots that I've collected about conf files.
My domain name is www.themkumar.com but I couldn't find it in any of the conf files. If someone could tell me how to add it there, I'll be really grateful to you.
FINALLY, I solved this issue!
I just found that configuring any domain in Google Cloud DNS doesn't make any changes to it's virtual host file. I had to add my domain in 000-default.conf file so that it can get visible to the Certbot. I altered this file and added my domain then followed the quick process to generate the SSL certificate for my domain.
After that, I logged into my PrestaShop admin panel and enabled SSL Certificate for all the pages.
After that, it's working totally fine. If anyone ever faces this same issue, feel free to ping me I won't mind answering you guys even if you're a totally newbie!

How to sync my local database of my web app to database of my deployed web app?

So my project is a school distributed system based on django web framework. My web app will be deployed in every school on their local computers. And all of the data on those computer will by synced with a main server on my side. What I want is how to implement a solution that would help me sync files/data with my server such that if some file/data is changed on a local computer it'll replicate itself in our server and if I change some file/data on my server, it'll update on those local computers whenever they get an internet connection.

How to deploy mid sized Django App [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I just finished my Django App. All these months, I have been running the app on a local server using
python manage.py runserver
and it ran on 127.0.0.1 and was accessible only to my computer. Now that I am finished my app, I want it to be accessible to the world. I tried researching how to deploy my django app, and probably like most people in my situation, I am now completely lost. The words 'WSGI, AWS, WebFaction, Domain, Web hosting, Shared hosting, servers, VPS Vendor, RackSpace, Apache2 etc' are all flying around my head.
The first post I cam across was this one:
How to setup Django website in Amazon EC2 hosting?
The post says Amazon EC2 servers are good, but recommends WebFaction / Dreamhost instead. I decide to pick Amazon EC2 instead of WebFaction / DreamHost. I google about Amazon EC2, and then I find myself reading comparisons about AWS and VPS Vendors like RackSpace. I then agree to use Amazon EC2 instead of RackSpace. Then I thought to myself, where exactly do I buy the domain name from? I know that goDaddy is really popular for hosting domians so I look into that and I realize that godaddy doesn't support Django. I google'd which web hosting companies support Django, and I came across WebFaction again. So wait, I use WebFaction to register the domain and Amazon to host the site? I look at the prices for WebFaction and they give prices for bandwidth, disk space, server location etc. I google the price for AWS and they talk about the exact same thing: server location, space etc. At this point, I don't even know if WebFaction and AWS accomplish the same thing and if I am supposed to pick one or the other, or if WebFaction is for simply hosting the domain and AWS for the server? I then decide to research about servers, hoping to come across a post of how Amazon servers work and their relation with domain hosting sites. Instead, I find myself reading about Apache. Hm, so Apache is now another option? I google the relationship between the Apache server and AWS, and find that I can set up Apache on AWS? So do I need WebFaction, AWS and Apache to deploy my Django app?
I tried doing more research about deploying a Django app and came across a post talking about WSGI. It seems as if the more research I do, the more confused I get. So this is where I need your help:
The Django Application is basically a 'Blog' site which allows users to create accounts, upload images, comment and like images, follow other users, make posts (which consist of only text and images), comment on posts and like posts.
The Django Application is directed to an audience of about 1500 users (I'm estimating about 1500 users within the first two months). The application will be put up on the Android and iPhone app store as well (through WebView). My hostOS is windows 8 but I downloaded a VM (which runs Lubuntu) and did all my Django stuff in Lubuntu using Django 1.5, Python 2.7 and had to install PIL and Pillow as well. I used a PostgreSQL database. With all these details, how should I host my site?
I don't want to say 'Which servers should I use' because then some will say 'Amazon', some will say 'DreamHost', some might say 'Buy a domain and then user Amazon' and some might even start talking about WSGI and Apache to make me really confused.
What steps do I need to take to host my 1500 user application? Once the application hits 1500 users and starts going higher than that, then I will think about switching to a larger server, but for the first 1500 users, where should I buy the domain name and host the site? The site needs to be live within the next 3 weeks (so if a VPS vendor or Amazon EC2 is highly recommend, I can take out an entire week to learn about them). I just want to know if there is a more recommended, simpler solution rather than jumping right into a VPS vendor or buying a Domain and using Amazon EC2 server.
Edit: Should this go on ServerFault instead?
There are several layers here that you all need, but it can be confusing at first. To set up a Django site in a production environment, you're going to need:
Server hardware.
Webserver software.
Python connector (WSGI).
Registered domain name with DNS records.
A hosting service gives you access to server hardware. You rent a physical server or a virtual environment on a physical server. Most hosting platforms include domain name registration and managing DNS records, but some might require you to seek these services elsewhere.
In order for the server to actually serve a http response upon receiving a request, it has to run a webserver process. Apache and Nginx are such webservers. WSGI is the standard that allows webservers to communicate with Python applications. You'll need an implementation of this in order to connect to your Django application. Some choices are gunicorn, uWSGI and Apache's mod_wsgi.
With this information you should be able to understand most articles explaining how to deploy a Django application. Everything except the part about WSGI is also applicable to any other website, not just Django.

How to set up Apache server via an FTP account

I have developed a web application in Django and would like to go online i have an FTP access to the hosting server I am a beginner to "setting up a website" i would like to know how to install apache on that server and have my application working
Kindly provide detailed info as i am newbie, any links or tutorials would help a lot
Thanks in advance
If you only have user level access to the machine (ie: you don't have root), then you won't be able to control what web server runs and you can only control its settings to a limited regard. You will have to consider contacting your provider or looking for a different hosting package if the server doesn't meet you needs.
Typically, if it is a hosting server, the administrators will already have web server software like Apache running. You simply just have to upload what you would like to have displayed (typically to a directory called "public_html" or something like that), and it will display when someone visits your site. Hopefully they support things like Django, otherwise you might need to look at other options.
Your hosting provider is most likely to have specific and the most relevant instructions for how to upload your website.