I'm stuck in a hotel for a few weeks so I brought a FreeBSD box with me to tinker with. I installed Apache 2.2 on it and hooked it up through a router to my laptop. I wrote some code in C to output a simple web page and all works fine, I do this all the time, but I added some more code to the program and it crashed on Apache.
If I run the code and just print to standard output, it works great. If I copy it back to cgi-bin in Apache, it crashes. What's really strange is, if I remove the new code, it still crashes in Apache.
To make matters worse, I created another simple program to do the same simple stuff the first one did, and it worked on Apache.
Does any of this ring a bell with anyone that can point me in the right direction to solve this? I know it's not a lot to go on but I've been beating my head against the wall since yesterday.
EDIT: Now I can't even get a simple program to run. Now it prints on the screen
yet I don't read/write anything. I'm questioning whether I might have corrupted Apache on some of my tests before.
EDIT: Oh wait! Filesystem full!
If I run the code and just print to standard output, it works great. If I copy it back to cgi-bin in Apache, it crashes. What's really strange is, if I remove the new code, it still crashes in Apache.
To make matters worse, I created another simple program to do the same simple stuff the first one did, and it worked on Apache.
Does any of this ring a bell with anyone that can point me in the right direction to solve this? I know it's not a lot to go on but I've been beating my head against the wall since yesterday.
EDIT: Now I can't even get a simple program to run. Now it prints on the screen
Code:
/usr file system is full
EDIT: Oh wait! Filesystem full!