I am trying to learn web python programming and because of that i tried to install python in wamp server using the procedure given in this tutorial. I have gone through the steps as mentioned in tutorial.But When i tried to run the python script it is showing this error in firefox
Unable to connect
Firefox can't establish a connection to the server at localhost.
i have found out that addition of these two scripts in apache/httpd.conf some how affects the whole wamp server
1)LoadModule wsgi_module modules/mod_wsgi.so
and
2) <Directory “C:/wamp/www/python”>
Options ExecCGI
AddHandler wsgi-script .py
Order allow,deny
Allow from all
</Directory>
When i enabled above code in all combinations (1,2 and both) and restarted;the server showed offline (yellow 'W' sign) but when i removed or disabled (using #) both scripts it showed green 'W' sign of wamp and it is working.
anyone have any idea why its showing this error and how i can i run python files in wamp?
my system configration
windows 7 32 bit
python 3.2
[mod_wsgi][2] for python 3.1
WampServer Version 2.1
Looks like you have a couple of problems here, since WAMP won't start with wsgi_module enabled. Let's start with the second problem, which is a duplicate of this question. Basically, the tutorial you are following seems to have a typo and some bad quotes. Change your virtual host configuration to say:
<Directory "C:/wamp/www/python">
Options ExecCGI
AddHandler wsgi-script.py
Order allow,deny
Allow from all
</Directory>
(Notice the straight quotes around your directory name and the space I removed from the AddHandler line)
Once you have fixed this, is your WAMP still staying yellow when you include the LoadModule wsgi_module modules/mod_wsgi.so line?
Related
I'd like to run CakePHP on WAMP but without having to run bin\cake server or use the default port :8765 but I am struggling to figure out how.
I tried changing apache httpd.conf to
DocumentRoot "c:/wamp/www/dev/cakephp3/tradeshows/webroot"
Which is what I took away from http://book.cakephp.org/3.0/en/installation.html#production
But it doesn't work still.
http://localhost does show the CakePHP landing page, but when I try going to http://localhost/events I'm getting:
Not Found
The requested URL /events was not found on this server.
If I go to http://localhost:8765/events and do bin\cake server then it works perfectly.
How can I make it so that I don't have to run bin\cake server to work correctly? I'm just trying to make a simple database for me and my coworker to use on our computers to put in tradeshow information.
Following the tutorial here I was able to get it working, first time I tried I was editing the wrong config file:
Open C:\wamp\bin\apache\apache2.4.9\httpd.conf
Edit the part <Directory /> to read:
<Directory />
Options FollowSymLinks
AllowOverride All
# Order deny,allow
# Deny from all
</Directory>
Then also had to uncomment the line:
LoadModule rewrite_module modules/mod_rewrite.so
Which is different slightly than what's in the link but still did the job.
I installed last night wamp on my win 7 laptop and started creating a small framework for my projects,
But when I firstly added the RewriteEngine on,it just wasn't working. So I checked to see if the module was on, After I edited the conf file and restarted the server and also checked on apache mods under wamp menu, i confirmed that it was on. So i try to check the page again and I still get an internal server error. So i check the conf file again to check directories permission settup and it seems fine.
So then I go go the error logs and I find Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration. I checked if the .so file actually exist. I dont know what else to try, please help me before i go nuts.
<Directory >
AllowOverride none
Require all denied
</Directory>
<Directory "c:/wamp/www/">
AllowOverride All
Allow From All
Require all granted
</Directory>
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
Since it didn't make sense to me why the RewriteEngine wasn't working (code wise). I suspect there was something wrong with my Wamp installation (it would work in the background even after I close it) even though it was a fresh installation. So I decided to re-install the Wamp server, change the Apache conf file and everything is working fine now.
After lots of search and new things learned as trying to solve my issue, I have to ask skilled people some advices !
I setup Wamp 2.5 32bits on my Win 7 x64, thats comes withe Apache 2.4.9 and Php 5.5.12
As I need to work on several websites I set Virtualhosts that are working pretty well. Each time I'm going back to those Apache and Php versions it's working, but sadly my website isn't running with these latests versions.
One of my website is running on Apache 2.2.22_vc6_32bits and Php 5.2.17, and I'm having trouble after setting up those as Wamp stay on orange status.
The full troubleshooting document on Wamp forum is telling (httpd -t cmd) my problem is a syntax error on line 22 of "[...]wamp/alias/phpsysinfo.conf :
The specified IP address is invalid."
Windows event viewer says same.
I can't find how to ride off that issue, and I think not understanding everything, so here is my phpsysinfo.conf :
Alias /phpsysinfo "E:/Workingspace/wamp/apps/phpsysinfo3.1.12/"
# to give access to phpmyadmin from outside
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#
<Directory "E:/Workingspace/wamp/apps/phpsysinfo3.1.12/">
Options Indexes FollowSymLinks
AllowOverride all
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</IfDefine>
</Directory>
Wamp soft > Apache > Services > Test port 80 tells "Your port 80 isn't currently in use".
Services.msc > wampmysqld is running
Services.msc > wampapache isn't running, and if we try to start there an error message "....could not start on local computer, review Win event viewer. If this is a non Microsoft service contact... refer to service specific error code 1"
I'm fed up with all that and thanks anyone who will help me in anyway
Thanks
Apache 2.2.22 may not have been IPV6 aware, I cannot actually remember the version that first became IPV6 aware. Either that or you have set Apache to only listen on IPV4 in the httpd.conf file.
Anyway try removing the ::1 from this line so it looks like this
Allow from localhost 127.0.0.1
You may have to do this for all the Alias config files.
As It turned out not working as well I decided to switch all the way to succeed. I uninstalled Wamp 2.5 to get only the Wamp 2.2d wich is having the good apache version so it doesn't mess up ! Thanks anyway for the hand !
My website directory /manual shows Apache HTTP Server Version 2.2 Documentation page i have removed this directory from my FTP but still o a, getting this.
I am using Linux Centos bellow is my manual.conf file configuration
There is a manual.conf which shows bellow configurations
#
# This configuration file allows the manual to be accessed at
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"
<Directory "/var/www/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
You may need to remove that link from your server configuration. If you have done this you need also to restart your apache server.
To remove the documentation look into your apache configuration (on Debian e.g. /etc/apache2/sites-enabled/000-default) for a block like this one here:
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
...
</Directory>
And comment them with # out. Than don't forget to restart the apache server to commit the changes.
After your update you seems to have two options:
Delete the whole file. That should remove the link for ever.
Comment all that lines out by adding a # to the beginning of all lines. This is for some cases better if you want to recover the manual in the future.
And restart the server with:
service httpd graceful
In fedora
dnf remove httpd-manual.noarch
service httpd restart
If you still have this behaviour and want to correct it just disable the apache2-doc conf and restart the apache2 service. a2disconf apache2-doc.
I want to install bugzilla against the apache server that installed with collabnet edge. I've already gotten everything installed, my problem is that I can't figure out which httpd.conf file i need to edit. Collabnet Edge has about 5 conf files, all these files are autogenerated and warn "DO NOT EDIT" in the first line.
Does anyone know how I can do this? if not is it possible to install another [instance]? of apache?
ps: Also this is on windows 2008 server, with IIS shut off.
pps: Also, I am open to the idea of moving my repo to another svn server/issue tracker. as long as it's free and runs on server2008. I just have past experience with bugzilla (as a developer/enduser).
Any thoughts would be appreciated
Yes. It is. First, do not touch any files in the collabnet apache server install. I went ahead and installed a separate installed a separate instance of Apache, which I bound to an non-standard port. I had to add an alias line to the new apache to create Bugzilla as a folder under my main site
NameVirtualHost xxx.xxx.xxx.local
<VirtualHost
xxx.xxx.scgov.local>
ServerName xxx.xxx.xxx.local
DocumentRoot "C:/Apache2.2/htdocs"
</VirtualHost>
<VirtualHost
xxx.xxx.xxx.local>
ServerName xxx.xxx.xxx.local
DocumentRoot "C:/bugzilla"
</VirtualHost>
<Directory "C:\bugzilla">
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
Order allow,deny
Allow from all
</Directory>
Once this was complete I was able to follow the tutorial at https://wiki.mozilla.org/Bugzilla:Win32Install
Also make sure you install ActivePerl # C:\usr if you don't you have to go in an change every *.cgi file.... read this tutorial on how to install ActivePerl to maximize portability with windows & linux http://www.ricocheting.com/how-to-install-on-windows/perl