Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
0answers
23 views

PhpStorm with xdebug: I get error 500 if I do not step thrugh code

If I have "listen to xdebug requests" active I get error 500 unless I enable the "break at first line" setting. I put a breakpoint to some code, but do not want to step every time -_- How do I ...
1
vote
1answer
48 views

Safely perform TCP traceroute from user request

I need to perform a TCP traceroute using either the Linux traceroute or another package, but I'm struggling to find a way of making the request from PHP without needing sudo privileges. Because the ...
0
votes
0answers
9 views

How to access php-fpm from a docker container

I have locally installed nginx and a docker container (https://hub.docker.com/r/phpdockerio/php72-fpm/) But, how can i access php-fpm socket in a local nginx config? location ~ \.php$ { ...
0
votes
0answers
15 views

I want to change the default WordPress post text “comment”, to “bid” [closed]

On my posts in WordPress I want to change all the text that says "comment" to "bid". I've managed to find and change all of the instances except the one I put a box around in this image:
0
votes
1answer
43 views

Why are PHP files in CMD launching Notepad++ instead of running in the prompt?

I'm trying to run a MediaWiki script called RunJobs.php, which I have done many times before on the same system. All of sudden, today when I try to run the script in CMD on Windows 10 instead of ...
0
votes
0answers
11 views

Drupal elements missing from menu editor

I have a Drupal 7.57 installation. A user complains that some elements missing when editing articles (it has just a few basic edit buttons, not like on the picture, what I would need). Anybody can ...
1
vote
0answers
36 views

Github push from PHP webserver using shell_exec() backticks

I have a Github repository that I use via Atom.io with a client to help keep all the changes for their website synchronized. The GitHub repo contains a webhook that automatically pushes all our ...
1
vote
0answers
21 views

php prevent '`rm -rf ~/`;' [migrated]

Good day guys. The issue I am having is specifically with handling this specific input case. A part of my project I need to do is to take argument though command line into a PHP script. for eg ./...
0
votes
0answers
60 views

Why is my TCP connection attempt via PHP acting weird?

I'm not sure if this is better here or on SO but since the issue isn't in the programming I figured it applies here (or on U&L or on serverfault, but I guess/hope I'm fine on here). I want to ...
0
votes
0answers
21 views

How do I get an Expression out of a string in PHP? [migrated]

Please, how do I extract an expression from a string? For example, I have this string below: RECEIPT_NO=5001809252729&PAYMENT_CODE=500858991537884262034&MERCHANT_CODE=0350000AFT&...
0
votes
1answer
42 views

How to enable/install the php fileinfo module for php 7.2

I am running a nginx Server on ubuntu of which i am trying to install moodle. But I cant procédé with the setup because it needs the php fileinfo module enabled/or/instald. To be able to procédé with ...
0
votes
1answer
18 views

Install php trader on mac os

I am trying to install on my MAC the trader modul from PHP. I am running on PHP 7.1 Here my error: sudo pecl install trader Warning: Invalid argument supplied for foreach() in Downloader.php on ...
1
vote
0answers
32 views

What if I dont upgrade PHP5.6 to 7.x?

I manage several websites running on legacy php 5.6 and old framework codebase. The time and cost to upgrade these sites would be too much for our budget. These are front end, basic sites without ...
0
votes
0answers
18 views

Why is a PHP include file not found on Linux Apache through a symlink?

In /home/richard/public_html/tinytest.php: <?php // Note: reuse is a symlink to /home/r/reuse require("reuse/Test.php"); ?> The symlink /home/richard/public_html/reuse was made like this: <...
0
votes
1answer
24 views

Named pipe for inter-process communication [closed]

I want to use a named pipe for communication between a PHP server-script and a service, i.e. a process (a Python script) listening on the other end of the pipe. This service runs intentionally under a ...
0
votes
0answers
21 views

PHP script inside cron.hourly is not working

I want to add a cron job that runs hourly and it edits information in my SQL database. addOne.php <?php $connection=new pdo('mysql:host=HOST;dbname=DATABASE','ROOT','PASS'); $prepare=$connection-...
0
votes
0answers
20 views

Debugging PHP over VirtualBox with PHPStorm

My setup: Host: Windows 10 Guest(VM): Ubuntu 18.04 with XAMPP I work on the Windows 10 machine and edit my current project with PHPStorm. The project is mounted on the VM and is added to the httpd....
1
vote
1answer
26 views

PHP 7.0 round function and MsSQL módule

I've a Debian server that acts as web server. Recently I've needed to install the MsSQL module to use a Microsft SQL Server as source, but after install it I've noticed that php round function has ...
0
votes
0answers
15 views

Reload client browser when admin made change

I want to build web base application, like picture below. There is more than one admin , only one super admin, data will be saved on hosting and the data will display on smart TV Admin only edit and ...
0
votes
0answers
21 views

Vultr Firewall - Accept CURL requests from one IP only

I have set up a web server on Vultr: IP: 198.13.xx.xx and I want to allow my other webserver https://myotherwebserver.io to pull information from it via curl - but everyone else should be blocked at ...
2
votes
1answer
72 views

What could be limiting my maximum upload file size on my Raspberry Pi LAMP stack?

So I have a LAMP webserver hosted on a Raspberry Pi 3. The Raspberry Pi has a RAID 10 connected to it through a hardware RAID controller. My goal is to be able to upload large files through my ...
1
vote
1answer
38 views

Cannot upload files larger than 1GB in PHP under Apache even with 'post_max_size' and 'upload_max_filesize' set to 4096M

As I understand, when hosting a webserver with Apache and PGP, the three settings within php.ini that determine the maximum upload size are: memory_limit post_max_size upload_max_filesize As I have ...
3
votes
1answer
43 views

PHP Apache container continuously opens /proc/*/fd handles

TL:DR: PHP/Apache in docker is continuously creating 'files' in /proc/*/fd/ eventually making the site unusable. We are running a PHP app in docker (php:5.6-apache). We deployed this stack to ...
-1
votes
1answer
486 views

http://localhost/phpmyadmin/index.php “Says site can’t be reached”. Apache fail to start

I am using Antergos. I have installed a lampp stack with PHP 7.2.8, for the last couple of days my apache has been not starting, when I check httpd status I get(screenshot below) Click to see the ...
0
votes
0answers
35 views

Installing PHP 7 on Mac OSX so I can use Composer, why an I stuck at PHP 5.6?

I am trying to install php 7 so that I can use Composer. I am running Sierra 10.12.6. After a restart, First, I tried to run Composer with: Mac [508]$ composer require --dev phpunit/phpunit ^7 ...
0
votes
1answer
54 views

Pecl error when installing php71 on Centos6.9 by yum, remi repo

I got package related error like this. Error: Package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64 I guess it is related with dependency about pecl though... can't figure out. I use to use php56 ...
0
votes
1answer
18 views

How did the info in the drop-down box come from when to open `127.0.0.1/login.php` in my chrome?

A simple php file named as login.php. <html> <body> <form action="login.php" method="get"> user: <input type="text" name="userName" size="12"&...
0
votes
0answers
100 views

spawn php ENOENT when using XDebug in VSCode

VSCode 1.25 version, XDebug 2.6, php-fpm 72, Windows 10 (1803). I have installed xdebug itself and vscode xdebug extension using this info: https://marketplace.visualstudio.com/items?itemName=...
0
votes
1answer
56 views

CentOS 7 Apache run/execute web request as root user

I have a PHP Utility which accepts post request with file as parameter. Now when that request is received I want to execute it as root user. For example when user hits www.mydomain.com/...
1
vote
0answers
116 views

“Atom beautify” not working in Atom

First of all l'm Japanese and my English is sometimes weird. My situation is excatly the same as found in this URL: https://github.com/Glavin001/atom-beautify/issues/2107 I mean the same situation ...
0
votes
0answers
62 views

Nginx server is stopping for no apparent reason

I've set up an Nginx server for my site. Unfortunately, Nginx stops after some days (it's not a fixed period, sometimes after 5 days, sometimes after 1 month) and my site goes down. I need to restart ...
0
votes
1answer
312 views

mysql version 8.0.11 and Symfony 4 error “MySQL server has gone away”

I' m using Symfony 4 and Mysql version is 8.0.11 and using a user instead of a root login and when i try to use the command php bin/console make:migration i get this error: In AbstractMySQLDriver.php ...
0
votes
0answers
81 views

SetHandler “proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost/” ON <VirtualHost *:443>

I have a server under apache2 with multiple php versions. I can use the proxy for but not for I put <FilesMatch \ .php $> # Apache 2.4.10+ can proxy to unix socket SetHandler "proxy:...
0
votes
0answers
65 views

SSL PHP and curl

good day, thanks for read my post. We have a problem with my website with ssl certificates... We have Debian 9, PHP 7 and Apache 2.4.25... And when we run a script php with curl process we receive in ...
1
vote
1answer
23 views

Apache - is it necessary run Apache as a user other than the System user

The Apache document says: By default, all Apache services are registered to run as the system user (the LocalSystem account). The LocalSystem account has no privileges to your network via any ...
0
votes
1answer
99 views

Cant open phpMyAdmin [closed]

Error Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your ...
0
votes
0answers
31 views

Processes started with cron are being killed sometimes

Running in a GoDaddy Shared hosting environment I have a few cron jobs. One of them ib being killed sometimes and i get email notifications when this happens in a form like: /bin/bash: line 1: ...
0
votes
0answers
10 views

Suddenly, PHP 7.1 on Ubuntu 16.04 stopped

The GD image library used well in my PHP scripts, but suddenly there is no images generated! I have tried to uninstall it and reinstall but nothing I have gotten. Is there any explanation about why do ...
1
vote
3answers
394 views

Laravel file permissions for apache

I'm installing a Laravel app on a Centos 7 distro. I'm using PHP 7.2 and I've successfully installed apache and my project. I was able to get the Apache splash page to show but as soon as I point my ...
0
votes
1answer
135 views

yum - Installing a package without updating dependencies

I'm trying to install ZABBIX monitoring software with yum on a server. When I attempt to install the package, yum prompts me to update php to 7.30.0. Installing: OpenIPMI-libs ...
0
votes
1answer
21 views

On Linux, if I use the php command with no parameters at all, what does it expect?

Suppose in my console window I type 'php' followed by the ENTER key. Is there anything I can enter next that has a coherent result? A filename or some php code? Nothing seems to "do" anything after ...
0
votes
1answer
62 views

stream video through multiple servers

I've got a peculiar problem. Server 1A is a server with witch the users interact. Servers 2B, 2C and 2D store video content. On a website, a html video tag is placed <video src="server1adomain....
2
votes
1answer
232 views

Is PHP 7.2 compatible with Windows 7

The PHP Manual section on installation requirements says "As of PHP 7.2.0 Windows 2008 and 7 are no longer supported." The section on compatibility of version 7.2 says, near the bottom under Windows ...
0
votes
0answers
49 views

Installing php extension with Cygwin, tests are failing

I've originally asked this on StackOverflow, but got no answers. I've deleted it now. I guess it would fit here more. I'm on a Windows machine, but I am trying to install this PHP extension, and I ...
0
votes
0answers
42 views

Windows user command line permissions

My PHP service is started by SYSTEM user. But I couldn't execute this command on PHP: http://localhost/execute.php file tries to execute this command: D:\wamp\www\convert\OfficeToPDF.exe D:\wamp\www\...
0
votes
0answers
142 views

how to get phpVersion.php and phpMyAdmin working with the php version 7 on my apache server

My phpVersion.php file is showing me: <?php phpinfo(); ?> So it looks like it's not recognising the php on my server. My PhpMyAdmin isn't working either. When I do php -v on my server I see:...
0
votes
1answer
72 views

VPS: CPU seams to be under heavy load while no process produces such load?

I recently set up a really cheap VPS mainly for backup purposes but I also wanted it to do some small, minor tasks. But because I was too interested I wanted to take a look at CPU and Memory usage, ...
0
votes
0answers
100 views

nohup process keep shutting down

I am trying to run 10.000 processes to create asterisks phone accounts. This is to stress-test our Asterisk server. I called with php an exec() function to create a Linux command. nohup /usr/src/...
0
votes
0answers
47 views

How do I get Atom.io to properly color SQL when inside a PHP string?

Am I missing some package to correct this? At times, it works correctly ... Sometimes it does not work correctly ..
0
votes
0answers
42 views

Screen function for Linux (read screen output)

I am working with PHP to create a stress test for Asterisk. Now do I want to test my script by automatically sending commands to the Linux server. I can't test the script yet, somehow I can't see the ...