varnishlog command not work in ubuntu - varnish

anyone who can help me? I use ubuntu 12 in VMware. and This command varnishlog doesn't work. When I type in 'varnishlog', the system hanging there for infinite time. 'varnish' command looks good and the configuration file is default. I also try to use sudo ahead of varnishlog, still not work.

Related

How to configure an openvpn in Ubuntu

So this is my first time asking a question on here or any forum. I've tried looking into this problem but none of the questions asked or the solutions to those questions really applied to my problem. ill try to be as specific as i can. I'm new to Linux, I've dual booted ubuntu 16.04 on my 64bit laptop. I'm trying to create and configure an openvpn and in trying to unzip "server.conf.gz" i run into this
bash: /etc/openvpn/server.confg: Permission denied
and don't know why. Please if anyone knows what i have to do please help me out, i would really appreciate it. Thank you for taking the time to read through all that.
Use sudo before the command or root user to execute that command. Your current user doesn't have permission to write in /etc/openvpn directory.
Please use:
gunzip server.conf.gz -c /etc/openvpn
or
sudo gunzip server.conf.gz -c /etc/openvpn
hope it will works.

Linux XAMPP suddenly requires 32 bit compatibility library

I have been working with linux's version of XAMPP (named LAMPP) for about 3 months now and up until tonight XAMPP has worked fine, but suddenly when I tried to run the command
sudo xampp stop
it gave me this error message:
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
and since then any time I try to run any of the following commands:
sudo xampp start
sudo xampp stop
sudo xampp restart
I get the same message
I want to know why I got this message because xampp has been working flawlessly up until now and in fact, less than 30 minutes ago, I typed sudo xampp start and xampp started up normally and I was able to access localhost/phpmyadmin/
Here is some other info that may be useful:
-My OS is Arch Linux
-I am using the xfce desktop environment
-In the time between starting xampp successfully and trying to stop xampp when I got the error message above, I was trying to get the php mail() function to work by following the steps on this page http://www.absolutelytech.com/2010/07/18/howto-send-emailsusing-mail-function-from-localhost-in-php-through-msmtp-using-gmail-account-on-linux/ and I had just successfully finished step 1 and successfully sent the test email to myself.
-also, when I first got the aforementioned error message, I was still able to access pages via localhost (for instance I had a php file at /opt/lampp/htdocs/Brown/index.php that I could access successfully by typing localhost/Brown/index.php even after I was getting the error message) but then I tried to restart my computer to see if that might fix the issue and now I can't start xampp to begin with.
Please someone help me with this and feel free to ask any follow-up questions if that will help
I figured out my own issue. For anyone who sees this question, I had made a few changes to my php.ini file in attempts to get php's mail() function to work and I wanted to start fresh, so I moved php.ini to php_old.ini and copied a file named php.ini-pre1.7.2 to php.ini thinking that php.ini-pre1.7.2 was a file containing the default configuration of php.ini in case one might want to roll back to the defaults, but instead it is something entirely different. My issue was completely fixed when I moved php_old.ini back to php.ini
2021 and the same happened to me after trying to match php.ini seetings between a Windows environment and a Ubuntu 20.04 one. Everywhere I saw it told me to comment a section in the /opt/lampp/lampp file but it messed up my installation and I lost track of what was wrong. After re-installing LAMPP I matched the settings one by one restarting with sudo opt/lampp/lampp restart at each modification. The culprit was:
browscap="C:\xampp\php\extras\browscap.ini"
This line has to be stay commented (just put a semicolon at the start of the line), if you need it then this workaround may help you. Cheers!

phpMyAdmin downloads a file when I try to open it after installing LAMP on my 12.04 LTS system

I just installed LAMP on my 12.04 LTS system, but whenever I try to run phpMyAdmin, a stranage file downloads. Anyone got a solution for such an issue?
As it seems to me, your apache could have not been started. To check is if it running you can use one the following command (in console/terminal).
pgrep apache
Any output means it is running, no output means it is not.
If it is not running, start it and then try to access phpMyAdmin again.
To start it:
[sudo] /etc/init.d/apache2 start
Where of course, sudo in brackets is optional (but I would recommend using it).
More information would be definitively appreciated. For example what kind of file is downloaded.

Installing ElasticSearch on Linux

I'm trying to install ElasticSearch on a Linux environment. I'm almost there, but I'm doing something wrong.
Basically, my issue is this: when I run bin/elasticsearch in the terminal, I can access http://localhost.com:9200 just fine and run queries. But when I end the SSH session, I get a 404 when I try to hit http://localhost.com:9200 both in my browser window and through CURL.
This is the process I used to install ElasticSearch:
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz
tar -zxvf elasticsearch-1.1.0.tar.gz
cd elasticsearch-1.1.0
bin/elasticsearch
Like I said, this works, and I can hit http://localhost.com:9200 to run queries, but only as long as the SSH session is active.
Is there something obvious I'm doing wrong? I'm a novice at command line stuff, so I'm trying to feel my way through.
From 1.0 onwards the default option launches the service in foreground
ElasticSearch Documentation http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_system_and_settings.html
Try using the "-d" option which runs the server as a daemon.

timeout --> command not found in linux server

I am using linux server from cPanel. Now I need to use one of the linux command to run. And the command is 'timeout'. My command is something as below
$timeout 2s ./myexecutable < input > output
This is just running ok in my linux machine. But I want to run it in server(linux). But it is not running out there. I saw error log using 2>$1 . and it says command not found.
So how do I specify the path. That means how can I know the exact path to run it.
I am very new to this type of server stuff, so please don't be rude :D.. whatever you know please help me to get out of it.
thank you
On Mac, you can use gtimeout from the coreutils package. To install it, run
brew install coreutils
If you need the command to be called "timeout" then you can alias it.
alias timeout="gtimeout"

Resources