Deploying Django on VPS using Apache2 mysql using Ubuntu - mysql

I am trying to deploy my project on VPS(Ubuntu). I tried following all the steps from the Django documentation as well as other websites without any success.
My issue is that when i run the server, it will be alive only till the terminal is open.
So i am predicting that there is some issue with the procedure am using.
I am using Django with Apache2, mod_wsgi, cartridge, mysql, python.
I am now struck with a VPS and nothing in mind.
I wish if somebody could suggest me tutorial or any documentation which will help me continue.
I have successfully run the server on Ubuntu VPS. But it is on Development server.
thanks in advance
Sameer

you will use this Link please do not miss any step after complete all steps you will able to run your application.
there are more guideline's, follow the step by step.
http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/
http://michal.karzynski.pl/blog/2013/09/14/django-in-virtualenv-on-webfactions-apache-with-mod-wsgi/
https://library.linode.com/frameworks/django-apache-mod-wsgi/ubuntu-10.10-maverick

Related

Azure Web App unable to install NodeJS mysql dependency

I recently created a web app on Azure, I am able to run it well, however I noticed that if I add the following line
const mysql = require('mysql');
the app will crash as it is not able to find the mysql module. When I test the app locally on my machine I have no such problem, it only occurs when the app is deployed to Azure. Notice that the Azure app works well with other dependencies, but it fails in installing mysql.
What am I doing wrong? Any hint is more than welcomed. Thanks in advance!
After reproducing from our end we noticed that mysql is not visible in the node modules. In general, npm install works locally. To make it work even after deployment ensure mysql module is being installed in ./node_modules of the application.
You can navigate to Kudu of your Web app and use npm install mysql. Even after doing that if you still cant find the module in the nodemodules, then just drag and drop the module from your local machine.

Business Objects BI Platform 4.1SP2 installation failure -- java VM installer

I am stuck at the moment and need some help advise. I am trying to install the software above on a windows 8 machine for the company I work for. Initially I installed it but when I tried to do the wdeploy predeployall I got an error with acess denied to sAPJVM, it didn't actually exist in the win64_X64 folder. After reading abit, I decided to uninstall and re-install. Howver the re-install failed with the following error
java virtual machine launcher
could not find main class: com/businessobjects/sdk/biar/utility/xsdutility. program will exit
Now I can't uninstall or install so stuck in abit of a limbo. I also notice that the SAPJVM is not there either.
Can anyone offer advise on how I get over this.
thanks
It turns out if your using a tomcat server and the server is on another box, you need to run cmd as the administrator. This was my issue.

how to upload django project (attendancesystem) into centOS server

I am just getting my hands on to django and linux server so still newbie. My question is I have a django project which is an attendance system and I would like to upload it to my server and i'm using CentOS6. I would like it so that other user can also use it and log into it. I totally no idea on what to do first and what to be aware off and so on. I am totally lost. Can anyone help me step by step that will help me on archiving this. Please ask if you need more information on anything.
Thank you in advanced.
Hopefully, someone has made a step by step documentation on how to install Django to a CentOs server:
http://itekblog.com/installing-python-django-on-centos-6-3-is-easy/
Deploying a web application in production is a critical task. If you have no knowledge about Linux, you will need assistance from a system administrator to understand exactly what you are doing.

MySQL standalone or via XAMPP?

This is my first question ever at stackoverflow, hope I make sense out of it. I am starting to learn about databases and also programming these days. So I would want to get some advice on MySQL database. Though it's open source and available for download, Should I install the standalone MySQL GUI version on my laptop (Windows 7 32bit) or should I install XAMPP and then access it through phpMyAdmin ?? My purpose of asking this question is that , for starters..I am learning SQL and querying. And then I would want to learn to create web application using php or JavaEE.
I am completely unaware of these concepts, so I would appreciate if someone can just take few minutes and guide me accordingly.
Thanks !
Regards
and welcome :)
If you're planning on concentrating on PHP more than MySQL, it's a good start to install XAMPP. It's more lightweight and contains both PHP and Mysql. It's better for you to concentrate on learning the basics first, rather than spend time on software components. That's why I would choose XAMPP (or my personal favorite: WAMP Server)
If you'd like to spend a bit more time on database management such as user management, jobs,... it could be interesting to download the Mysql server package from their site.
Also, that package comes with example databases which you can use to learn some SELECT and UPDATE queries. It queries a lot easier that PHPMyAdmin.
If your goal is to use MySQL with self-made applications, get XAMPP and learn some PHP before diving into queries
And then I would want to learn to create web application using php
In this case XAMPP should be your friend. BTW with XAMPP you get an MySQL-Server which is identically with the MySQL standalone. You can fire your querys by using phpmyadmin, or connect via shell (console) or thridparty programms ....
In case that you are using NPM, you can install a standalone version of MySQL using the mysql-server package: https://www.npmjs.com/package/mysql-server

Installing Hudson remotely?

I'm trying to install Hudson on a server. The article here says to just do java -jar hudson.war and it should install to the server. This is pretty straightforward to do on a local computer, but I want to do it on a remote website host that I manage via cPanel. So how on earth do I do this? I really am a newb when it comes to this sort of thing...
Also, obviously I require the JRE to do this. How do you install the JRE on a remote website host via cPanel? I don't even know where to get started...
Thanks.
Short answer: get a VPS. If you don't have shell access you're in for a world of frustration here.
You will not be allowed to do this, NEVER!
No Seriously you wont
:-)