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
1answer
162 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
38 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
11 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
767 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
322 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
369 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
66 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
44 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
204 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
78 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
141 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
79 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 ...
1
vote
0answers
341 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
309 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 ...
1
vote
0answers
842 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
456 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
275 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
196 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
241 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
180 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
52 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
196 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
160 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
447 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
205 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
449 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
224 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
84 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 ...
0
votes
1answer
216 views

Create online PHP server without port forwarding?

Is there a way to create online PHP server without port forwarding and having to edit my router settings? I want to create a Google Maps tracking server and update it remotely. I already have its PHP ...
0
votes
0answers
73 views

Loading php extension in windows 10 fails

I'm trying to install the APC OPCache. After downloading the file php_apc.dll to the ext subfolder I added the following line to the php.ini: [PHP] ... extension=php_apc.dll [apc] apc.enabled=1 ...
0
votes
2answers
3k views

PHP 7.2 is enabled but does not execute on my website

I've just reinstalled Ubuntu 16.04 and I have 2 websites that I want to put on it. I've installed Apache2, PHP 7.2 I have my site installed on this path: /var/www/html/benshepherd.me I have added ...
0
votes
1answer
79 views

postfix/sendmail error unknown referring to command line

I have a php script under a wordpress theme sending emails using the mail() function. I have postfix, dovecot & sendmail installed on the server. For a long time the script functioned properly ...
0
votes
1answer
272 views

Php permission denied on connection to /tmp/redis.socket on cpanel

I have installed redis on my Cpanel Centos 6.9 VPS and successfully connected to it via tcp. I wanted to share redis.socket connection instead of tcp with several users on my vps but failing to do so ...
0
votes
0answers
170 views

Magento Migration - No input file specified Error

I've migrated Magento 1.9.x from server A to server B via "Transfer Tool" in WHM which means I set up an identical version on server B. I checked for all php modules etc. and server B seams to have ...
1
vote
1answer
790 views

checking and upgrade cURL version on windows server 2008R2

How to check whether cURL is installed on Windows Server 2008R2, check current version and how to upgrade to the latest version? Thank you.
0
votes
0answers
501 views

install mongo-php-adapter on php 7

I try to install mongo-php-adapter over composer but drops me $ composer require alcaeus/mongo-php-adapter Problem 1 - alcaeus/mongo-php-adapter 1.1.5 requires ext-mongodb ^1.2.0 -> the ...
1
vote
1answer
935 views

XAMPP apache setup on Windows to run .py Python files : ScriptInterpreterSource Registry-Strict

I've got my installation of the newest XAMPP version (w/PHP 7.2.2) setup and running apache just fine on my Windows 10 laptop for my PHP programming class. I was able to get CGI working to run .py ...
0
votes
0answers
440 views

How to fix php myadmin json extension is missing

When I tried to load myadmin in localhost I am getting this error. phpMyAdmin - Error The json extension is missing. Please check your PHP configuration. I have tried everything in at this ...
0
votes
0answers
23 views

fedora pdo mysql not listed in php cli modules

I have a problem on fedora , while useing php ci I get this message: could not find driver {"exception":"[object] (PDOException(code: 0): could not find driver at I tried php -m I found in the ...
0
votes
0answers
92 views

Broken PHP upgrade?

I recently upgraded PHP through Homebrew. When using terminal command PHP -i I'm getting PHP Version => 7.2.2 as expected. However, when running phpinfo(); on localhost I get PHP Version 5.6.30 ...
0
votes
0answers
86 views

How to Fix very slow loading page in wordpress cms

I'm Facing here one problem related word press cms, on installing woocommerce plugins to the page loading is very slow in wordpress page i tried 1) clearing cache 2)installing speed up plugin 3)...
0
votes
1answer
106 views

php cannot run but display the whole script

I've installed wamp64 for windows 10 Apache 2.4.27 PHP 5.6.31 MySQL 5.7.19 I have save my php script like trial.php, but the when I run, localhost/trial.php It came out the whole script.
2
votes
1answer
528 views

Nginx - Execute php files in different docker container

I am using an automated docker-image for php-fpm and nginx (https://hub.docker.com/r/tobi312/rpi-php/ and https://hub.docker.com/r/tobi312/rpi-nginx/ ) running on a raspberry pi with with libreelec on ...
0
votes
1answer
592 views

Sublime Text auto complete custom functions php

I can't bring ST to autocomplete functions that I have defined in other scripts. Once I use it in the script, it recognizes and suggests it. Otherwise it won't, I have to jump back and forth to copy ...
0
votes
0answers
176 views

Centos Web Server laravel slow site

I have a problem with memory on my centos server when I reboot the server it is fine, oh and by the way, this server is hosting only one website with Apache web server and MySQL as the database. after ...
1
vote
1answer
415 views

How to fix Drush 8 PHP7.2 Bug

I am running LAMP on Ubuntu 16.04. I have a drupal 7 installation and I have installed drush 8.1.3 via Composer version 1.5.2. I believe there is bug in php7.2 causing the error as discussed on ...
0
votes
0answers
59 views

Optimize MySQL Configuration - MySQL crash and after restart works

My WAMP MySQL has crashed 2 times the last week and i really wonder why! Once i restart the server everything works fine! Below i attach the error log of MySQL and the my.ini file! Can anyone suggest ...