Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php5]

The tag has no usage guidance.

0
votes
1answer
58 views

I've been seeing a lot of this in my Apache access log

14.210.192.182 - - [01/May/2019:04:43:14 -0500] "GET /user.php?act=login HTTP/1.1" 302 233 "554fcae493e564ee0dc75bdf2ebf94caads|a:2:{s:3:\"num\";s:288:\"*/ union select 1,0x272f2a,3,4,5,6,7,8,...
1
vote
1answer
37 views

How to get php-cgi with phpbrew (PHP5.3.x)

I installed php-5.6.40 php-7.1.14 with phpbrew and I've got php-cgi binaries on these both version. I used this command for get php-cgi 5.6.40 phpbrew install 5.6.40 +default+fpm+mysql+sqlite+mb+...
0
votes
0answers
50 views

unable to load oci8 extension to compiled php

I compiled php-5.6.36: ./configure \ --prefix=/opt/php/php-5.6.39 \ --with-config-file-path=/opt/php-5.6.39/etc \ --enable-shared \ --enable-mbstring \ --with-curl \ --with-gd \ --with-zlib \ --...
0
votes
1answer
54 views

How to connect PHP 5.6 to SQL db after compilation

I installed PHP 5.6 from source on Debian server 9 server. The OpenSSL version in Debian 9 is too new for PHP 5.6, so I had to compile an older version in /opt/openssl to use it with PHP 5.6. ( ...
0
votes
1answer
399 views

Checking for freetype2 configure error when installing PHP 5.6.37 from AUR

I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error: checking for freetype2... configure: ...
0
votes
0answers
78 views

Trouble to install php56 in Manjaro

I'm having trouble to install php56 on manjaro. The output doesn't say much or doesn't give any relevant hint of the problem. It only say that failure occured in check(). Generating phar.php ...
0
votes
1answer
1k views

How to kill stuck php-fpm processes

I have a production server, where I am not able to kill php-fpm processes. I am not able to kill any of the following process with kill -9. service php-fpm start,keeps on running, but doesnt give ...
0
votes
1answer
1k views

Not able to install php5-mysql or php5-mysqlnd

I'm using Debian Jessie inside a docker container docker run --entrypoint /bin/bash -i -t php:5-apache. Unfortunately, I am not able to install php5-mysql or php5-mysqlnd . I did the following steps: ...
0
votes
1answer
694 views

Can't compile PHP 5.6 in Debian 8

I want to install PHP 5.6 in Debian Jessie and I'm following the procedures listed in this page (the server is using ISPConfig and I want to add this PHP version to the list of PHP versions available)....
0
votes
2answers
285 views

Running a php file from init

I am trying to run a php script from init.d in centos 6.9, when I exit the terminal from which I started the service the application stops, and always the status of the application shows as stopped, ...
1
vote
3answers
994 views

Yum install php v5.4 packages while I have installed php 7

I have installed PHP version 7 on my centOs. Now I got an error says: undefined function mb_internal_encoding() So I decided to install php-mbstring (using yum install php-mbstring) but I face ...
2
votes
2answers
5k views

How to Install the PHP SSH2 Extension on Ubuntu 14.04 running PHP 5.6?

I run sudo apt-get install libssh2-1-dev libssh2-php I get: Reading package lists... Done Building dependency tree Reading state information... Done libssh2-php is already the newest version. libssh2-...
0
votes
1answer
1k views

Allow user to run PHP-FPM without password using sudoers

I'm trying to make it so a user can reload PHP-FPM without needing a password everytime. I've added the following to the /etc/sudoers file using pkexec visudo, and there are no syntax errors, but it ...
8
votes
2answers
24k views

Installing PHP 5.3 on Debian Stretch (9)

I'm migrating a very old server (Debian etch) to Debian Stretch and every single app developed has PHP issues, it was expected. Some can be fixed, some can not (as several drupal 6 sites). In the ...
0
votes
1answer
274 views

PHP PDO class not found even it's enabled under Apache2

I am working on small Debian 8 based server. For some reason (which I'm trying to investigate) PDO PHP extension stopped functioning loading when working as Apache module. If I run PHP CLI all works ...
2
votes
1answer
5k views

Zabbix install PHP 7 PHP 5.6 conflict on Centos7

I am attempting to install Zabbix 3.2 on Centos7 running PHP7. Link to the walkthrough The command: yum -y install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent The output: Loaded ...
0
votes
2answers
467 views

Apache won't start

I'm using CentOS 7 and I migrated website from php4 to php5 and I have in configuration file of Apache this between virtualhost: Options Indexes FollowSymLinks MultiViews AllowOverride all Order ...
1
vote
2answers
330 views

One PhpMyAdmin per virtualhost

I am relative new and learning about linux servers. I just played with them years ago. I have configured Apache2, Php5, MySQL, PhpMyAdmin, etc. on a Raspberry using Raspbian (Debian dist). I just ...
2
votes
1answer
482 views

apt-get remove php5 without installing apache2

How can I uninstall/purge php5 without reinstalling apache2? I have removed apache2 and now I want to remove php5, but the system wants me to reinstall apache2 to uninstall php5. Why? # aptitude why ...
0
votes
2answers
2k views

How to install multiple versions of php on redhat

We have a legacy web application running php 5.4.10 and another application running the latest version of php ver 7.1 We would like to host both of these applications using apache on one instance of ...
6
votes
2answers
1k views

Strange telnet client behavior when not specifying a port

On Debian Jessie, using php5.6 and telnet version: $ dpkg -l | grep telnet ii telnet 0.17-36 amd64 The telnet client I have written a php script ...
1
vote
1answer
4k views

Issues with apt-get update command

When I try to run the command sudo apt-get update I get the following: Ign http://security.debian.org jessie/updates InRelease Ign http://security.debian.org jessie/updates Release.gpg ...
0
votes
1answer
27 views

Passwords in a LAMP installation on Debian

In a locally installed a LAMP stack, where are the passwords stored? If there is more than one, I only have the MySQL password from the previous installation, but the new one uses the same. Don't PHP5 ...
2
votes
2answers
9k views

How to Upgrade PHP from 5.4.16 to >= PHP 5.6.5 / PHP 7 on Centos 7?

I am using centos 7 and it came with php 5.4.16. Now i have to install moodle moodle 3.2 which requires at least PHP 5.6.5. I tried installing php from remi and IUS repositories but no luck. All i ...
15
votes
4answers
9k views

Unix system(“unzip archive.zip”) Extracting Zip Files Silently

How do I silently extract files, without displaying status?
0
votes
1answer
105 views

high load average on KVM VM web servers

I have a server with KVM libvirt and OVS. Debian 8.6. I am currently running 2 web servers with installed nginx+php5-fpm on VM . HAProxy is used to balance requests and installed on KVM virtual ...
1
vote
0answers
641 views

How to install php-solr extension on Centos 6.6

I'm trying to install and configure the Moodle Global Search through Apache Solr. To install Moodle 3.1, I have to add an additional repository (REMI) to replace php (3 I think) packages by php 5.6 ...
1
vote
2answers
741 views

Upgrading curl but 'openSUSE-12.3-Update-Non-Oss' appears to be outdated

My webserver is running a Magento 1.8.1.0 that uses php-curl under the hood. It runs openSUSE 12.3 and: PHP 5.3.17 Apache 2.2.29 mysql Ver 14.14 Distrib 5.5.33 OpenSSL 1.0.1j The curl version ...
1
vote
1answer
2k views

Apache2 Failed to start after installing php5 alonside php7 on Ubuntu 16.04

I am running Apache2 with php7 on Ubuntu 16.04. But alongside this, I had installed php5. After installation of php5 I executed sudo a2enmod php5.6 Then I restarted apache2 with sudo service apache2 ...
0
votes
1answer
434 views

If I put a path after `.php`, the script is not found

On my Debian "testing" system after installing Moodle the request to http://localhost/moodle/theme/image.php/clean/core/1473903261/req returns Not Found The requested URL /moodle/theme/image.php/...
0
votes
1answer
576 views

Compiling PHP with apache mod_php on Linux

I need to compile PHP with apache module on Kubuntu. I have installed both apache2 and apache2-dev. But I am unable to locate apxs2 nor apxs. $ uname -a Linux hppavilion 4.4.0-21-generic #37-Ubuntu ...
2
votes
2answers
275 views

PHP5.5 or PHP5.6 Availability for CentOS 7

Is php5.5 or php5.6 Available for CentOS 7?
1
vote
1answer
484 views

How to make a text file readable for only a local PHP file on server — not to everyone on web?

I have a PHP script that takes some sensitive data, hashes it, and then compares it against hashes in a text file on the server. Both the text file containing hashes and the PHP script are located in ...
0
votes
3answers
4k views

Apache shows Blank page for PHP

I've installed a fresh version of Centos 7, I'm new to Linux. I installed Apache using yum -y install httpd and I can open the test page and everything is ok with it. after that I installed PHP(5.4....
1
vote
1answer
610 views

mongo.so working fine with php apache ini but not with php cli

I added the mongo.so extension to /etc/php5/apache2/php.ini and it is loading perfectly in php info. But it does not work with /etc/php5/cli/php.ini. When I try to run composer for adding mongodb ...
-1
votes
1answer
735 views

Updating extensions after PHP upgrade on CentOS 5.6

I'm completely new to pecl, yum, rpm, packages and all the stuff required to get this done, so I'm hoping some of you smarter more experienced people can help me out. I only have a vague notion of ...
0
votes
0answers
1k views

How to install laravel on xampp?

I'm using the latest version of manjaro 64 bit and latest version of xampp. I want to install composer and laravel; I tried many solutions on stackoverflow and askubuntu. Every time I see a different ...
2
votes
0answers
291 views

Fatal error: Call to undefined function gzopen() in /etc/apache2/htdocs/sites/all/modules/smart_ip/includes/smart_ip.utility.inc on line 454

I'm using centos 6.7, http 2.4.17, mysql 5.1, php 5.5.30. web page is working fine but at bottom it is giving below error. Fatal error: Call to undefined function gzopen() in /etc/apache2/htdocs/...
1
vote
1answer
6k views

Restart Apache after PHP update?

One of our Amazon Linux servers has php56 installed, which is not the default PHP installation. Quite often I see updates for this package, while on other server PHP is not updated. Do I need to ...
1
vote
1answer
104 views

Verify how command was executed

I run few PHP webpages with NGINX and PHP-FPM. Recently I hosted site for friend who had security issues with WordPress, did all upgrades, WP and Plugins. But somehow I found out today that user ...
3
votes
1answer
8k views

Getting Minor Version Mismatch Error with Php and Mysql

I randomly started getting this error when trying to instantiate a new mysqli instance in php script: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50541 Library:...
2
votes
1answer
1k views

Replacement for php5-auth-pam to authenticate website login against local users

I am working on a login for a PHP-based website where users should be successfully logged in if they enter a valid username and password for a local account on the system. Looking around, it seems ...
3
votes
1answer
62 views

Possible mcrypt spelling error?

While attempting to start a project with Laravel, the following warning is produced multiple times: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/mcryot.so' - /...
0
votes
1answer
336 views

Centos 7 with facebook php-sdk4 - Network is unreachable

I am not sure why I am getting this error. Sometimes, it works and sometimes I get this error in the error log: Exception: Failed to connect to 1a02:1234:f000:4:face:b00c:0:1: Network is unreachable ...
2
votes
1answer
2k views

I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache

My linux distro is Arch Linux. I first noticed this error when trying to send emails using the PHP mail() function. Testing with a simple mail-test.php file with the mail() function sends the email ...
0
votes
1answer
672 views

php showing just plain text [closed]

I have installed php5 but when I tried for <html> <head> <title>PHP Test</title> </head> <body> <?php echo "Hello World"; ?> </body> &...
3
votes
3answers
6k views

Can't finish php5-cli update

I get the following error after doing sudo apt-get upgrade: Setting up php5-cli (5.5.9+dfsg-1ubuntu4.6) ... ucfr: Attempt from package php5-cli to take /etc/php5/cli/php.ini away from package php5-...
0
votes
2answers
912 views

Is there any way to install MySQL 5.1 and PHP 5.3 on Centos 7

Is there any way to install MySQL 5.1 and PHP 5.3 on Centos 7. I researched a lot but could not find any link which gives step by step procedure. Can someone please give me steps to be followed to ...
0
votes
1answer
107 views

php connect to mysql

I am using Trisquel 7.0 LTS and installed php5 and php5-mysql. All php scripts working properly.(I used to write my-learning scripts in /var/www/html/xyz.php and all is working by http://localhost/xyz....
0
votes
0answers
4k views

Where is php config and .htaccess located on Raspbian?

I am trying to change the upload limit of my owncloud installation. A raspberry pi and the Raspbian OS are powering this server. Apparently I can edit the php config or the .htaccess config but I am ...