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
14
votes
2answers
2k views

Why does the command 'apt install php' try to install Apache?

I'm trying to install WordPress + LEMP on my Ubuntu 18.04. I have no interest in installing Apache. Why does the PHP installer assume I do?
0
votes
1answer
15 views

Complete server cash caused by php cli script - possible?

I have a problem that I cannot wrap my head around. One of our machines (physical dedicated server, Debian 10, nginx, mysql, PHP 7.3) is running a php application that also uses the php-cli regularly ...
0
votes
0answers
39 views

disable php warning in php.ini

how can i disabled those warnings on php 7.3 i have tried on php.ini error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED display_errors = Off also i have tested error_reporting = Off but ...
0
votes
0answers
8 views

Where is the AddHandler string for PHP INITIALLY defined on the server?

So the handler for PHP isn't working: AddHandler application/x-httpd-php .js That is not what this question is about. My question is Where is the application/x-httpd-php (or whatever it is ...
0
votes
3answers
687 views

No package sendmail available

Unfortunately, my server is unable to send email. I found the following tutorial by searching the web: https://pepipost.com/tutorials/install-sendmail-server-centos-7/ But when I enter the sudo yum ...
0
votes
0answers
18 views

OpenID Client in MediaWiki fails to load

I'm trying to set up a MediaWiki instance secured with Keycloak. I used the descriptions for the needed plugins (PluggableAuth and OpenID Connect). But when I set this up, I get an internal server ...
0
votes
0answers
141 views

nginx site shows blank page. No errors

Background I'm trying to get an nginx /php-fpm7 site up and running on an alpine linux server. Problem No errors appear when i navigate to it. Cert is good. And the in the /var/log/access.log ...
0
votes
1answer
66 views

Install php7.3-GD Error

I've tried to install php7.3-gd for centos7, i got this error Screenshot error install via repo said that require gd-last(x86-64), i am confused how to upgrade the gd version to latest version, also ...
0
votes
1answer
34 views

Docker: Trying to install PHP libraries

I am running Apache / PHP using Docker. Linux distro is Debian. I am trying to install php7.3-gd. I run command: apt-get install php7.3-gd But I get: E: Package 'php7.3-gd' has no installation ...
0
votes
1answer
303 views

Internal server error 500

I can't view my admin area and blog [19-Mar-2020 15:54:42 UTC] PHP Warning: require(/home/medicine/public_html/wp-includes/version.php): failed to open stream: No such file or directory in /home/...
0
votes
0answers
258 views

Apache too many child process - mpm_event caught SIGTERM shutting down

My Apache with ModSecurity, mod_evasive20 enabled occasionally geting crashed: These are glimpse of error log: [core:warn]**: child process 24709 still did not exit, sending a SIGTERM [core:error]**:...
0
votes
1answer
28 views

PHP logging every write on the disk

I have server with mod_php and several sites. Seems some of the sites is hacked, because random index.php appeared on other sites as well. For performance issues, I can not / do not want to switch ...
0
votes
0answers
25 views

Maximum Response Size Apache/PHP?

I am developing a web application and i am doing an ajax call. The response is an HTML table content with 1000 rows. I am getting a loading cursor only as a response. But, when the same is done with ...
0
votes
0answers
21 views

nginx - two Symfony (3 and 4) apps in different locations (first for root and specific path, second for everything else)

I'm looking for some help with nginx vhost configuration. I need to configure two applications within one vhost (same domain, different paths): A) PHP 7.1 / Symfony3 / index = app.php B) PHP 7.2 / ...
0
votes
0answers
16 views

PHP FPM sometimes idle

I have a server with NGINX 1.17.9 and PHP 7.3.15. Sometimes it's impossible to complete a request. Last 3 months, there was no problem, but last 2 days I had to restart FPM to be able to connect again....
0
votes
0answers
38 views

STDERR is undefined in php-fpm 7.3

Just caught an error trying to log into STDERR: Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) I'm running PHP 7.3.11 under Ubuntu 19.04 ...
0
votes
0answers
51 views

IIS / PHP not passing (or passing incorrect) NTLM user information

I am currently migrating PHP applications from IIS 8.0 to IIS 10.0. NTLM/Windows Authentication has been installed through Server Manager, the scripts are running on PHP7.1, are using exactly the same ...
0
votes
0answers
17 views

Apache-Balanced PHP applicaion unable to handle logins

I'm trying to load-balance Chamilo (https://chamilo.org/it/) on 2 servers via Apache. When the load balancing is active, through some refresh, I'm logged out. Through some other refresh, I'm logged in ...
0
votes
0answers
11 views

How to tune php settings on plesk?

What would be the best settings here to tune PHP? max_execution_time is e.g. default to 30 which is a bit low? What would you recommend for: memory_limit max_execution_time max_input_time Without ...
0
votes
0answers
27 views

How to replace PHP's open_basedir with IIS AppPool permissions?

For years I use the IIS Application Pool Identity to restrict access of PHP (as a FastCGI module) to certain website's folders, and for years I can't understand — why everything is accessible to the ...
2
votes
2answers
123 views

Since 10 years, did I setup my web server wrong? [closed]

Before story: We had a vserver with a domain around year 2004-2007 with apache. My father was owner and I was learning little bit from his friend (he was doing that stuff). I learned how to use linux ...
0
votes
1answer
606 views

How do I comletely remove the LAMP -Linux, Apache Mysql and php from ubuntu 18.04 installing in VM

How can I completely uninstall LAMP installed in the Ubuntu 18.04 which is running in the VM, from the code I like to remove and make completely free now.
-1
votes
1answer
47 views

Unable to login to any php system on IIS after moving to new server

My host moved to a new IIS server. My website is ASP.Net MVC based. Plus it also has wordpress and question2answer php systems under subfolders /blog and /qa. These websites are showing all pages ...
0
votes
0answers
24 views

telegram php tdlib , can not pass autorization phase

I'm learning about tdlib using php library I already builded phptdlib library and successfully run client.php following this: tdlib php library docs. Problem is that I can not get my client ...
0
votes
1answer
841 views

Unable to enable PHP-FPM on my server

I just created a server with Ubuntu 18.04 and PHP 7.3 But when I check if my server is using PHP-FPM, I realize that not. However, it is well activated. ubuntu@www-example-com:~$ sudo systemctl ...
0
votes
2answers
37 views

php.ini - Can't find the correct file to edit

I'm trying to adjust max_execution_time and memory_limit directives. phpinfo() output: Server API FPM/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php/7.0/...
0
votes
0answers
16 views

Apache logs huged filled by self server

On a virtual host, logs are filed (huge) with kind of self GET command by the localhost server... And I can't find what is generating this... Any way to find it please? I put a deny in the htaccess to ...
0
votes
0answers
144 views

phpize failed error pecl install imagick

We are trying to install the ImageMagick extension on PHP version 7.4 in our AWS ec2 Linux CentOS server using cli. ImageMagick extension was installed successfully. We used convert -version to check ...
0
votes
0answers
22 views

PHP Custom Virtual Host Error Log

I am running Apache 2.4 and PHP 7. If I set PHP error logging on in php.ini logging works to the directory I choose. I would like to set a specific file for specific site error logging per virtual ...
0
votes
1answer
758 views

ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build bfe8bf5b-8368-4db6-a64e-8272d269ed76 status: FAILURE

Hi I am trying to do a deploy, but I am always receiving this follow error: gcloud app deploy --promote File upload done. Updating service [default]...failed. ERROR: (gcloud.app.deploy) Error ...
0
votes
1answer
47 views

PHP instant server cannot be reach from outside [closed]

With php we can quickly set an instant server like the following, setup an http server at port 8080 and the root directory is in /var/www/lib/PhpSpreadsheet/samples php -S 127.0.0.1:8080 -t /var/www/...
0
votes
1answer
15 views

PHP time() around 70 seconds off

As the title suggest a server I am running is producing a timestamp created by the PHP time() function that is about 60-70 slow. The server did not have this problem and it has come out of the blue. ...
0
votes
1answer
357 views

Command line with php-fpm

How to run command line with a php-fpm? I can run : php /home/some_script.php But it runs the last version of php. I have several versions installed and configured for each virtualhost, I need to ...
0
votes
1answer
87 views

Centos 6, php 5.6 (remi repo), installed gd and freetype, still missing function imagettftext

I am trying to install composer packages in PHP but get back that: xxx requires ext-imagettftext * -> the requested PHP extension imagettftext is missing from your system. I read in several ...
0
votes
0answers
50 views

Nginx FastCGI primary script unknown when using a wildcard setup

I am trying to set up a dev stack where I can simply create a new directory and have it accessible as subdomain through nginx. I am running into the infamous 'primary script unknown' issue, and I ...
1
vote
0answers
55 views

How to isolate PHP across Wordpress Installs

TL;DR: How do you isolate php-fpm for different websites running on the same web host? I'm hosting a Dockerized deployment of Wordpress and it's going well enough that I want to host a few more ...
0
votes
0answers
37 views

Illegal string offset error on Wordpress

I am having trouble with wordpress theme editor, not saving changes, am wanting to debug before I contemplate reinstalling the site. I have plugins disabled. Cleared browser cache. Debug log throws up ...
0
votes
0answers
99 views

OLS error while loading shared libraries libargon2.so.0

I am a newbie in Openlitespeed and while configuring OpenLiteSpeed to run my wordpress website, I checked the error.log and found out this error: No request delivery notification has been received ...
0
votes
0answers
64 views

PHP with TLS-PSK

Why does PHP not support TLS-PSK and is there a way around using an unencrypted channel between PHP and a (remote) TLS-PSK server? I'm trying to configure a redundant BareOS backup arrangement. Here'...
1
vote
1answer
36 views

Mod rewrite to get ID from URL

I have the following real URL structure /folder/folder2/file1.php /folder/folder3/file2.php where file1 and file2 could be any PHP file. I also have /folder/folder2/folder4/file1.php /folder/...
-2
votes
1answer
37 views

Buy new VPS just for Mysql or upgrade current one and keep the whole stack on the same server [duplicate]

This is not a question about capacity planning, its about mysql performance over local network vs on the same virtual machine (where it needs to share cpu with other processes) I have a wordpress+...
0
votes
0answers
107 views

IIS and PHP speed differences on same server. Hug of death

I have a website that uses PHP and hosted on a IIS server that is currently experiencing the hug of death(1000+ concurrent users). The site takes about 1 minute to load a simple php web page. I also ...
1
vote
1answer
41 views

.htaccess write commands if hostname equals to

It is possible write any kind of condition (IF) in .htaccess to apply some specific actions ? #if hostname = xxx then php_flag display_errors on php_flag display_startup_errors ...
0
votes
0answers
28 views

installation of phpBB3 version 3.3 fails due to PHP cannot open a source for generating random data

i hav isssues with installing the phpbb on a server. i installed the phpBB version 3.3.0 i still get the following errors..: [Sun Feb 16 16:39:10.382324 2020] [php7:error] [pid 30171] [client 62....
0
votes
0answers
101 views

Correct permissions, ownership and group for nginx and php

I've read so many contradictions about this topic and can't find anything official in terms or best practice. I have a basic, unmodified, nginx/php install on Ubuntu with no new users created yet, ...
0
votes
3answers
309 views

Not able to send mail using postfix-sendmail and getting bounced

The emails are not being sent to email addresses with domainname.co as domain name. I have in Ubuntu system three users namely root, ubuntu & domainname. The following is the log(tail /var/log/...
0
votes
0answers
40 views

Extensionless PHP file served using nginx gets downloaded after caching

I have a core PHP based website, in order to have clean URLs without .php extensions in the URL I have made use of nginx config to serve the PHP as extensionless. But after few days I realised that ...
0
votes
1answer
54 views

php pdo comment page error [closed]

sorry for my English. My knowledge about the database is very simple. I have to come this code from a Forum. My problem, when anyone writes a comment, it shows on all Website, when I to wish that ...
0
votes
2answers
70 views

Very slow HTTP response from Azure Ubuntu VM

I'm relatively new to Azure and migrated our backend API to Azure ubuntu server. The current size of our Ubuntu VM is Standard DS2 v2 and it only has Apache2.4 installed which is running our PHP code....
0
votes
0answers
23 views

Iam using mrbs from sourceforge after login with a user Iam redirected to admin.php with white page

I installed MRBS from sourceforge on my webserver. https://www.his.edu.lb/room/web/ username: teacher password: Room@15 After login the page will redirect me to admin.php with white page while I want ...