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.

-1
votes
1answer
12 views

FCGI: attempt to connect to 127.0.0.1:9000 (*) failed Apache 2.4, PHP7.1-FPM with unix socket

I am trying to set up PHP7.1-FPM on MacOS Mojave! I followed this guide and got all the way through to the end when it stopped working. During searching Google I decided to try and use unix sockets ...
0
votes
0answers
16 views

Malicious Outgoing FTP Connection to another server [on hold]

There was a malicious outgoing connection from my Cpanel server to an another server's FTP port. My server has many shared hosting accounts of my clients. How can I check which user/account sent this ...
-1
votes
1answer
23 views

PHP and WordPresss require?

What PHP version does WordPress require? I am not sure what are the hosting requirements for my WordPress theme. I am using a theme exported from https://themesgenerator.com/ and I am afraid I need ...
0
votes
0answers
8 views

Delete a file with php code on MacOS Mojave [on hold]

I'm in macOS Mojave running XAMPP server 7.3.0, and I have an html form to upload some pictures from it and put them in a directory. The pictures are uploaded. But when I want to delete them from a ...
0
votes
0answers
26 views

Cannot change php.ini settings without restart of machine

I finally found out that I need to the restart my machine to take over some php.ini configuration changes. But I'm wondering why I cannot just restart httpd. What do I have to do that I don't need to ...
0
votes
0answers
13 views

(Angular 6) How to use a database for a DataTable without using php

Disclamer : i'm a beginner at Angular (even tho i've done some projects already) I have a little question about DataTables (the sorting ones). All the tutos I've seen this far are using php to ...
0
votes
0answers
6 views

How to programmatically change wordpress screen options boxes contents [on hold]

When I programmatically duplicate pages in Wordpress, the contents of the screen options boxes that appear on the right of the admin screen are not copied. I want to set certain check boxes, but I can'...
0
votes
2answers
37 views

Why does the latest Ubuntu comes with an obsolete PHP Version?

Why does the latest Ubuntu comes with an obsolete PHP Version? Is it secure to use this version?
0
votes
0answers
43 views

Sublime text 3 plugin issue 'Browser Refesh'

Are trying to use an plugin that is named "Browser Refresh"(link below), have instaled the plugin alog side "package manager" for st3 but with no luck to use it. Have so far edited the requireded /...
0
votes
0answers
9 views

Laravel 5.7 payment gateway return url with post data [closed]

I am integrating a payment gateway that accepts a request with certain POST data like name, mobile, email, amt, city, state, country etc. from request & some inputs like credit card no, expiry ...
0
votes
0answers
9 views

PHP Elasticsearch Sort on Type Text issue [closed]

{ "node": { "id": "452835", "user": "ABERKANE STEPHANIE" } }, { "node": { "id": "325558", "user": "ZONCO ALEXANDRA" }...
0
votes
0answers
18 views

Connecting to a ClearDB database in a Heroku application using PHP fails with no error message [migrated]

I've ruled out the possibility of supplying an incorrect name or password in mysqli_connect, because when I change them to make them incorrect on purpose, I actually get an error message from ...
0
votes
0answers
14 views

Websocket installation on IIS10, Windows 10 pro

I want to play around with websockets. I'm using IIS 10 on Windows 10 pro. I have used the Web Platform installer 5.0 to install "Websockets Protocol". This seems to look fine, it says "Installed". ...
-1
votes
0answers
16 views

Wordpress can't find temporary folder, but folder it's looking at has correct permissions [migrated]

So, I've spent a couple of hours looking around the internet to try to figure out this problem, since it seems like a dumb one that would probably be a duplicate, but apparently it isn't. I'm hosting ...
0
votes
0answers
12 views

Nginx Varnish Configuration issue

I'm trying to install varnish with ssl from this link: https://www.linode.com/docs/websites/varnish/use-varnish-and-nginx-to-serve-wordpress-over-ssl-and-http-on-debian-8/ I did everything like post ...
0
votes
0answers
44 views

Updating dbkiss.php for deprecated preg_replace() function and PHP7/Postgres compatibility

I use the dbkiss database frontend application (see code: github/dbkiss.php) which now appears to be unsupported. It works with PHP5 but now breaks with PHP7 with the following error: preg_replace():...
0
votes
1answer
501 views

How to integrate cURL on my public_html?

I do have this folder structure for my website: \index.html \php\some-php-files.php \js\some-js-files.js What I want to do is, I want to use a cURL command, which I usually use it on the terminal/...
0
votes
0answers
8 views

Setting up an imported PHP MySQL server locally

I am building ontop of an open source project and have been given the current code which is located here: https://opengogs.adaptcentre.ie/harsh/ethics-canvas/src/dev I'm looking for some guidance on ...
0
votes
0answers
11 views

Connecting to a local apache server with PhpStorm

So normaly I have file in /var/www/html I open it in browser using http://localhost/file.php. I am not sure how to set up connections and mapping in PhpStorm however. I tried something like that ...
0
votes
1answer
27 views

Can't run PHP file with apache2

I want to set up php on my machine but I can't make it work. This is what I did: I downloaded php with sudo apt-get php Installed Apache sudo apt install apache2 Resterted server sudo service apache2 ...
0
votes
0answers
20 views

Why after deleting mysql-bin.index does my server SQL connect again in MAMP otherwhise it does not?

When I install MAMP, everything works fine the first time. Apache server connects and SQL also, I can access phpMyAdmin page also. But after turning off the server and turning it on again, MySQL doesn’...
1
vote
0answers
35 views

ffmpeg concat removing sound of videos

I've used this code for merging three videos together with ffmpeg : ffmpeg -y -f concat -safe 0 -i list.txt -c copy done.mp4 the list.txt contains : file 'first.mp4' duration 2.5 file 'second.mp4' ...
0
votes
1answer
45 views

Rebuilding an app in Dokku results in 'ERROR: Failed to download minimal PHP for bootstrapping!'

I'm using Dokku for over a year now, most of the programs are written in node.js. But for a Wordpress blog we use the default heroku PHP buildpack. After a system upgrade and subsequent reboot our ...
0
votes
1answer
16 views

Nginx frequently exits within docker while using supervisord

Following is the output for command docker run -p 9898:80 myContaineron stdout: 2019-01-03 17:23:08,600 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (...
0
votes
1answer
19 views

Unable to run the command

I trying to install the composer..... tried to run this command sudo apt install curl php-cli php-mbstring git unzip on ubuntu 18.10 .... I got this message displayed on cmd sudo apt install curl ...
1
vote
1answer
58 views

Docker: how to ship and share data between containers

I currently have a new server setup where I have Docker running. I use Gitlab CI to create and push new images. I just fail to determine how to deploy/setup my project files and docker images. To ...
0
votes
1answer
26 views

MyWebSQL on Windows: MySQL client library is not installed

I'm trying to set up MyWebSQL on a Windows server machine. I set up Apache 2.4 and PHP 7.3, then deployed MyWebSQL. Now, when I go to http:// localhost/mywebsql/install.php, I get the error: ✘ ...
0
votes
1answer
51 views

Upgrading PHP from 7.1 to 7.2 with Homebrew in macOS but still seeing PHP 7.1

I am trying to upgrade my PHP version from 7.1 to 7.2 on macOS and with Homebrew. I did the following steps: brew install php72 brew services stop php71 brew unlink php71 brew link php72 brew ...
0
votes
0answers
62 views

PHP Session lost after redirect (sometimes)

I use, Apache/2.4.28 (Win64) PHP/7.0.32 in a Windows environment. I try to do with this question, but in my case, a lost error occurs sometimes. (Sometimes mean, problem occur 5 hours or more hours ...
0
votes
0answers
8 views

“Shell Provisioner” Error Setting up Homestead

I am on a Windows 10 machine, and I've been trying to set up Homestead in line with the instructions on this page and the "Easy Laravel 5" textbook. When I run the vagrant up command to turn on the ...
0
votes
2answers
263 views

XDEBUG not working PHP 7.3 Win 10 x86

Download https://www.apachefriends.org/index.html (xampp-win32-7.3.0-0-VC15-installere.exe) can't find any x64 xampp for windows. Does not return any download link. https://xdebug.org/wizard.php PHP ...
0
votes
0answers
26 views

Laravel w/XAMPP on Ubuntu 18.04, how to swtich from built-in PHP server to the Apache server that is running

I'm just starting the basic tasks on the offical site here: basic tasks I followed these directions to try to integrate Laravel with XAMPP: how to install Laravel with XAMPP But it didn't work. I'...
0
votes
0answers
4 views

php can not connect to mysql after reboot server [migrated]

software: php 7.3 mysql workbench 8.0 this is my php code: try { $link = mysqli_connect($DB_SERVER,$DB_USERNAME, $DB_PASSWORD,$DB_NAME,3306); } catch (Exception $e){ throw new ...
0
votes
0answers
11 views

Bluehost CentOS install PHP libsodium with Yum

I'm kind of a newbie linux user and have this problem where i need to install libsodium on my bluehost server. I'm using PHP 7.2.15, and you can see my current phpinfo() by visiting picklists.ca I ...
0
votes
0answers
18 views

Switch php version on Cloud (Redhat? Centos?)

I'm confused about my cloud VPS. With cat /proc/version I got: Linux version 2.6.32-754.6.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP ...
0
votes
0answers
29 views

Ioncube PHP Loader - It was already loaded

WHM/Cpanel + WHMCS server that requires IonCube php module. 4 versions of PHP installed - 5.6, 7.0, 7.1, 7.2 - for each version ioncube file is added and php.ini is edited(zend_extension). However ...
1
vote
0answers
23 views

Laravel issue __DIR___ [closed]

Notice: Use of undefined constant DIR - assumed 'DIR' in /home/flamore/domains/fans.cal24.pl/public_html/index.php on line 21 Warning: require(DIR/../laravel/bootstrap/autoload.php): failed to open ...
0
votes
0answers
13 views

Php artisan migrate returns doctrine error (docker, caddy, laravel)

I tried to migrate new table with my containers up but the php artisan migrate command returns me this: Doctrine\DBAL\Driver\PDOException : SQLSTATE[HY000] [2002] php_network_getaddresses: ...
0
votes
0answers
5 views

Site not showing Image in Wordpress and in HTML code also which uploaded in root what is the solution for this? [migrated]

Wordpress image is not showing, the URL of the image is giving 404 error, but when I edit the image from the media menu the image is there? but not shown on site anywhere on HTML code embedded in the ...
0
votes
0answers
24 views

Opcache config for symfony (some pages are slower to load) multiple websites/applications

I config opcache on my server and works well (with basic config) with 1 to 3 application but when I have more than 3 websites/applications, some pages are slower to load. Symfony have many php files, ...
-1
votes
0answers
43 views

Laravel 5.7 Database Migration and Missing Vendor Directory

I realize this question has been asked more than once, but no solution I've found has worked. Apologies for my inability to parse out a solution from the broader web. When I attempt to run php ...
1
vote
0answers
31 views

magento2.0 failed Installation & Varnish Test after submitting to the market place

I submitted an extension on Magento Marketplace, but it failed the installation and varnished the test with a report that states as follows: Environment: PHP 7.1.22 Magento 2.3 CE php bin/magento ...
-1
votes
0answers
14 views

Apache wont display webpage in browser,

So apache was working, and no longer does, apache runs, but when i visit internal or external ip address, i get the timeout error in the web browser. here is the output from tail -f /var/log/apache2/...
0
votes
0answers
46 views

Could not bind socket : Permission denied

I would like to use port 443 in a PHP script, but seems like i don't have privilages to do so. That's the php error that occurs: Could not bind socket : [13] Permission denied that's the simple php ...
0
votes
0answers
67 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 ...
0
votes
1answer
19 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
12 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 ...
2
votes
1answer
45 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
62 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
46 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 ...