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
1answer
44 views

Postfix not receiving bounce mails

I am using Postfix to only send Mails out (via my noreply mail), which works great. I would like to use my support mail, which is running on the server of my mail provider, to receive user replies and ...
0
votes
0answers
197 views

Interbase driver (Firebird) on Windows PHP

I know have so much questions about it but i don't find the right answer for that searching here and in other websites sorry but I tried all. How to install Interbase on PHP because I have that php....
0
votes
0answers
120 views

LogAnalyzer some fields does not work

I have recently installed adiscon loganalyzer on my CentOS 8 central logs database server. I managed to install it but it came out with some issues. First of all, all the fields during installation ...
0
votes
0answers
210 views

Installing composer in windows server 2008 r2

I'm getting this problem while installing composer on windows server 2008 : The Composer installer script was not successful [exit code 1]. OpenSSL failed with a 'certificate verify failed' error. ...
0
votes
0answers
61 views

Configuring server for high performance laravel app [duplicate]

Attempting to change the server config to support a larger number of concurrent users in the laravel app. Despite making a variety of changes found that the response time does not improve. Note: ...
0
votes
0answers
339 views

AWS Lightsail running slow with 6s time to first byte

I recently spun up an AWS Lightsail Ubuntu instance to install Cachet with following specs: 1 Core vCPU 1GB RAM 40GB SSD 2TB Transfer I've installed and configured Cachet (which is a very ...
0
votes
1answer
34 views

How to run updates on Ubuntu command line without upgrading PHP

I run an Ubuntu server on 16.04 using LAMP stack. I ran into an issue last week when updating using: sudo apt update Basically PHP was automatically upgraded from 7.4 to 8.0 during the upgrade &...
0
votes
1answer
238 views

Convert Apache2 configuration to nginx configuration

I have RHEL 6 with apache/httpd (v2.2) configured to handle two different path of WordPress: FOO path: /var/www/html/FOO/ BAR path: /var/www/html/BAR/ We plan to move to a new machine running RHEL 7 ...
0
votes
0answers
85 views

Difference between ps RSS memory usage and php-fpm access.log report

I'm calculating how many pm.max_children can I set on my small server. I have PHP-FPM to report how many memory need every request with this log format: access.log = /var/log/php-fpm.access.log access....
0
votes
1answer
2k views

SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

(maybe this question is suited for SO, but I don't think it's linked to my code). I'm using SQLite3 as a database engine for my Web app. I freshly deployed it on the production server, and it's not ...
0
votes
2answers
461 views

How to stop PHP service without stoping web-server service?

PHP can be stop by stopping the web-server service. e.g. # /etc/init.d/apache2 stop or # apache2ctl stop Would it be possible to stop PHP alone without disrupting apache2 service?
1
vote
1answer
153 views

Setting up Auto-restarting php daemon

I have a php script with an environment variable from Fuelphp that I run with a command like FUEL_ENV=production php oil run task however, I'd like it to run as a daemon that will automatically ...
0
votes
1answer
61 views

Solved - Postfix SMTP port Stange Activity

Hello ServerFault community, I have a Postfix and Dovecot mail server based on MySQL, I had a problem with MySQL so I had to reinstall it and thet's where the problems started happening. RoundCube ...
1
vote
0answers
114 views

Memcached crashes / spikes to 100% CPU with EC2, Nginx

I have a strange issue with PHP 7.4, Nginx, PHP-FPM and Memcached on EC2 Randomly the server will spike from 1% CPU to 100% and continue using everything it can until I reboot it. Rebooting just the ...
0
votes
1answer
98 views

configure nginx to work with django and moodle

I'm trying to configure nginx to run a moodle website in parallel to a django one and a jellyfin one. My domain name is www.example.com and I would like to set everything that ends with www.example....
0
votes
0answers
69 views

PHP memory size exhausted in drupal

FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 137612647 bytes) Already I increase 2 times in php.ini file. But again ...
0
votes
0answers
458 views

How to check AWS cloudfront traffic limit? 504 server error

I have a website that handles ticket selling which opens once a year. Many peoples come to the website at a specific date and time. However, some users received 504 Status Code (Gateway Timeout) from ...
0
votes
0answers
43 views

How to Serve Nodejs Application from sub directory with PHP Application on root?

I have php running in root directory and wants to run a microservice built with nodejs in subdirectory. I did some configurations but the css/js/images are showing 404 not found. Below the nginx ...
0
votes
1answer
557 views

Sometimes ipv4 address instead of ipv6 address

On my website, which runs with apache2 on a debian server with an aaa-record, I check with php whether the user uses IPv6 or not. For this I get the IP address of the user with the following code ...
0
votes
1answer
220 views

How does a webserver know which files to send in an HTTP/2 request?

As I understand HTTP/2 can send the website assets (images, scripts, css files, etc) over a single connection, as well as push them. I am interested in how this actually happens in practice. How does ...
0
votes
0answers
66 views

PHP 7.3 and 7.4 fail to compile on Debian 9.13 with error checking SSSE3 CPU feature

I'm working on updating a system from using PHP 7.2 to PHP 7.4, but I ran into a compiling error that I haven't seen before and I'm not entirely understanding why it isn't working. In file included ...
0
votes
1answer
145 views

Configure Nginx to serve up PHP from different locations/aliases?

I'm trying to configure nginx to serve up FreshRSS at https://myserver/rss/ rather than https://rss.myserver/. I've read the documentation and am trying to adapt the example nginx config. Currently I ...
0
votes
2answers
297 views

phpize Imagick build fails: missing functions

I am trying to install Imagick on my Debian 10 server running php 7.4 but it looks like some functions are missing from my system. I installed sudo apt install php7.4-dev PEAR Version: 1.10.12 PHP ...
0
votes
1answer
469 views

AWS SES emails going to spam

I have a domain on name.com and the website is hosted on AWS Lightsail. I have set up SES service for the emails. I am doing a curl request to my domain to send an email from the email server which is ...
0
votes
1answer
96 views

Can i disable 'Debug Build' without re-compiling PHP?

I need to disable 'Debug Build' mode in my installation of PHP. Is this possible without re-compiling PHP? (Note I am not the original server admin). Thanks
0
votes
0answers
72 views

nginx configuration to run Nodejs Admin in subfolder with PHP on root?

I am unable to run my Nodejs admin panel in subfolder. My root directory is running PHP server and I to add Node admin with port 3000 in subdirectory. The below configuration is working but css and ...
0
votes
0answers
27 views

license.php file is automatically getting created on shared hosting server

On my shared host, license.php file is automatically getting created at root folder/directory of every domain. I have find and deleted this file multiple times from everywhere. Here is the code of the ...
0
votes
0answers
241 views

Sending large amount of emails with PHPmailer and SMPT guaranteeing the emails are delivered and preventing getting blacklisted

I have been using Phpmailer + SMPT + G-suite to send 2,000 emails per day, to the registered users of our website and this worked well for a while. Now that we have more registered users, this method ...
0
votes
1answer
27 views

php shell_exec returns different results compared to terminal

I try to run shell_exec("ls -l /dev"); to list all entries in /dev and I get this list: total 0 drwxr-xr-x 2 root root 180 Oct 10 11:19 char lrwxrwxrwx 1 root root 11 Oct 10 11:19 core -&...
0
votes
0answers
183 views

PHP .htaccess issue when use https always with cross-origin allow

I have created a .htaccess file for creating some rules. Redirect user if not using https or www Allow cross-origin for one another domain with that all subdomain Disable indexes My primary domain : ...
0
votes
0answers
86 views

How to restore the error.log functionality in Apache, bitnami Wappstack?

I am using the Bitnami Wappstack 7.4.10 in windows, with PHP 7.4 and Apache 2.4.46 . By accident I made a script that had an infinite loop that also produced an error in every iteration, so the log ...
-1
votes
1answer
45 views

php core script not getting called from Crontab

I am using core PHP and written a simple script that needs to be called automatically. For testing purpose I have just written a print statement as below, $host = 'localhost'; $user = 'admin'; $pass = ...
0
votes
1answer
608 views

CentOS: convert HTML `<br>` tags to bash `\n\r` on the fly?

this is a tough question to pose and i'm not entirely sure this is the right place for it, but my question is this: how can i convert <br> tags to \n\r characters on the fly when running a PHP ...
0
votes
1answer
215 views

Centos 8 - Can't parse HTML files as PHP without a file download occuring

I'm migrating a site from a Centos 7 server to a Centos 8 server. The site has PHP code in files with a HTML extension, usually I use this in a htaccess file: RemoveHandler .html .htm AddHandler ...
0
votes
0answers
89 views

What causing this error proxy_fcgi:error] AH01071: Got error 'Primary script unknown'

I'm getting the proxy_fcgi:error] AH01071: Got error 'Primary script unknown' error very frequently. Can anyone tell me what causing this error. What I learned so far is Rewrite rule may cause this ...
0
votes
0answers
38 views

Scan files with antivirus when uploading via Apache + PHP

I have an Apache server (Ubuntu) with PHP that uploads files uploaded by users and stores them on AWS S3. Is there a way to analyze these files before sending them to S3 and informing the user?
0
votes
1answer
109 views

How to kill the php page ran via Cron if it is still executing

I don't know whether this is right place to post this, if not please bear with me. I have CRON that executes PHP page at 03:00 am. This php page, goes through several data, that it takes an average 1 ...
0
votes
0answers
15 views

Laravel websockets package connection refused? [duplicate]

I using laravel websocket package aspusher replacement. First this ubuntu was not allowing to access the port 6001 then I add Inboud securoty group rule on aws . Now it is allowing to access the port ...
-1
votes
1answer
42 views

Starting service inside shell script via PHP

So i'm looking for a way to start Plex Media Server service using PHP redirect. I basically want to start and stop the server by going to the certain URL. I'm using Apache and here's my code and ...
0
votes
0answers
826 views

Apache Error log format: how to find current format?

I am building a log parser in PHP and have trouble with apache error log format. With access log, it's easy to see the default LogFormat in apache config file then check in my virtual hosts for any ...
0
votes
0answers
25 views

Loading resources from 1 location for multiple sites (more or less resource intensive)?

Let's say I have 3 sites that access the same resources. The same images, JS/CSS files. If I make a "CDN" for these resources on the same server (different addon domain + Cloudflare), will ...
1
vote
0answers
68 views

website server starting to get traffic

I have a website that's a lot like Bitly, a short url site and it has started to gain a lot of traction lately. The website is about 100MB and the mysql database around 6GB. I run the server on a VPS ...
1
vote
0answers
60 views

PHP Curl process hitting a timeout when using Squid Proxy

I have a PHP process that running a CURL command to get the contents of a website. This works on 90% of websites that I try it on but one site in particular (the one I want to get the contents of) ...
0
votes
0answers
62 views

Disable (dot)php files from being executed (NGINX+PHP)

Question I am wondering if my configuration was executing the hacked dot files before removal. Setup Ubuntu 18.04 LTS + NGINX + PHP 7.4 Issue My Wordpress site got hacked. The malware created a copy ...
0
votes
0answers
26 views

Web site is getting redirect to white page

My web site(http://ddfacebook.com/index.php had continued to run successfully so far. But Recently it is showing a white page and I do not know the reseason for that. When calling the PHP files it ...
0
votes
0answers
46 views

Preventative config settings to ensure long-running PHP scripts don’t create hanging MySQL transactions and failure

I’d like to know if there is a PHP/MySQL configuration option (or combination of options) that can prevent long-running PHP scripts in a small number of places from creating hanging and sleeping MySQL ...
1
vote
1answer
2k views

NOTICE: Not enabling PHP 7.3 FPM by default on Apache2 but PHP-FPM is running productive

My Debian Buster server annoyes me on each upgrade with the following notice: $ sudo apt upgrade ... NOTICE: Not enabling PHP 7.3 FPM by default. NOTICE: To enable PHP 7.3 FPM in Apache2 do: NOTICE: ...
0
votes
0answers
346 views

Can't execute `pecl upgrade-all` - stream_socket_enable_crypto(): this stream does not support SSL/crypto

I tried to execute pecl upgrade-all but I get: Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto in PEAR/Proxy.php on line 105 PHP Warning: stream_socket_enable_crypto():...
0
votes
0answers
35 views

Can't install/uninstall PHP Modules

I can't install or uninstall any php modules. Is it because my php -i returns none for loaded configuraiton file? php -i | grep -i loaded Loaded Configuration File => (none) How can I solve it ...
1
vote
1answer
3k views

How to enable/disable PHP extension for PHP CLI if there is no loaded configuration file?

I just executed php -i | grep "Loaded Configuration File" to find out where the configuration file of my PHP CLI is stored, but I get: Loaded Configuration File => (none). So it loads the ...

1
3 4
5
6 7
152