I'm new to Django and Apache, so apologies if my terminology is a bit off.
I have a Django app that I'm serving with Apache using mod_wsgi. I used this guide, and just switched to Apache from the Django dev server. In my 000-default.conf file I have this line
WSGIScriptAlias / /home/ubuntu/Projects/myapp/wsgi.py
Everything works fine and the homepage of my app is example.com. However, I find now that there are images (a few tilesets) that I was previously accessing at example.com/tiles which are now not accessible, because they are actually stored at /var/www/html/tiles.
I understand why the paths aren't working, but I'm wondering if there's a way I can keep running the django site from example.com while also serving the tiles from a different directory.
I think if you add a preceding configuration directive:
Alias /tiles /var/www/html/tiles
... it should fix it.
Please note that order of Apache configuration directives may matter. More information about Apache and Alias.
I would like to deploy a Django application in a production environment (Windows Server 2012 R2).
I am unable to configure modwsgi for a WAMP server.
There are a few posts for this topic, however it seems that all are old and not applicable now. All the posts say that I should have the .so file of modwsgi, but I am unable to find this file.
I have downloaded the source code for modwsgi and also .whl file, but don't know how to configure.
System configuration is as follows:
Operating System: Windows Server 2012 R2 (64 bit)
WAMP Server 2.5
Python 3.4
Django 1.7
Have you looked at the official mod_wsgi download area at all?
https://github.com/GrahamDumpleton/mod_wsgi/releases
All the release notes specifically say to read:
https://github.com/GrahamDumpleton/mod_wsgi/tree/master/win32
I recently did a full 64 bit install of Railo on my Windows 8.1 machine hooking it up to IIS. The code for the site is in a location outside the c:\railo directory and when I boot it up it did put the WEB-INF folder in the application root like it was supposed to. When I start the Railo server from the command prompt I am seeing the correct path to the WEB-INF\railo folder for that web context in the start up. So the code runs and all is good except that I can't get into the admins with IIS throwing a 404. Anybody have any ideas?
Thanks!
Bypass IIS and hit tomcat directly. IE, from the local machine:
http://127.0.0.1:8888/index.cfm
or
http://127.0.0.1:8888/railo-context/admin/server.cfm
My wamp 2.0 is using around more than 100 large database and a lot of projects.I also made around more than 50 virtual host. Now I need to upgrade wamp 2.0 to 2.5.
I got some suggestion on internet that take back up of database and files , then uninstall wamp 2.0 and install 2.5 then set up every thing again, but it seems it is not a right way.
What is the best way ?
Usually I follow following steps to do it easily.
Stop Wamp Service
Rename the wamp folder to wamp-backup
Download latest version of wamp and install it
Rename the data folder of mysql with some different name
(C:\wamp\bin\mysql\mysql5.5.20)
copy data folder of mysql from wamp-backup and paste it to new
install wamp mysql folder (C:\wamp\bin\mysql\mysql5.5.20)
Rename new httpd-vhosts.conf file to httpd-vhosts-backup.conf.
Copy old httpd-vhosts.conf and paste to new installed wamp
(C:\wamp\bin\apache\Apache2.2.21\conf\extra)
In apache 2.4, the directive Allow was dropped in favor of new
directive Require. So change the settings from Order Deny,Allow
Deny from all Allow from all to Require all granted
From
Order Deny,Allow
Deny from all
Allow from all
to
Require all granted
9.The old www folder in wamp needs to be copied into the new one.
Let me know whether it's working or not.
you should do this , I recently updated it , first of all I took my Wamp directory back, then uninstall Wamp not remove the www directory , After that install the latest wamp on the same location , after this copy the folder named data inside the old wamp bin\mysql\mysql5.5.24 and paste that folder inside your new wamp on the same location then run your projects after starting the wamp services.
Note: folder version of db may be different and also latest wamp is based on virtual host so create v hosts also
Thanks
You may directly Upgrade Wampserver from Secondary repository of Wampserver files.
There are various options present on the site:
Install Wampserver full version
Wampserver Update
Addons-
Applications
Apache
PHP
MySQL
MariaDB
Also, one could directly download Tools and Visual C++ packages from here.
So, my suggestion would not be to make any changes in any file in the wamp, nor uninstall the present wamp, and download the latest version. Simply update your wampserver from this website.
There will be no change to the Apache, PHP, MySQL, and MariaDB
settings and versions used; your local sites and databases will not be
affected. This update will be necessary to be able to install the last
addons Apache, PHP, MySQL or MariaDB
Quoted from the site itself.
NOTE: Before uptading, you may just make a copy/backup of your "wamp folder" somewhere on your local machine. In case there is some issue in the update, you won't lose any file and always be able to restore your previous work.
Hope this answer helps someone, if it does kindly upvote. All the best!
To update to latest wamp version safely, use http://wampserver.aviatechno.net/
You can update complete wamp or install newer php/apache versions.
Currently, I have Joomla 2.5 installed and I am trying to install Joomla 3.0 on the same web server.(allowed to run multiple sites)
Under www(root directory), I have installed Joomla 2.5 and working without any problem.
To install Joomla 3.0, unzipped and uploaded package files to e.g. www/joomla3 folder.
I have set the url e.g. www.joomla3.com to point joomla3 folder.
For joomla 3 configuration, I access url(e.g. www.joomla3.com) but I am getting Error 310 (net::ERR_TOO_MANY_REDIRECTS). If I remove index.php on joomla3 folder than I see web directories.
Why am I getting this and how can I fix this error.
I really appreciate your help.