New answers tagged

0

Every time I have this problem, it is because I did something like: # yum install httpd php-mysql # yum install php-fpm # systemctl start httpd Finally I remember that this is not a dependency and get it working: # yum install php # apachectl -M | grep -i php php5_module (shared) # systemctl enable httpd # systemctl restart httpd At this point I can use ...


0

The solution was to change the parameter DefaultLimitNOFILE on files /etc/systemd/user.conf and /etc/systemd/system.conf. Found on https://www.it-swarm.dev/de/linux/open-file-limit-kann-nicht-ueber-4096-erhoeht-werden-ubuntu/944917651/


0

A few ideas. Turn up the debug logging in apache. Run strace against the process.


0

It seems like you are mixing up two things. You install the geoip extension for PHP. However, $_SERVER['GEOIP_COUNTRY_CODE'] is populated by Apache mod_geoip module. Install Apache module sudo apt install -y libapache2-mod-geoip Modify the file /etc/apache2/mods-enabled/geoip.conf and remove the # in front of GeoIPDBFile - and set GeoIPENable to On: ...


0

Disabling the previous version with: sudo a2dismod php7.0 worked


0

Maybe Apache doesn't know when to use the php module? I found this apache cwiki AddHandler application/x-httpd-php .php .phtml Action application/x-httpd-php modules/libphp5.so This how I started the container: docker run --publish 9090:80 -v /tmp/project:/project kuborgh/php-5.2 /tmp/project is world read-, write- and searchable, the first index.php I ...


1

Brief answer: from Bitbucket trigger AWS CodePipeline and from CodePipeline run AWS CodeDeploy to push the code updates to the EC2 instance. Hope that helps :)


1

How would I go about restarting Apache with a PHP script while keeping correct security measures on a production server? You can't or, even if you can, you really shouldn't. ... restarting Apache requires the use of sudo or root privileges, both of which PHP don't normally have access to. Nor should it. PHP Runs "within" the Apache environment ...


0

In my case the affected module was the opcache PHP module. Solution: I noticed, that within phpinfo the "display_errors" Local value was OFF, Master value was ON. Because Master value comes from php.ini, and in /opt/php-7.1/lib/php.ini had "display_errors = Off", it means this php.ini is not loaded. Also found, that the "Loaded ...


1

php53u is the Apache module for PHP, commonly known as mod_php. It links against the stock version of httpd, and thus cannot stay installed with httpd24u, which replaces the stock httpd. IUS packages are designed to replace their stock equivalents. If you need multiple versions of PHP or Apache installed, software collections are what you are looking for. ...


0

You should be specifying the module name, e.g.: zend_extension=opcache


0

Removed compatibility issue in the end and installed PHP 7 and got it working successfully.


0

I found that the easiest way to deal with this problem was to change the path being used to save temporary information to one of my choosing, followed by setting the appropriate security permissions. To change the path used to store temporary files: Edit the php.ini for your installation (mine was located in C:\Program Files\PHP\v7.4). Located the session....


1

Likely your PHP code is vulnerable to PHP Code Injection. See link for a trivial example. As Lex Li suggests - independent review of your code is the next step.


1

The "right" way to update everything is from dependencies to the top, so the order should be : HTTP/2 and Apache, upgrading Apache will allow you to use HTTP/2, PHP have (almost) nothing to do with it. MySQL PHP to 7.3 (optional) PHP to 7.4 AFTER PHP 7.3 Apache Upgrading Apache will be the easiest part because there is not much dependencies ...


1

On two Debian 10 servers I had to add -m PEM parameter to ssh-keygen. Otherwise the key worked when I used SSH from terminal, but it didn't work in Wordpress, resulting in the same disconnect message like the one that appeared in your log. Instead, ssh-keygen -m PEM -t rsa worked without any problem. Also, I had to enable allow_url_fopen = On in PHP, ...


2

I need to install PHP from Webstatic. But why ? Sorry, but it seems webtatic is a dead project (no change since Oct 2019) and latest version is 7.2.24 (latest being 7.2.32, no 7.3 and no 7.4) so I will heartily recommend to avoid it. I need to run two PHP version in my centos 7 server. Installation of various versions simultaneously is possible using ...


0

When I had this problem, it was because in php.ini, open_basedir was set but did not allow the folder where my PHP files were. Adding the folder to open_basedir fixed the problem. I don't know why I was getting 404.0 errors. If open_basedir was not properly configured, I would expect error 403.2.


0

I realized this is not an issue with lighttpd. In fact, these superglobal variables are only populated when the POST request is submitted through a web form. To get posted files from other request, one has to read the contents from php://input like here: file_put_contents($path_to_destination_file, file_get_contents('php://input')); I don't know how this is ...


Top 50 recent answers are included