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
12 views

Apache goes down when I run grep commands on SSH2 using PHP SSH2 connect

I am trying search by keyword in the whole log folder by using grep command and I am sending it through ssh2_connect from php to a remote server, when i run the script it puts down the APACHE and goes ...
0
votes
0answers
10 views

Imagemagick won't install

I'm running LEMP on a digitalocean droplet. We're running php v 7.2.19 on ubuntu 18.04.1. I'm trying to install imagemagick (apt-get install imagemagick) but am getting the error: Reading package ...
0
votes
1answer
11 views

NTLM authentication module mod_auth_ntlm_winbind for Apache2 omits domain name

I have an Apache2 instance running on Ubuntu 18.04 in local intranet and I want to configure NTLM authentication on the instance. I have installed and configured mod_auth_ntlm_winbind usage for user....
1
vote
1answer
28 views

PHP Zip can't be found

I'm running LEMP on a digitalocean droplet. We're running php v 7.2.19 on ubuntu 18.04.1. I'm trying to install php-zip (apt-get install php7.2-zip) but am getting the error: apt-get install php7....
0
votes
1answer
35 views

Accidentally gzipped every file in a folder containing website - now ungzipped but site has error 500

I accidentally gzipped every file in a folder that contains a website. The webpage are all .php files and the php pages get some information from a mysql database. I then ungzipped everything. If I go ...
1
vote
0answers
22 views

503 Service Unavailable error after PHP 7.3 was installed and PHP 7.0 removed

I have a forum that was originally running on Ubuntu 16.04.x LTS with PHP 7.0 and apache2. Recently I installed PHP 7.3 and updated the apache configuration. The system is also upgraded to Ubuntu 18....
2
votes
0answers
31 views

Downloading fails at random for our users, need help figuring out what's wrong

We have a file sharing service where users can upload, share and download their files. We are using AWS S3 to store our files. We're facing an issue where small files download fine, but when files ...
0
votes
0answers
13 views

Blocking traffic direct to backend server haproxy

I have the following problem. I have set up a reverse proxy using HaProxy. Now there are still users accessing the Backend IP Direct. And thus (unprotected) accessing the infrastructure without the ...
0
votes
0answers
12 views

Determining What Process Isn't Cleaning Semaphores

I was having the common issue of not being able to restart httpd because of a high number of locked semaphores. After clearing those and restarting httpd, I also doubled the semaphores. However, I'm ...
1
vote
0answers
16 views

PHP cURL on AWS starts returning error 0 after long uptime

We're using Ubuntu 16.04 on AWS (4.4.0-1066-aws x86_64) to send pushes to Android and iOS clients from PHP application using curl. This is the bit of code used to send a push to Firebase: $ch[$i] = ...
0
votes
0answers
44 views

Is it good practice to keep .php files out of /var/www/html or /public_html [closed]

I've read that you can put php files outside of the document root of virtual hosts and that it can prevent people from accessing the .php files as well as prevent people from being able to download ...
0
votes
0answers
24 views

CPU crypto extensions for server tenants

How can someone use the crypto extensions (hardware acceleration) provided by Intel / AMD processors in PHP? Perhaps the underlying C code uses them when available automatically? There's no info about ...
0
votes
0answers
5 views

PHP built-in server keeps returning Malformed HTTP request [migrated]

So I am currently testing a project, where someone registers their PC via HTTP requests. For some reason when I send the below request from a friends PC the built-in PHP server returns: Invalid ...
0
votes
0answers
17 views

Using a SSH tunnel to reach nginx server serving PHP via fastcgi

We're working across two sites and the only way I can reach our nginx server is via an SSH tunnel, mapping port 9097 to 443. We use this regularly and I'm confident in it. The nginx server is serving ...
0
votes
1answer
14 views

Apache random 403 errors

We are using php 5.4 and a custom php page . When there is concurrent 300 users for some of the requests it throws 403 forbidden. This page does not use db connection . The apache maxclients is set ...
0
votes
0answers
17 views

Nginx upstream can't have multiple load concurrency

client => nginx_proxy => upstream_server(nginx+php)request php curl interface nginx proxy nginx.conf user www; worker_processes 40; error_log /data/logs/nginx/error.log error; pid logs/...
0
votes
0answers
20 views

On Ubuntu 14.04 upgrade from php 5.6 to php 7.0

On an intranet Ubuntu 14.04 Server a PHP-Application is running by use of Apache2 and php5.6 (mod_php). I'm in the need to upgrade to php7.0. (I know both Trusty and PHP7.0 are outdated). I've tried ...
0
votes
0answers
41 views

How do I force a download from a link of a different origin but the same domain on a given domain? [closed]

I have a website, a.b.hotgirls.com, with a link that users will download from, c.hotgirls.com. When clicking on a link like c.hotgirls.com/pics.run, the link renders the file in a separate tab ...
0
votes
2answers
36 views

Why is the Nginx PHP Unit ignoring the root parameter in this configuration file?

I'm trying to move example.com from a multisite WordPress installation into its separate WordPress installation folder. I've already setup a separate database and created a new file wp-config.php for ...
1
vote
1answer
58 views

Upgrade PHP version from 7.2.13 to 7.2.15 in Ubuntu 16.04

I want to upgrade the PHP version in my Ubuntu instance. I run below commands. $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update Then I run; $ sudo apt-get install php7.2.15 But it ...
-1
votes
0answers
14 views

How to configure Laravel with apache2 with port number on Ubuntu?

I have Laravel API project to run with port 8000. I want to deploy this on dedicated server. After that I want to access with IP and Port number (http://123.12.32.1:8000). This is the current ...
0
votes
0answers
8 views

cron job is not working with dual php versions on same server [duplicate]

My server is centos 6. I use it primarily for websites or some software. I have webmin and virtualmin installed. Right now i have dual php versions on the server since some require 1 and others ...
1
vote
1answer
21 views

Php conflicts with older version

I used these commands: yum remove php* yum install php71u php71u-cli php71u-common php71u-gd php71u-mbstring php71u-mysqlnd php71u-pdo php71u-xml php71u-json and I installed php 7.1 After that i ...
0
votes
0answers
21 views

PHP is showing plain text while using nginx as reverse proxy

I'm trying to test my reverse proxy using php, so my steps were: 1- changed the apache config to make Listen 127.0.0.1:8080 2- made a nginx config file in conf.d/default.conf and here is my ...
0
votes
0answers
12 views

Using PHP to create a udp listening post

I have a php application that manipulates database and supplying REST API for clients, it works fine. I was asked to add it capabilities to listen to UDP port, 24/7, and use whatever is submitted ...
0
votes
0answers
21 views

Getting no response when using POST method (URGENT)

I have 3 servers svrA, svrB, and svrC. svrA and svrB need to call a web service (http://example.com/api/consoleServices) hosted in svrC. Now the issue is sometimes I am able to get the response from ...
0
votes
0answers
41 views

mysql high CPU usage

I have 2 servesr both on a LAMP stack. Two servers running almost the same PHP code. And on the second server i have troubles with loading time, where ttfb is too high, sometimes it is up to 17 sec. ...
0
votes
0answers
37 views

Very high load on nginx server and crashes occasionally

I have a active site built in Codeigniter on ngnix server with medium traffic. Occasionally the server cpu usage becomes very high and site crashes. After running top it looks like mysql is causing ...
0
votes
0answers
16 views

apache/php not getting client certificates

We wanted to use client certificates in browsers for some of our users for machine identification. I set up a CA and and signed a client certificate which I installed in chrome. Then I set the ...
0
votes
0answers
38 views

Have apache run a script before handling request

I want to have Apache run a script every time it gets a request. To be clear I want apache to serve the actual file and just have this script called right before Apache handles the request (I have my ...
0
votes
1answer
38 views

`GLIBCXX_3.4.20' not found Centos7

while starting deepstream output show like this how can i resolve this issue. I installed the latest version which is not available in yum repo by using rpm file and i can't remove this package too.....
0
votes
0answers
20 views

How to reset 2FA on the phpmyadmin software?

I have been using 2FA (2 factor authentication) to log in into the admin panel but I recently resettled my phone which has the 2FA code due to certain problems. I tried reading through the phpmyadmin ...
0
votes
1answer
34 views

PHP curl_exec failing with HTTPS

I have a wordpress site that its failing. I tracked the issue and I found that is due to curl_exec() failing with HTTPS sites. I'm running php 5.6 in a Alpine Linux v3.8 container with lighttpd. The ...
0
votes
0answers
15 views

Install php-gtk2 macos

I want to install php-gtk2 on my macOS. I'm under high sierra and I have some problem when I try to build the php-gtk extension. I'm following the instruction provided by this link but I'm not able ...
0
votes
0answers
54 views

How to debug strange HTTP/PHP server behavior (garbled text in some files)

This is a weird one. I'm administering a FreePBX server using their standard CentOS 7 based distribution running in a virtual machine. Every so often (usually a few months in between occurrences), ...
0
votes
0answers
9 views

IIS site will not load

I am running a site on my home computer with IIS 10.0. I have already set the permissions to full-control (more specifically, I set IIS_IUSRS to Full control). However, when I run the site (by right-...
0
votes
0answers
22 views

How Can I Drop Repeated Long-Running Requests with NGINX and AWS ELB?

In our environment, we have: AWS Application Load Balancer shunting HTTPS to EC2 Instances EC2 Instances running NGINX that shunt requests to either PHP-FPM or Passenger (Ruby Server) The PHP and ...
0
votes
0answers
45 views

Allow php to run shell script with sudo permission

command php -v is working when I execute simple shell_exec('./script.sh'); but when I use sudo it doesn't work without sudo service stop command is not working. var_dump(shell_exec('sudo bash ./...
0
votes
2answers
128 views

Wordpress/PHP - Uncaught Error: Call to undefined function mysql_connect()

I've installed Wordpress under ArchLinux on my VPS, configured the SQL backend and edited /usr/share/webapps/wordpress/wp-config.php. Unfortunately on trying to access pages I'm getting... 2019/06/...
0
votes
0answers
13 views

How can I investigate cases where php.exe crashes on startup in an Azure App Service with no stdout/stderr output?

I'm trying to install ImageMagick on an Azure App Service instance running WordPress. The Azure App Service is running PHP 7.3.3 x64 otherwise fine. I went to this web-page to get the right zips to ...
1
vote
1answer
35 views

What is the correct procedure to update OS and all software installed on a web server?

Thank you for those who have time to answer me. I have an Ubuntu 16 web server with Nginx (and several modules), PHPfpm, MySQL and other installed software. Hosting: DigitalOcean Droplet. I'd like to ...
1
vote
1answer
43 views

Configure Nginx to run PhalconPHP on a subfolder

I want to run a PhalconPHP application on a subfolder like this http://stg.example.org/simon/apps/phalconapp/ A snippet of my Nginx configuration is as below... location ^~ /simon/apps/phalconapp { ...
0
votes
0answers
27 views

Install Php Ldap on ubuntu with Apache

I have PHP Version 7.1.10-1 and ubuntu17.04.1 +deb.sury.org+1 using Apache. I try to install and enable php ldap using apt-get install php7.1-ldap service apache2 restart But running phpinfo i ...
0
votes
0answers
20 views

WEBSOCKETS with PHP in recent WINDOWS enviroment (IIS 10)

I'm trying to upgrade an intranet chat/messages system I've realized with ratchet [enter link description here][1] written in PHP that works fine with websockets. http://socketo.me/ The issue is ...
1
vote
0answers
67 views

Mysql has gone away error randomly

I have a web application written in php. In this app, I have a script(CLI) which is really heavy. After this script finishes its job, I get "mysql has gone away" error in my normal http request for a ...
0
votes
0answers
20 views

For some reason php7.0-fpm send data to nginx with huge delay, how find reason

I have some problems with application perfomance. Admins infiltrated between php-fpm and nginx and said that nginx get data with delay (dozens of seconds). I use PHP 7.0.23, nginx/1.12.1, FreeBSD 10....
0
votes
1answer
78 views

php-fpm: why do I have a process memory usage higher than memory_limit

I know that there are a lot of related subjects, but I did not found my answer. I have a dedicated server with 32Go of RAM (but I want php-fpm to use only 12Go max), and I have a php-fpm (7.2.13) ...
0
votes
1answer
46 views

NGINX: configure locations many root or index

I want to configure a location for the phpinfo.php file with /phpinfo and another one for phpPgAdmin with /phppgadmin. My server root directory is at /usr/share/nginx/html/, in there I got an index....
0
votes
0answers
16 views

CLI & PHP: file running successfully but not creating or updating file

Running Ubuntu web server. I have a PHP script that creates a sitemap file based on database entries. If I run the file directly, it works and creates the sitemap.xml file as expected. I'm trying to ...
0
votes
0answers
13 views

php and tpl files in Nginx showing 404

We are moving our php website from Apache to Nginx. One problem that we have not been able to fix is with passing functions in url via php or tpl files. For eg. if a url is something like this www....