Skip to main content

Questions tagged [php]

PHP is a widely-used general-purpose scripting language that is especially suited for Web development. Questions about programming in PHP are off-topic and should be asked on Stack Overflow.

0 votes
1 answer
5k views

Twilio Laravel "Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in CurlClient.php line 111"

Looking for some debug suggestions and/or help. I'm not very familiar with installing PHP modules or packages, and not at all familiar with curl/curl extensions. Is there a way to identify what ...
0 votes
1 answer
12 views

How to fix Apache PHP rejecting post requests which are over 40MBs

My php Laravel API when put behind apache2 (with ssl) when making a post request which is roughly 40Mbs in size, it gives a 500 internal error with following log [Wed Jul 10 21:08:51.397912 2024] [...
5 votes
1 answer
6k views

How to enhance Notepad++ to support Laravel blade syntax highlighting in a PHP file?

After looking online I cannot find any info on enhancing N++ to support syntax highlighting for Laravel's Blade syntax (*.blade.php). Example: demo.blade.php <html> <head> &...
0 votes
0 answers
19 views

Ubuntu 20.04: php lacking permissions to access /var/www/html

I'm trying to write contents to file, however I constantly receive error about lacking permission. fopen(/var/www/html/files/l.log) Failed to open stream permission denied in /var/www/html/files/file....
0 votes
1 answer
16k views

bad gateway 502: connect() to unix:/var/run/php/php8.1-fpm.sock failed in error.log

I installed php8.1 on ubuntu 18.04 but getting problems. I am getting 502 Bad Gateway error. The error.log is giving following error: 2022/06/30 17:48:38 [crit] 2224#2224: *1 connect() to unix:/var/...
0 votes
1 answer
4k views

Install imap on PHP 5.4 CentOS

My system is: Centos 6.6, Nginx 1.8.0 with php-fpm, PHP version 5.4.43, I tried installing IMAP with yum install php5-imap but package cannot be found: [root@nv-datacenter ~]# yum install php5-imap^...
0 votes
0 answers
43 views

How to adjust PHP FastCGI performance to the system resources (number of CPU cores mostly)?

We have a fairly weak server - 2 cores of Xeon Gold 6132. Until recently the server didn't have much traffic but now we added a web page that generates more traffic than usual. This is the number of ...
0 votes
1 answer
4k views

How to install Horde Webmail on Ubuntu 14.04?

Am using Ubuntu 14.04. Am stuck with the following issue: My goal is to install and have running HORDER GROUPWARE 5.2 on my Domain/Hosting: Download on Github: https:// github .com/horde/horde/...
0 votes
0 answers
71 views

How to block IPs behind a web server?

I have a service in my page (hosted behind an Oracle server) that is being attacked by specific IPs. I see this in the Apache logs: 201.17.83.xxx, 201.17.83.xxx 10.0.1.xxx - - [14/Jun/2024:10:46:58 -...
0 votes
1 answer
21 views

Ngnix returns 504 while processing another request with php-fpm

Here is a simplified version of the page that causes me great trouble: <?php passthru('dd if=/path/to/file bs=xx skip=xx count=xx | resource_intensive_command | dd bs=xx skip=xx count=xx'); ?> ...
0 votes
1 answer
2k views

Error while switching to php-5.5.17 with laragon

I am trying to configure php-5.5.17 downloaded from https://www.php.net/distributions/php-5.5.17.tar.bz2 unzipped in laragon/bin/php and switched from laragon menu to php-5.5.17. Getting this error: ...
1 vote
1 answer
77 views

ISPconfig/Nginx/wordpress to nginx proxy manager | wordpress using permalinks/postname

I am migrating my wordpress site from Ispconfig/Apache to Ispconfig/Nginx and introducing Nginx proxy manager in the mix. The problem seems to be the following: htaccess is not enabled in nginx are ...
0 votes
1 answer
4k views

Installing Zlib for PHP on Windows

How do I install Zlib for PHP under Windows?
1 vote
0 answers
97 views

how to install memcached via pecl?

I'm trying to install memcached and am having some difficulty. Here's what I tried: apt-get update apt-get install memcached libmemcached-dev libzip-dev pecl install memcached pecl install memcached ...
0 votes
1 answer
565 views

Why did /usr/bin/php did point to a new version after a reboot

I use ubuntu 20.04 with it's default PHP 7.4 I had to use PHP 7.2 to update the dependencies of an old project, so I used ppa:ondrej/php sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo ...

15 30 50 per page
1
2 3 4 5
133