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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

-3
votes
0answers
85 views

Automatic downloads of index.php [on hold]

Whenever I am opening any site, a file named index.php is getting downloaded automatically. I looked up the issue but so far the only info I have got is that its a server issue.
3
votes
1answer
30 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
27 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
11 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
9 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
0answers
15 views

Download vBulletin Threads and images? [closed]

I am looking for an way to download entire Threads in vBulletin Forum and the possibility to download all the images of one Thread over all of it´s sites. example: https://www.host.com/showthread.php?...
0
votes
0answers
8 views

When I try to access my site in browser I get as “it works” only [closed]

I tried to host a web page using AWS server. I wanted to make the index page of my web as phpinfo.I setup the virtual host and the directory root in ht docs as <?PHP phpinfo():?> And in /etc/...
0
votes
0answers
10 views

How to get logged person's user_id from the database in php [migrated]

I'm new to the Sessions topic so, I've been trying to get the logged person's id(column) from the userdetails table using sessions and insert it into the another variabl but couldn't achieve.I would ...
0
votes
0answers
23 views

Im having Phpmyadmin installation problems on windows 8? [on hold]

I’m new here and new to php. I need big help. Recently I was trying to install phpmyadmin 5 on my windows 8.1 computer without using xampp. I had already installed php …mysql and apache. So when I ...
0
votes
1answer
17 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
22 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
0answers
9 views

PHP order of processing scripts [migrated]

Is there documentation somewhere of the order in which PHP processes scripts? I found that the following structure works: script0.php require_once(script1.php); script1.php function1(); ...
0
votes
1answer
25 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
29 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
43 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
0answers
84 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
18 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
19 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
40 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
26 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
2answers
167 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
55 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
57 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
163 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
34 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
41 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
49 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
71 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
64 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
36 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
41 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 ...
0
votes
0answers
153 views

nginx + php-fpm70 getting 502 bad gateway

I'm Getting 502 bad gateway error in one of my magento2 site. Here are my configuration files. nginx.conf configuration file user nginx; worker_processes 4; worker_rlimit_nofile 100000; pid /...
0
votes
0answers
155 views

SSL operation failed with code 1 | Self signed certificate in certificate chain

Specification: Windows 10 | Wamp | PHP 7.1.9 Trying to Install Laravel 5.5 using the documentation they provided online. Each time I run "composer global require "laravel/installer"" I get the below ...
0
votes
0answers
333 views

Nextcloud: Can’t create or write into the data directory /var/nc_data

I'm getting the above error. What I tried so far: checked the permissions. I even did chmod 777 /var/nc_data -R first included all used party in open_basedir in my php.ini. When that didn't work, I ...
2
votes
2answers
153 views

How to uninstall php70 or suppress homebrew error messages

Every time I open terminal on my mac, I get the following message from homebrew: Error: No available formula with the name "homebrew/php/php70" Please tap it and then try again: brew tap homebrew/php ...
0
votes
0answers
129 views

nginx php7.1-fpm.sock location

I'm getting an issue related with the location of /var/run/php/php7.1-fpm.sock. I have the php installed: php -v // PHP 7.1.17-1+ubuntu16.04. ...... But the problem is that the folder /var/run/ ...
2
votes
1answer
131 views

Systemd process is exited immediately after start

I'm extremely new to systemd and am trying to write a .service file that runs my php script. The script runs and needs to wait for input from someone else to do anything, and remains open til I ctrl-C....
1
vote
1answer
124 views

Using Cron to Ensure a Background Process is Running

I'm trying to run a PHP background Process that is a consumer for Rabbit MQ messages. I can simply run the script as "php receive.php &", but I need to ensure that this script is always running. ...
0
votes
1answer
69 views

How can a PHP extension be installed if php.ini does not exist?

I'm using Uniform Server and MediaWiki for a project. It is for personal use, so it is restricted to my machine. Uniform Server came with Apache 2.4.25, PHP 7.1.1, phpMyAdmin 4.6.6, and MySQL 5.6.35-...
0
votes
0answers
44 views

PHP uninstall one installation of two

The server (RHEL7.4) I am working with has two version of PHP installed. Both were installed from source (not using yum). PHP 7.1 installed in /etc/php PHP 7.2 installed in /usr/local/lib/php PHP ...
0
votes
1answer
149 views

How to stop a rogue Linux process from ever starting up again

I'm running an Ubuntu 14.04 LTS server, with Apache2 and PHP 5.6. I'm trying to find the source of a process that has been plaguing one of my servers. I can see the process in "top", it's run by the ...
0
votes
1answer
72 views

ISPconfig url shows default Apache content

I seen this problem on few users but I didn't find a solution. I run Centos 7 and installed ISPconfig by downloading, then running php install.php It configured some things like ssl, apache, etc, ...
0
votes
1answer
174 views

Too many redirects on Magento Installation - Nginx/centos

I have a Magento Installation version 1.9.3.1. Until yesterday It was working fine, but now the frontpage is not working with the error - Too many redirects. On further checking in the console(...
0
votes
1answer
95 views

PDFToPrinter for Windows opens GUI on some machines

PDFToPrinter is an executable for Windows which lets you print a PDF file to a printer, especially to a shared network printer using the \\host\printer syntax. I'm using it to print PDFs from within ...
1
vote
1answer
230 views

Owner of php session folder keeps changing

Problem Every few weeks, the php session folder of a machine changes to owner apache even though I'm using nginx. This breaks PHP applications, for example phpMyAdmin, with a session_start(): open(...
0
votes
1answer
91 views

CMD open new winodw when run php command

I am trying to execute some PHP command in my cmd window but when i run command it open new window everytime. I need that command run in same window instead of new window. Someone can please help me ...
1
vote
0answers
60 views

pkg_add: command not found on Centos7

I've been trying to install phalcon on my Centos7 environment and I'm stuck with FreeBSD part: pkg_add pkg_add -r phalcon Apparently pkg_add errors as "command not found". I found a somewhat ...