Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Get full list of errors associated with stream_socket_client() in PHP

https://www.php.net/manual/en/function.stream-socket-client.php The PHP function stream-socket-client() gives back errors as: errno: Will be set to the system level error number if connection fails. ...
-1
votes
0answers
11 views

How do I stop “iconv_strlen(): Wrong charset” errors in a third-party PHP library from being logged? [closed]

MailMimeParser, some e-mail parsing PHP library I'm forced to use, uses MbWrapper.php. This results in occasional errors such as this being logged when broken spam e-mails arrive to my system: ...
1
vote
0answers
21 views

install php5 but keep php7

I have upgraded, built a new one, my server (Ubuntu 18.04.6) which is running PHP Version 7.2. I would like to install PHP5 and keep PHP7 and have the option to switch back and forth. Have a site that ...
0
votes
1answer
19 views

Directory index of /var/www/html/opencart is forbidden Nginx

I have install multiple php frameworks (Cakephp and Opencart) on nginx web server. Cakephp is working fine in root directory. Opencart is in subdirectory in where i am getting errors. Here is my nginx ...
1
vote
0answers
13 views

Apache with PHP-FPM intercepting errors and not displaying my friendly PHP error page output in dev environment

There is so much static around this it's hard to find an answer that actually applies, so my apologies if there is an answer for this, I just haven't been able to find it. My situation is that I want ...
-1
votes
2answers
40 views

PHP not connecting to my database on Linux? [closed]

I use mariadb as my database and phpmyadmin to access on databases web on Linux. Although I am able to connect to the database on the commandline as root but cannot check connection to the database ...
0
votes
1answer
45 views
+50

Diagnosing apache cpu / memory / process spike

I have a server running Ubuntu 18.04 which has been experiencing huge CPU spike that nearly brings Apache to a halt once or twice a day. The server runs a couple of websites - all php & mysql ...
0
votes
0answers
25 views

autoscaling php-fpm in AWS ECS

I have a t3.medium instance managed by ASG and used by ECS. My application requires approximately 25% of the capacity of this instance to operate at a minimum. will work in the standard nginx + ...
0
votes
1answer
21 views

my website is close “ HTTP ERROR 500 ”

my website is close error is " www.worldtourjourney.com is currently unable to handle this request. HTTP ERROR 500" please help me how can i resolve this error ? My website appears to be ...
-1
votes
0answers
14 views

How come PHP and other languages don't have a simple secure_unicode_string() function? [closed]

Ever since I learned about and started using Unicode, many years ago now, I've continuously encountered problems of all kinds. People bypassing word filters are the least of the problems, with text ...
0
votes
1answer
24 views

Run incoming mail through PHP script - Postfix

I have followed this answer Pipe all Postfix email for a domain to PHP script - Centos7/EC2 to direct incoming mail for a specific address to a PHP script. My aliases file entry looks like: mail-...
0
votes
0answers
21 views

Dealing with IDM (internet download manager) connections to server and rate limiting

I run a file hosting platform, and am struggling to work out how to handle IDM (internet download manager) connections. When a file is requested, I create a download token, which expires after 10 ...
1
vote
2answers
97 views

How did shared hosting providers ensure user isolation before containerization went popular?

Around 2000-2010, shared hosting was extremely popular as a cheap solution (sometimes a few $ / month, or sometimes even free for just a few MB) for people starting blogs, small websites, e.g. using ...
0
votes
0answers
41 views

How do I resolve this dependency resolution error in yum?

When I run yum update, after dependency resolution I get the following error: --> Finished Dependency Resolution Error: Package: php71w-pecl-imagick-3.4.3-1.w7.x86_64 (@webtatic) ...
0
votes
0answers
10 views

Apache file write buffering?

I have migrated a few WordPress websites from a shared hosting to a VPS. WordPress has an option of redirecting PHP errors from the regular error.log to its own debug.log file. Now I have a problem: ...
0
votes
0answers
14 views

mariadb php connection error (110)

I have a mariaDB service running on a remote server A. I have a second remote server B running httpd. Both server A and B's NAT firewall allows all traffic for port 3306 and ICMP. Server B allows port ...
0
votes
0answers
27 views

How to troubleshoot database writing process via admin-ajax.php in WordPress?

I have siteA.com (live) and siteB.com (staging) which both are identical WordPress sites sitting in a single EC2 server using Webmin with CentOS, MySQL, PHP. The issue is that when I perform the same ...
0
votes
0answers
7 views

Unable to install mbstring for php7.1 on server running multiple PHP versions

My Centos6 webserver is running php 5.6 and php 7.1 (webmin/virtualmin). I already have mbstring installed for php 5.6, but I also need it for 7.1. When I do yum install php71w-mbstring I get the ...
0
votes
1answer
836 views

How can i use two different php-fpm pools depending on url

I would also like to use 2 php-fpm pools. My directory structure looks like this: /home/test/index.php /home/test/contact.php /home/test/stats.php document root is: root /home/test; When I call the ...
0
votes
0answers
18 views

Ubuntu 16 nginx fastcgi_pass php7.0-fpm.sock

I got a wierd head-scratching problem. /etc/nginx/sites-enabled/default has fastcgi_pass unix:/run/php/php7.0-fpm.sock; but the error log refers to php7.1-fpm.sock 2020/06/10 17:44:27 [crit] 7177#...
1
vote
1answer
33 views

Error Log for Apache, PHP, and Codeigniter

In our Apache access logs, we've noticed users occasionally getting a 500 error. It is likely a database query problem within our CodeIgniter code. We can't be sure how to fix it until we see the ...
0
votes
1answer
27 views

On CentOS7: Uninstalling mariadb-server also uninstalls php-mysql package

On CentOS7: I need to upgrade MariaDB from 5.5 to 10.4 I followed this guide: https://itcloudnet.blogspot.com/2019/10/how-to-upgrade-mariadb-55-to-mariadb.html but instructions on other sites are ...
0
votes
0answers
10 views

PHP FastCGI Process Manager (FPM) on IIS

Is there a way to enable fpm-fcgi sapi on IIS? I'm aware that the default SAPI for PHP on IIS is cgi-fcgi.
0
votes
1answer
94 views

phpBB server doesnt have rights to write to cach files and store (fedora)

i am trying to make a project ive been working on called SnowBall and im using phpBB to do that but on step 2 the requirements and at the end it says cache/: Found, Unwritable files/: Found, ...
-2
votes
1answer
81 views

How much does httpd_can_network_connect being set to 1 actually open up on SELinux

I am getting the following SELinux denied lines in my log file when I attempt to redirect a user to Paypal to checkout. Would you please help me understand what it means and what exceptions I should ...
0
votes
0answers
28 views

How to install mysql extension for php 5.3?

I'm trying to get an old application running under CentOS 7.8 which only supports php 5.3. I already compiled and installed php 5.3 but I'm not able to get the mysql extension working. Here is what I ...
0
votes
0answers
32 views

bWAPP, PHP app installation in Linux, Apache, MySQL failed

I've just downloaded bWAPP (buggy web application) and install it in Linux however it didn't really worked as expected. This is the requirements of bWAPP (buggy web application) Requirements */ ...
2
votes
2answers
242 views

LAMP Stack and VPS Performance

I have a VPS (Intel Xeon CPU E5-2630 v4 @ 2.20GHz, 4 cores - 8 GB RAM - 200 GB SSD) and I am using it to host a Wordpress blog. I am using Virtualmin as a control panel, The operating system is Centos ...
-1
votes
1answer
17 views

I am getting following error while configuring office365 mail on contact us form in laravel 7. please anyone can

Swift_TransportException (554) Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process ...
0
votes
0answers
27 views

“The keys in the keyring … are ignored as the file has an unsupported filetype.” PHP7.4 Installation

Installing PHP7.4 on Debian 10, I've executed the following: sudo apt -y install lsb-release apt-transport-https ca-certificates sudo wget -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/...
0
votes
0answers
15 views

Channels current state is disconnected(laravel-websocket on ubuntu Host server)

I am working on Laravel-websocket package i got stucked on this error from quite long time. i have configure basic laravel procject along with laravel websocket package on my local ubuntu as well as ...
0
votes
0answers
16 views

Get Request: cURL error 7: couldn't connect to host

I am trying to make a GET request to a url from my wordpress installation to get the access token but I receive this error: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [...
-2
votes
0answers
13 views

php file of pages is not working with the site index.php

I copied it to apache2 /var/www/html/ecommerce and used localhost/ecommerce and found the home page with missing bits not displaying
0
votes
1answer
42 views

Elastic Beanstalk Custom Nginx conf

I'm setting up a new Amazon Linux 2/PHP/NGINX environment and I'm a little unfamiliar with Nginx since my last environment on Elastic Beanstalk was Amazon Linux/PHP/Apache. (Amazon changed the proxy ...
0
votes
1answer
29 views

How to prevent Apache2 malware execute

Is there any way to prevent to execute some unwanted malware in Apache2. One of our clients Wordpress website is hacked and there was a files like /wp-content/uploads/2020/05/U27I0x Those files ...
1
vote
0answers
20 views

PHP high I/O after a DDoS attack

I've had a large scale DDoS attack on my website. After I've enabled captcha challenge through CloudFlare and the attack stopped, PHP's I/O was still loaded at 99%, and the website was working very ...
0
votes
0answers
17 views

WebServer: Send file that is still being written

I have a long-running process that creates large files for a web application that are stored in the file system. Is there a way to deliver the download of this file via the web server (currently ...
-2
votes
1answer
42 views

a site use Linux Server take long time to load

i get this problem first time since 5 years i use same site same script without any change . i have a site xxxxxxx.com (php script) use a ip http://1.1.1.1 (example) , i use centos as OS for the ...
1
vote
2answers
39 views

Upgrading to latest PHP on production server w/CentOS 7

I'm running a production server with CentOS 7 and PHP 7.1. I'd LOVE to upgrade to PHP 7.4 but I am nervous about doing this on a production server. I am not the greatest sysadmin in the world, so I ...
1
vote
1answer
22 views

Is there some way to get PHP to log a warning/notice/error whenever a function is being called with too many parameters? [closed]

I used to have this: function whatever($foo, $bar, $foobar, $barfoo) Later, it turned into: function whatever($foo, $bar, $foobar) Still, there were some instances of code doing: whatever(1, 2, 3,...
0
votes
0answers
21 views

Shibboleth/apache REMOTE_USER not showing in PHP variable

I have an apache server with shibboleth and php configured. Application prompts for login credentials and after entering user and email in shibolleth login application ($_SERVER["REMOTE_USER"] ...
0
votes
0answers
15 views

How to best handle apt upgrade and php-fpm default pool www.conf

I currently have an Ubuntu 18.04 server with php-fpm installed. In the spirit of maintainability, instead of editing /etc/php/{version}/fpm/pool.d/www.conf I copied it and renamed it as {domain}.conf ...
0
votes
1answer
52 views

Configure NGINX Reverse Proxy in front of Apache Web Server (to enable websockets)

Upon recommendation of a member of the stackoverflow forum, I hereby ask the following question in this forum, where it apparently fits better (I'm new to this forum). What exactly I want: A ...
0
votes
0answers
19 views

PHP seems to ignore my curl.info of my php.ini

I posted the same question on StackOverflow, but someone told me that I should ask it here: https://stackoverflow.com/questions/61894424/php-seems-to-ignore-my-curl-info-of-my-php-ini. I'm using WAMP ...
0
votes
0answers
11 views

Owncloud on Raspberry Pi fails, apache2 error log says php_intl can't load, PHP CLI fails to load it, tried installing libicu64 but it didn't work

I am running an Apache server on a Raspberry Pi 4 using Raspbian Buster, with Owncloud 10.4.1 installed as a web app. When I start the server, I get the following error message on /var/log/apache2/...
0
votes
0answers
17 views

Increasing the amount of active websocket connections on Apache 2.4 (Task limits)

Currently, I am using mpm_event and I have increased the allowed amount of open files. It doesn't matter how high I set MaxRequestWorkers because of what appears to be a limit on the Apache2 process. ...
0
votes
1answer
25 views

Nginx proxy request to url specified in GET variable

I need Nginx to respond to a request like https://example.org/proxy/?url=https://othersite.com/path/file.php%%a=test123%%b=321tset or a similar method, like https://example.org/proxy/https://...
0
votes
1answer
154 views

Debian: Cannot install php7.4-curl — depends not installable

I recently upgraded from debian9 (stretch) to debian10 (buster). Which also includes upgrading to php7.4. For some reason php-curl cannot install. I run apt install php7.4-curl and the error I get ...
0
votes
0answers
19 views

Docker PHP Image / Disable 404 errors on error log

I have a docker image based on the official image php:7.3-apache. When someone accesses an invalid url like: http://myserver/non-existent-file I get a simple 404 logged on the access.log and nothing ...
0
votes
1answer
37 views

Blocking phpmyadmin from internet, allow only from lan in nginx

I'm running 2 websites on a LEMP stack with nginx configured as a reverse proxy server. I have successfully installed phpmyadmin in the root folder of one of my sites root directories. When I go to ...

1
2 3 4 5
148