Can not enable ionCube extension - php-5.5

I had download ionCube,
copy ioncube_loader_lin_5.5.so in
folder /usr/lib/php5/20121212/ and add this line to php.ini file
zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so
then I had run sudo service apache2 restart
apache run but ionCube extension is not loaded.
Where I make wrong steps?

Follow this url as solution for ionCube problem
https://www.howtoforge.com/install-ioncube-loader-for-all-php-modes-cli-cgi-fcgi-and-fpm-on-debian-wheezy

Related

How can i access the GeoLite database in nginx?

I run a Nginx proxy and want to use the GeoLite2-Country/city databases.
I followed the instructions on
"https://docs.nginx.com/nginx/admin-guide/dynamic-modules/geoip2/"
and "https://github.com/leev/ngx_http_geoip2_module".
So I have the required Nginx-module. Also I installed Libmaxminddb.
When I want to build my Docker-File I get this error:
"MMDB_open("/geoip/GeoLite2-City.mmdb") failed - Error opening the
specified MaxMind DB file in /etc/nginx/nginx.conf:17"
In the command window I can access to the Mmdb via
$ mmdblookup --file /etc/nginx/geoip/GeoIP/GeoIP2-Country.mmdb --ip 8.8.8.8
source: "https://github.com/leev/ngx_http_geoip2_module"
So the file should be accessible.. (the path is different because the nginx.conf path starts at etc/nginx.
Maybe anyone have some idea I can try or faced the same problem?
Thank you and best regards from earth!
UPDATE:
I am using "Alpine 3.13.5" && "Nginx-1.21.0"
The path in Nginx.conf needed to be a full path! Otherwise than the loaded module.

How to deploy a few wars to root tomcat?

I need a few deployed war on server and it
should look like:
localhost:8080/war1/run_app1
localhost:8080/war2/run_app2
I tried such approach:
FROM tomcat
MAINTAINER user1
#VOLUME /usr/local/tomcat/webapps
RUN ["rm", "-fr", "/usr/local/tomcat/webapps/ROOT"]
ADD /src/main/docker/run_app1.war /usr/local/tomcat/webapps/war1/
COPY /src/main/docker/run_app1.war /usr/local/tomcat/webapps/war1/ROOT.war
CMD ["catalina.sh", "run"]
But it's not working... Any idea how to implement such thing?
Its pretty simple, just rename the WAR files!
taking your .war file example:
If you want war1.war file to run as "localhost:8080/war1/run_app1" just rename it:
mv war1.war war1#run_app1.war
and copy this file to TOMCAT_DIR/webapps/
Accordingly you can change the commandline (filenames) in your docker.
Please let me know if you have any doubt or you are looking for a different solution.
Thanks,
Nishant

How to install Ngrok 2.0 on linux subsystem on Windows 10

I am trying to use Ngrok to create an introspected tunnel to localhost webhook development tool on my Linux subsystem (Powershell --> bash)
I try to install ngrok using the following:
sudo apt install ngrok-client
From what I understand the sudo command used installs ngrok v 1.6.
When I attempt to execute ngrok 80 I get an error:
Invalid address server_addr 'ngrokd.ngrok.com:443'
I searched for this in another post and was informed that ngrok v. 1.6 is obsolete and in order to continue using ngrok would be to upgrade to 2.0
Testing PayPal with Rails
It's advised to download from the website http://ngrok.com, which is simple enough, but what is the correct way to download for linux subsystem use? Should I download for Linux and unzip? Or am I suppose to download for Windows?
Let me know if I'm misunderstanding anything
I use ubuntu since years, I trust the online instructions so either do:
sudo apt-get update
sudo apt-get install ngrok-client
or try to use this instruction and let me know if you have problems
the same instructions are included hear
$ unzip /path/to/ngrok.zip
$ is just the sign from your terminal. You do not need to input $, but you need to open the terminal (ctrl+alt+t), run the unzip command to unzip the folder.
You will find the folder under your downloads. So / is the root of your machine. You need to go inside your home folder which will be /home so you do cd (change directory) followed by that path
cd /home
then you do ls to list all the directories. You should see your profile with your name username. You should be able to get in the download folder with cd <username>/Downloads where <username> should be replaced with your personal folder name
At this point you are inside the Downloads directory. You can do an ls in your terminal, find the name of the file you downloaded (should be something like ngrok-stable-linux-amd64.zip) and run
unzip <file-name.zip>
where file name is the file you downloaded (something like ngrok-stable-linux-amd64.zip) or you can go back to the root directory and run
cd /
unzip /home/<username>/Downloads/<yourfile.zip>
Read the documentation on how to use ngrok. Try it out by running it from the command line:
./ngrok help
Also I read from the documentation, that you can set up that address
There is some discussion online about this
Testing PayPal with Rails
I can help you more but I need your feedback
You can try this from the official docs.
sudo tar xvzf ~/Downloads/ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin

nginx.conf (permission to write denied). How do I fix this?

So I am trying to follow the tutorial here: https://gorails.com/deploy/ubuntu/14.04 to deploy a Rails app. When I tried to edit the nginx.conf at (/etc/nginx/nginx.conf) file, it tells me I have read only permission, even though I followed the steps(with setting the permissions) previously. How do I fix this?
you need sudo to edit that file, because it's owned by root user,
use sudo nano /etc/nginx/nginx.conf or sudo vim /etc/nginx/nginx.conf which ever editor you prefer.

phpcpd, You need to set up the project dependencies using composer install

I've just installed phpcpd globally via following command:
sudo composer global require 'sebastian/phpcpd=
my ~/composer/vendor/bin/ directory is in my $PATH variable too.
Now when I try to run phpcpd I get following error:
You need to set up the project dependencies using the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install
Any idea what I'm doing wrong here?
Thanks.
The point Sebastian didn't mention in the installation instructions is that by using Composer to globally install PHPCPD, you don't get it's dependencies installed, only the direct code. You have to go to the PHPCPD directory in the global vendor directory (i.e. the PHPCPD main folder in there, something like ...somepath/.composer/vendor/sebastian/phpcpd/) and run composer install there.
The easier way would be to just install the .phar file, but I understand this has different issues.

Resources