Hot answers tagged

2

The way to import a software collection into your current shell (not launch a sub-shell) is to source the "enable" file. For example for rh-php56 on a Redhat 7 machine... source /opt/rh/rh-php56/enable You can now run "php", or read manpages "man php" as normal. that will add the appropriate environment variables to the current shells environment. ...


2

This is happened to me also. The thing is that amazon is trying to install php/mysql of older versions . you need to specify which version you need to install. to install php-mysql for php 5.6 issue this command. sudo yum -y install php56-mysqlnd You can install older versions if you want to.


1

at first - unlimited everything is bussiness bullshit, it cannot be technically done. It works on principe "average customer takes 5GB of storage, top usage is 12GB, so we will calculate our storage to 15GB per customer". Shared hosting is cheap variant for small websites. You have just FTP and Database access, you cannot configure anything on server (or in ...


1

At first try something like this. It deletes(d) the text between the two patterns (delimited by slashes): sed '/<?php $ldtxxk/,/?>/d' file_with_injected_code.php If the output looks good, you can insert a "-i" so that the content of the file gets replaced: sed '/<?php $ldtxxk/,/?>/d' file_with_injected_code.php Then you can combine the sed ...


1

Not really. When a php-fpm child is executing a code referring to an external URL, and that URL doesn't answer [in time], the code blocks for some configured timeout (for example curl connect timeout), so the child blocks and waits too, unable to serve the php-fpm socket. When all the children enter that state, you get a 504 status on your site. By the way, ...


1

To install the extensionpcntl for apache: cd path/to/php/ext/pcntl/ phpize && ./configure && make install echo "extension=pcntl.so" >> /path/to/php.ini apachectl restart Checking if everything is ok. php -m | grep pcntl The outpout must be pcntl.


1

I had the same error for PHP 7.0.3 on a 2012 R2 server with IIS 8.5. The solution is to install: Visual C++ Redistributable for Visual Studio 2015 32bits Everything worked properly after installing this.



Only top voted, non community-wiki answers of a minimum length are eligible