I have a problem with my nginx and php configuration. For some reason, $_SERVER[‘PHP_SELF’] is empty. I am running: Ubuntu 18.04 nginx (nginx version: nginx/1.14.0 (Ubuntu)) php (PHP 7.2.10-…
Tag: ubuntu
What is the difference between PHP and libapache2_mod_php
I’m new to system administration and while launching oho files with Apache 2 server I had to install php on my Ubuntu 16.04. I tried the basic sudo apt-get install php, which only loaded a blank page (php file). But installing libapache2_mod_php solved my problem. I want to understand the differences . Answer It’s pretty simple: Apache is WWW Server,
Enabling php ext-xml?
While trying to use Composer to create a Symfony 4 project I got the following error: I did search in php.ini for ext-xml to see if I could uncomment it in order to enable it but I did not find any mention of ext-xml. I have not searched anywhere else because I am very unsure about what I am doing.
LAMP PHP configuration
OS: Ubuntu 17.10 (Artful Aardvark) I have installed the LAMP stack and Laravel, and when I tried composer install in my Laravel application, I got the following errors. I have rechecked the files, all extensions are enabled and they are located in the /usr/lib/php/20160303 folder. Answer Sometimes the problem is the php-xml extension. Try:
Can read Data from mysql database but cant write data into the database Using PHP 5.6 on Ubuntu 16.04?
I have a PHP 5.6 project, when I run it on localhost in windows/xampp it works perfectly fine.But when I use it in ubuntu/apache it connects to the db,reads data from the db perfectly but doesnt write …
Composer uses wrong php version, but php -v shows the correct one (Ubuntu)
I’m trying to install my composer packages, but it gives me this: This package requires php >=7.0.0 but your PHP version (5.5.9) But php -v gives me this: PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )…
Failed to load native library ‘libnative-platform.so’ for Linux amd64
First off, if this belongs on Ask Ubuntu, my apologies…I’m not really sure what forum this falls under. I’m attempting to fork and build an Android project from Github using PHP and a shell script. Basically, I’m printing out some output from a shell script I wrote into a website. When you visit the page, and press some buttons, the
Failed to start The PHP 7.0 FastCGI Process Manager
i have problem with php7 when i run this command i get the error sudo systemctl status php7.0-fpm.service this output: Answer You probably must do this for me it works.
Error while compiling php – DSO missing
I compiled php7 as below sudo make throws following error /usr/bin/ld: ext/curl/.libs/interface.o: undefined reference to symbol ‘CRYPTO_set_id_callback@@OPENSSL_1.0.0’ //lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 make: *** [sapi/cli/php] Error 1 Answer it seems you’re missing configure flag –with-openssl=/path/to http://php.net/manual/en/openssl.installation.php it’s not needed for php, but it’s needed
Imagick – no decode delegate for this image format
I am trying to convert PNGs to GIF using ImageMagick on my Ubuntu server. I used a PHP code to generate it however when I ran it, I received.. PHP Fatal error: Uncaught exception ‘ImagickException’ …