1

I can't even get started on Pset7 because killall isn't stopping the pset6 server - which is working just fine, can I say. When I run "killall -9 server" from ~/workspace/pset7/public/ I get the response: server: no process found but when I open my public directory Pset 6 comes up and that cat still appears when I click on cat.html terminal screen

webpage

  • And phpadmin tells me there's a mysqli extension is missing – Chris Appleby Sep 14 '16 at 6:21
0

First of all, congratulations on finishing server.c!

Try ps -awux | grep server to see if there is a server process running. If there is, it will return a line that starts with the process number. Let's say that the process number turns out to be 42. Then you can kill the process with kill -9 42.

For example:

~/workspace/ $ ps -awux |grep server
[The first line will be very long and contain personally identifying information, so I snipped it here]
ubuntu      1785  0.0  0.0   7448   884 pts/1    S+   11:02   0:00 ./server public/
ubuntu      2018  0.0  0.0  10556  1568 pts/3    S+   11:02   0:00 grep --color=auto server

In this example, the process number is 1785, so the command will be:

kill -9 1785

Another possibility is that the zombie server process which needs to be killed is really an apache2 process. If this is the case, killall -9 apache2 may be helpful.

EDIT: I always neglect to mention (and @DinoCoderSaurus never fails to remind me!) that this problem is most often caused because you are viewing an old version of this URL which is stuck in your browser's cache. If that's the case, Ctrl-F5 will bypass the cached version and reload the resource via HTTPS.

EDIT2: as for your problem with phpMyAdmin, the best advice I can offer is here.

| improve this answer | |
  • OK, the server has now stopped but I now get this message: Forbidden ... Apache/2.4.7 (Ubuntu) Server at ide50-applebyoz.cs50.io Port 443 I've set all the permissions correctly: pset7/public/ $ ls -la drwxr-xr-x 6 ubuntu 4096 Oct 31 2015 ./ drwxr-xr-x 2 ubuntu 4096 Oct 26 2015 css/ drwxr-xr-x 2 ubuntu 4096 Oct 26 2015 fonts/ drwxr-xr-x 2 ubuntu 4096 Oct 26 2015 img/ -rw-r--r-- 1 ubuntu 152 Oct 26 2015 index.php drwxr-xr-x 2 ubuntu 4096 Oct 26 2015 js/ -rw-r--r-- 1 ubuntu 1450 Oct 30 2015 login.php -rw-r--r-- 1 ubuntu 164 Oct 26 2015 logout.php Same for subdirectories. – Chris Appleby Sep 15 '16 at 3:06
  • Your permissions are not correct. Please read this. Also, be sure that you look in the Apache2 error log (~/lib/apache2/log/error.log) for more information on exactly what is wrong. My guess is that you need to set the permissions on one or more of the parent directories to chmod 711. – hotwebmatter Sep 15 '16 at 10:41
  • 1
    Thanks. I thought there must have been something wrong with the permissions. – Chris Appleby Sep 16 '16 at 3:11
  • You're welcome. If you have resolved these issues, please mark the question as answered by clicking the green check mark. Otherwise, it will become a Zombie Question and haunt the forums forever! – hotwebmatter Sep 16 '16 at 10:35
  • Also, I did manage to get phpMyAdmin working with version 71 of the CS50 IDE. Here's how. Let me know if that works for you, or if you are still stuck ... but please comment on the other question, not this one. Let's try to stay on-topic in the comment threads! – hotwebmatter Sep 16 '16 at 10:37
1

ctrl-F5 in the browser will reload the correct web page.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .