Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about server.c in pset6.
5
votes
Accepted
PSET 6 Keeps Stopping Server
The Stopping server message comes from the stop() function defined here:
/**
* Stop server, deallocating any resources.
*/
void stop(void)
{
// preserve errno across this function's library calls … = NULL)
{
free(root);
}
// close server socket
if (sfd ! …
2
votes
Accepted
How to stop server?
The error message:
server: no process found
should be self-explanatory. You're trying to kill a process that is not running.
That's because the Apache2 server daemon process is not called server. … The command you are using will only kill the server binary that you wrote in Problem Set 6. …
0
votes
Segementation Issue in Pset 6
Where is tempStr declared? I'd like to see that line of code as well. There may be a typo there.
0
votes
PSET6 Cannot Run Staff implementation from IDE
/server
or like this:
cd /home/cs50
./pset6/server
or even like this:
cd /home/ubuntu
../cs50/pset6/server
When you type server by itself on a line, instead of . … /server (assuming that your working directory is /home/cs50/pset6) the shell looks for the server command in all the directories on your $PATH. …
4
votes
Accepted
PSET7: web server permissions problem
403 Forbidden / permissions / chmod: the Definitive Guide
TL;DR:
PHP files and config.json need to be set to chmod 640 despite what it says in the Problem Specification.
Hope this helps!