Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

AHHH! I hate Apache!

Name: Anonymous 2010-06-13 23:04

Ok, So today, I tried to install a brand new installment of PHP 5 on my windows apache 2.2 - Of course, no matter how many times I edited the config files, and php.ini NOTHING CHANGED.

I decided to reset the server, and the server refused to reset until I got rid of all the changes I have made..

I then decided PHP was for losers (I was only going to use it for a few commands), and decided to install mod_python.. The reason I got apache in the first place. Same problem. No matter what I keep doing, it always fucks up!

I add LoadModule python_module modules/mod_python.so, like I'm supposed to.. It doesn't work.

I add this:
   SetHandler mod_python
   PythonHandler mod_python.publisher
   PythonDebug On


And still nothing fucking happens. I have added every single command just to get apache to run a .py file, and nothing works. Please help me /prog/.. Or ridicule me, either one.

Name: Anonymous 2010-06-13 23:06

And yes, I did add this line:
AddHandler mod_python .py

Made sure each one was in the right directory too.

Name: Anonymous 2010-06-13 23:07

i like cats

Name: OP 2010-06-13 23:08

Counter aging >>3

Name: Anonymous 2010-06-13 23:11

>>4
Why would you want to do that?

Name: OP 2010-06-13 23:13

Because I would like to understand why my Apache installation refuses to be modified.

Name: Anonymous 2010-06-13 23:16

I tried to install a brand new installment of PHP 5
Now you have two problems.

Name: Anonymous 2010-06-13 23:19

>>4
Fucking dipshit.

Name: OP 2010-06-13 23:19

>>7

I installed PHP simply as a test language. I wasn't actually going to use it, since I was already going to install python.

Besides, I uninstalled PHP anyway, I'm working on getting mod_python to work.

Name: Anonymous 2010-06-13 23:22

Well, if I were you I'd try to ...
Windows
... wait, what

Name: OP 2010-06-13 23:25

>>10

Yep, running it on windows. I would like to use linux, but I don't want to go through the trouble of backing up all my shit. Plus the computer I'm running on is too slow to run a decent linux distro. I have tried using "Damn Small Linux" which makes my piece of crap run extremely fast, but it's not something I would use as a permanent OS.

Name: Anonymous 2010-06-13 23:28

>>1
Look, if you're not even going to tell us what happened, why bother posting this?  How do you expect anyone to help you?  ``I did everything right and now something is wrong!''  Well obviously you fucking didn't.

And what the hell does this have to do with /prog/ramming?  God I am so trolled right now.

Name: Anonymous 2010-06-13 23:31

>>11
Plus the computer I'm running on is too slow to run a decent linux distro.
Durr.
You're either a troll or a complete idiot. Either way, you don't deserve any help.

Name: Anonymous 2010-06-13 23:33

please keep making threads OP

Name: Anonymous 2010-06-13 23:36

>>13
To be perfectly fair, it's entirely possible he's both, too.

Name: OP 2010-06-13 23:38

>>12
I thought I explained it perfectly clear, but if you do not understand it let me explain it again.

I installed apache 2.2 + mod_python and ran it with python 2.4

I followed a lot of websites and documentations that explained how to install mod_python. I have the actual module itself in the modules folder, and I have a command linking the module in httpd.conf. However, my apache installation refuses to check my conf file. After comparing my file with various other files, I have found no mistakes, yet the server still will not execute python files, or even acknowledge them.

If I try and reset my server, it will claim there is an error. After replacing the .conf file with the default one in the backup folder, the problem is fixed.

So basically: I can not run python files with my .conf file, and apache refuses to actually read any changes I have made with .conf (even something harmless - like uncommenting a command)

Also: How is this not related to programming? I am asking for help trying to get python - a programming language, to execute on a web server - using a module designed for web programming mod_python

Name: Anonymous 2010-06-13 23:39

>>10
I run a Apache2.2 server on one of my old Windows machines.
After spending an afternoon reading the fucking manual and filling httpd.conf with tearful comments, I have never encountered any problems not attributed to it being an old piece of junk.
Of course, it's for personal use and I wouldn't dream of doing it in an ENTERPRISE environment.  Getting stuff to work properly is too much of a pain.

Name: Anonymous 2010-06-13 23:41

Name: OP 2010-06-13 23:43

>>18

You think I haven't thought of that?

I've been using this guide the most:
http://webpython.codepoint.net/mod_python_publisher_apache_configuration

And I have seen a few others, but they all say the same thing, and that same thing isn't working for me.

Name: Anonymous 2010-06-13 23:58

>>16
If I try and reset my server, it will claim there is an error. After replacing the .conf file with the default one in the backup folder, the problem is fixed.
So you want /prog/ to hack into your computer and read the error message to you, because you're too dumb to read it yourself?  Why didn't you just ask?

Name: Anonymous 2010-06-14 0:08

>>16
Also: How is this not related to programming? I am asking for help trying to get python - a programming language, to execute on a web server - using a module designed for web programming mod_python
You're trying to get some module working on some web server. The fact that it's a module for executing code doesn't have much to do with anything. It's a generic tech support question that isn't related to programming in the slightest.

Name: Anonymous 2010-06-14 1:03

just use mod_wsgi like everyone else.

Name: Anonymous 2010-06-15 2:16

nginx baby

Name: Anonymous 2010-06-15 4:42

>>11
If have USB sticks, you can always try liveUSB distros, some are quite fine.

also i dont think you need apache if you just want to play with Python, just invoke python directly.

Name: Anonymous 2010-06-15 4:45

>>1
LoadModule python_module modules/mod_python.so

.so is shared object and that is the unix equivelent of DLL, are you sure apache uses .so? Maybe you need a DLL file.

Name: Anonymous 2010-06-15 4:46

>>25
AHHH! I hate forgeting my sage!

Name: Anonymous 2010-06-15 8:20

>>25
Don't help him!

Don't change these.
Name: Email:
Entire Thread Thread List