Lost httpd.conf file located apache [closed]
2023-02-14
Question Closed. This question is off-topic. It is not currently accepting answers. </div> Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 years ago. Improve this question How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web Services EC2 (Elastic Compute Cloud) and I can't find my Apache config. Answer Get the path of running Apache…
nginx - nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
2023-02-14
Question All of a sudden I am getting the below nginx error * Restarting nginx * Stopping nginx nginx ...done. * Starting nginx nginx nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] still could not bind() .…
Nginx no-www to www and www to no-www
2023-02-14
Question I am using nginx on Rackspace cloud following a tutorial and having searched the net and so far can't get this sorted. I want www.mysite.example to go to mysite.example as normal in .htaccess for SEO and other reasons. My /etc/nginx/sites-available/www.example.com.vhost config: server { listen 80; server_name www.example.com example.com; root /var/www/www.example.com/web; if ($http_host != "www.example.com") { rewrite ^ http://example.com$request_uri permanent; } I have also tried server { listen 80; server_name example.…
nodejs vs node on ubuntu 12.04
2023-02-14
Question I installed nodejs on ubuntu from instructions given here When I write node --version in the terminal I see this : -bash: /usr/sbin/node: No such file or directory I can see node in the /usr/sbin/ directory, though. Writing npm --version shows 1.3.5 Writing nodejs --version shows v0.10.15 Also, I can see node in the /usr/bin/ directory. So, how do I get node working? Also, If I use zsh instead of bash, then node command works.…
Repeat command automatically in Linux
2023-02-14
Question Is it possible in Linux command line to have a command repeat every n seconds? Say, I have an import running, and I am doing ls -l to check if the file size is increasing. I would like to have a command to have this repeat automatically. Answer Watch every 5 seconds ... watch -n 5 ls -l If you wish to have visual confirmation of changes, append --differences prior to the ls command.…
Running a cron every 30 seconds
2023-02-14
Question Ok so I have a cron that I need to run every 30 seconds. Here is what I have: */30 * * * * /bin/bash -l -c 'cd /srv/last_song/releases/20120308133159 && script/rails runner -e production '\''Song.insert_latest'\''' It runs, but is this running every 30 minutes or 30 seconds? Also, I have been reading that cron might not be the best tool to use if I run it that often. Is there another better tool that I can use or install on Ubuntu 11.…
set up device for development (???????????? no permissions)
2023-02-14
Question I am using a Samsung galaxy nexus phone (Android 4.0 platform) . I am developing Android app on Ubuntu linux OS. I would like to run my application directly on the Samsung handset device, so I performed the following setup steps: in my project AndroidManifest.xml file, added android:debuggable="true" to the <application> element On the device, in the Settings > Security enabled Unknown sources On the device, in the Settings > Developer options enabled USB debugging…