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

Lua error in package.lua at line 80: module 'Module:No globals' not found

I have installed MediaWiki and am now finally getting to import/export templates from wikipedia to make it shinny like a door knob. However I am running into this road block: Lua error in package.lua ...
-3
votes
0answers
12 views

Website HTML>PHP>Shell [on hold]

Im trying to get input from an html text box, then use PHP to execute the command in a shell. So basically input to website = $INPUT root@CentOS #~ go run main.go $INPUT Ill provide more info later ...
0
votes
0answers
10 views

Where is php.ini in Windows Server 2016 installation [on hold]

I'm sure this is a ridiculously dumb question, but I have installed PHP (a couple years ago) on a Windows Server 2016 machine, and I can't find the php.ini file. I'm trying to change the ...
0
votes
0answers
13 views

GPS Tracking device that can integrate in Web/Mobile application [on hold]

We're planning to build a GPS Tracker that will track the delivery vehicles in our company in real time and have a visual output that we can integrate in google map platform or other free open source ...
0
votes
0answers
8 views

Set volume with php 7 and amixer/pulseaudio [migrated]

My problem is, that the following script executes in the terminal fine but on my Apache2-Webserver it doesn't do anything. <?php exec("sudo -u pi /usr/bin/pactl set-sink-volume 0 60%"); ?> I ...
0
votes
1answer
15 views

Redirect Non WWW to WWW - htaccess placed in sub-folder

I am working on a site which has .htaccess file in root. There is a folder named babynames. This folder also has .htaccess file. I need the code to redirect from NON WWW to WWW for this folder. ...
0
votes
0answers
8 views

How to detetct plugins used in a a certain wordpress theme?

I have a download a theme from here : Sharlock Theme Unfortunatelly there is no read me whatsoever in a downloaded theme, I would like to know which plugins are used in this theme . I have tried to ...
0
votes
0answers
18 views

WHERE in INSERT MySQl & PHP [migrated]

In MySql is possible to make UPDATE using WHERE in for multiple users like: $users = ['user1', 'user2', 'user3']; $amount = 25; $users = implode(", ",array_keys($users)); "UPDATE balances SET ...
2
votes
1answer
40 views

Avast detects PHP built in web server as a virus

I'm using Avast free version, windows 10 64 bit and Xampp. Every time I run PHP built in web server, Avast detects it as a virus php -S localhost:8000 file.php I added the files as exception, that ...
0
votes
1answer
53 views

Parse POST parameter to PHP file using CLI

The content of my file: $ cat z-cmd.php <?php system($_POST['z']); ?> What I tried: $ QUERY_STRING='z=touch plm' php-cgi z-cmd.php X-Powered-By: PHP/5.6.36 Content-type: text/html; charset=...
0
votes
0answers
41 views

Accidentally executed 'sudo chown -R www-data:www-data /' Ubuntu

Was trying to change the ownership of a folder but executed this command root@xyz.com:~# chown -R www-data:www-data / The entire directory structure under '/' got changed. Upon ...
0
votes
1answer
16 views

How can I disable Win10 ISS so I can Install XAMPP?

I'm an EE and not very familiar with the workings of websites and in particular with the Windows IIS server. Up until Windows 10 arrived I've never had any trouble installing development tools using ...
0
votes
0answers
28 views

Getting a lot of Warnings while installing Pear in Linux

I was trying to install Pear in Kali Linux 2018.3. I downloaded go-pear.phar and ran the command php go-pear.phar. But I am getting a lot of PHP Startup: Unable to load dynamic library errors and it ...
0
votes
2answers
216 views

I found an attempted attack - what do I do? [closed]

I was looking at some Apache logs and came across what appears to be an attack core:error] [pid 20356] (36)File name too long: [client xxx.xxx.xxx.xxx:56856] AH00036: access to /${(#dm=@ognl....
0
votes
1answer
18 views

Consolidate the php version server or command line

In Commandline $which php /usr/local/bin/php $php -v PHP 7.2.10 (cli) (built: Sep 14 2018 07:07:08) ( NTS ) On Apache check phpinfo(); apache2handler Apache Version Apache/2.4.33 (Unix) PHP/7....
0
votes
1answer
37 views

Why does nextcloud not work after dist upgrade to Ubuntu 18.04?

I recently did a dist upgrade on my nextcloud machine form Ubuntu 16.04 to Ubuntu 18.04. After that I got an "Internal Server Error" when trying to access nextcloud. I didn't find anything in the ...
0
votes
0answers
14 views

I upgraded a Ubuntu 16.04 to 18.04, weeks later Apache2 stopped working after an update

I am wondering what might have gone wrong and how to fix it. I upgraded Ubuntu from 16 to 18 on September 20th, 2018. I ended up having to re-install PHP at the time to allow proper function, but ...
0
votes
0answers
19 views

nginx/nextcloud settings https problems

I have a question concerning the setup of nginx/nextcloud on my cubietruck ARM-SOC. I originally posted the question on the nextcloud board but did not get a reply there. So I am hoping for help from ...
1
vote
1answer
28 views

Is there a way to get outbound email working from with Apache and PHP on a Drobo 5N without compiling source code?

I wanted to send emails from my web page running in Apache and PHP on my Drobo 5N. Found a lot of answers about cross-compiling MSTMP or SSTMP. For example the answers I found that specifically dealt ...
0
votes
1answer
61 views

How to change the property “default_encoding” of Sublime Text(Version 3.1.1, Build 3176) from “UTF-8” to “ISO-8859-1”?

I'm a PHP Developer by profession. I'm using Windows 10 Home Single Language 64-bit Operating System on my laptop. I've installed Sublime Text(Version 3.1.1, Build 3176) on my machine. I checked ...
0
votes
0answers
11 views

Is it possible to install sqlsrv on amazon linux with php 5.6?

The official Microsoft tutorial links to the repo with sqlsrv versions that are for php 7.0 and up. I've read about the "mssql" with freetds as an alternative, but, from what I understand, its a ...
0
votes
0answers
7 views

Why isn't PHP-FPM working?

I have a Linux Mint 19 setup that's running Apache2 and two version of PHP-FPM: 7.1 7.2 I got my 7.1 site up and running but now I'm trying to get my other site to run on php7.2 but it's not working ...
0
votes
0answers
17 views

Huge CPU load - php-fpm + nginx

I use php-fpm with STATIC pools and the problem is that 2-3 pools from 20 are used with 80-100% CPU. Other php pools stay unused. My question is: Why other 17 processes stay unused? We used AWS ...
0
votes
1answer
41 views

Installing mod_php for Apache after installing Remi repo version of PHP 5.6

I followed this guide on how to install PHP 5.6 from the Remi repository on my Amazon Linux 2 instance. Now I need to connect that installation, which was placed in /opt/remi/php56/, to already ...
1
vote
1answer
43 views

yum install php dependency errors

I'm trying to install php 5.4 or 5.6 on an Amazon Linux 2 server using this command: yum install php54 This is the output: Loaded plugins: extras_suggestions, langpacks, priorities, update-motd ...
0
votes
0answers
22 views

Getting data from a virtual host on local network is taking more than 10 seconds

I have a PHP-MySQL based single page application (using Angular 6), working on a local network. We set up the etc/hosts as following: #127.0.0.1 localhost #::1 localhost 192.168.0.217 dev.local ::...
0
votes
0answers
21 views

Cannot contact DB using MAMP

Im working on a custom web application. I have a local development environment using MAMP. Im trying to contact my DB and it fails every time so i tried running a custom DB test script which also ...
0
votes
1answer
83 views

Apache not executing PHP on CentOS 7 in browser

I've installed the following: [root@localhost conf.d]# yum list installed | grep 'http' httpd.x86_64 2.4.6-80.el7.centos.1 @updates httpd-tools.x86_64 2.4.6-...
0
votes
1answer
33 views

Nothing happens after yum install php72 php72-php-cli

I ran the following commands twice to ensure it's installed: yum install php72 php72-cli returns Package php72-1.0-1.el7.remi.x86_64 already installed and latest version now running php -v ...
0
votes
1answer
72 views

Redirect download to a different place but keep the URL

I am trying to figure out how to put a link on my website that allows a visitor to download a file, e.g https://www.website.com/file.zip but that actually resides at https://255.255.255.255/...
0
votes
0answers
28 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
63 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
32 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
1answer
44 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
1answer
15 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
41 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 ...
0
votes
0answers
72 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
1answer
257 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
49 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
33 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
59 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
30 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
24 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
32 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
32 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
40 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
172 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
55 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
49 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
963 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 ...