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.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

PHP error with “logger.php” - Unknown: Failed to open stream: No such file or directory in Unknown on line 0

I'm using Visual Studio Code with PHP Server extension. When I try to launch my Web application, the browser shows me this message: Warning: Unknown: Failed to open stream: No such file or directory ...
0
votes
1answer
16 views

Bash doesn't recognize php

Even though I have php in my /usr/bin and it is in my PATH when using bash it doesn't find php. bash: php: command not found And here is echo $PATH: /home/adnan/.local/bin:/home/adnan/bin:/app/bin:/...
0
votes
0answers
9 views

How do you debug all the logs when manually running a cronjob?

root@be4d74a09e0f:/var/www/scripts# timeout -s9 1h php -d display_errors=1 display_startup_errors=1 error_reporting=E_ALL run-resource.php --host=www.pragma.com --resources=wp.plugins.PragmaFtp --lock=...
-2
votes
0answers
30 views

Visual Studio Code [WSL] Unable To Find & Open

I'm using Visual Studio code with WSL to edit code in my WSL. I was unable to edit one single file. I found a person saying executing sudo chown -R sam /var/www/* & sudo chown -R sam /var/www/html/...
0
votes
2answers
36 views

Install PHP 8 separately from PHP 7 - Centos 7

My production Centos 7 machine is running PHP 7.4 but I 'd like to test code against PHP 8. Before a few days,in formatting a new server, I tried yum-config-manager --enable remi-php8 but this broke ...
0
votes
0answers
4 views

PHP: Encode UTF8-Characters to html entities [migrated]

I want to encode normal characters to html-entities like a => a A => A b => b B => B but echo htmlentities("a"); doesn't work. It outputs ...
0
votes
1answer
12 views

cURL error 60 in Symfonycasts tutorial

In Symfonycasts "API Platform: Serious RESTful APIs" Chapter 6 there is the cURL command curl -X GET "https://localhost:8000/api" -H "accept: application/ld+json". ...
0
votes
0answers
18 views

PHP error, i cant access my PHPmyadmin? [closed]

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser. session_start(): open(...
0
votes
1answer
32 views

selecting from SQL with LEFT JOIN and multiple conditions

I am trying to fetch posts with multiple filters, my database is as below, "Meta" Table id meta_key meta_value object_name object_id 2 location new city post 2 1 post_type section post 2 ...
0
votes
0answers
20 views

How to prevent interrupted mv moving data

On Ubuntu 18.04 I am running a small PHP web application which moves directories one by one with nested dirs and files from one filesystem to another via exec(mv filepath) method. Now I have the ...
1
vote
1answer
36 views

ModSecurity whitelist my IP, false positive on response body due to gzip?

How can I whitelist my IP address on modsecurity or just completely ignore the response body so it stops tripping like this? I have my wordpress site behind cloudflare. My site also uses a cache ...
0
votes
0answers
6 views

PHP 7.0 on OpenSuse 15.2

Does anyone know how I can install an old PHP version like 7.0 on OpenSuse 15.2? We are migrating an older application to it from a very old CentOS release, and would prefer to keep PHP at the same ...
0
votes
0answers
18 views

FreeBSD execute shell fron php to start and stop services

I need your help in this one. I currently have a freenas system that uses freebsd. I am trying to create a simple webpage as html+php+sh or php+sh. Goal is to put a button for every service I have in ...
0
votes
1answer
15 views

MySQL 1273 Workbench

I have initially started to run https://www.youtube.com/watch?v=7S_tz1z_5bA&t and installed it all. When using MySQL Work Bench I initially run it, I get thunder icon when it runs but then I get ...
1
vote
0answers
27 views

php-pam for php7.3 and php7.4 in parallel?

I have both php7.4 and php7.3 in use on my Debian 10 (buster) system as I have dependencies on both. (From https://deb.sury.org/ php apt repos.) But the pam module is not available as a version-...
0
votes
0answers
87 views

Ubuntu 20.4 switch to multi version of php returns error 500 on phpmyadmin

I have installed multiple version of PHP 5.6, 7.2, 7.3 ,7.4 ,8.0 and 7.4 is the default, I tried to switch to different version for some projects running on older version, doing sudo update-...
-1
votes
1answer
24 views

Is there any particular way to set up files for Web Development? [closed]

I've been working in...studying...Web Dev for about four years and I'm wondering if there is a particular file structure that's beneficial. Example, I noticed one individual had a DEV folder directly ...
-3
votes
1answer
21 views

Using ubuntu users for a login system on a website [closed]

I was wondering if anyone could point me in the right direction. I am wanting to create a login system that pulls the users already created on the server.(Using Ubuntu 16.04). I believe an example ...
0
votes
1answer
126 views

How to set up an SQL database on Synology NAS?

I would like to set up REST API, which can communicate with my database on my NAS. I made this simple PHP code for the database connection, and it works perfectly with Xampp on my computer. <?php $...
0
votes
1answer
43 views

copying files using php over slow server

i am trying to copy multiple videos from another website to my website. i am using php curl method (i have also tried file_put_contents method) but its taking aa lot of time for single file. video ...
1
vote
0answers
8 views

What is causing my home LAMP server to wait about 57 seconds before serving up a web page?

I should preface this all by saying that I'm certainly not a sysadmin, or even a web designer. I've searched for an answer but most answers I've seen have to do with WAMP and DNS. Not my particular ...
0
votes
0answers
65 views

Laravel Ckeditor Image Upload -“The GET method is not supported for this route. Supported methods: POST. ”

Ckeditor Blade File <!DOCTYPE html> <html> <head> <script src="https://cdn.ckeditor.com/4.12.1/standard/ckeditor.js"></script> </head> <body> ...
0
votes
1answer
18 views

How to decide server requirements to suit my system?

How to calculate what kind of server I need for my system. System: moodle Functionality: nothing unusual for moodle Max users online: 100 I know minimal moodle requirements but I don't know how it ...
1
vote
1answer
89 views

PHP file read error on macOS Big Sur

I'm getting the following error from fopen and file_get_contents: failed to open stream: Operation not permitted This only occurs when accessing a script via localhost in a browser — on the command-...
0
votes
0answers
19 views

How do I stop Composer from pestering me to “Complete this operation with Administrator privileges”, and just run the command?

I run this command automatically to update Composer (itself): composer self-update --working-dir="C:\Users\John Doe\...\Composer" Every time there is an update, it results in this "...
0
votes
0answers
155 views

Router Causing PHP: Warning: file_get_contents failed to open stream: Connection timed out error

I have Worked out what is causing the issue but I don't know what I need to do to fix it. I updated the parent router and my code stopped working. figured it was just a new IP issue so fixed that but ...
1
vote
0answers
17 views

Want to install PHP 7.3 on a VM with no internet access

I have a VM operating on centos7 and I have been told to install PHP 7.3 on it. But the main issue with it is that it doesn't have access to the internet. so if anyone knows how to install it without ...
0
votes
0answers
77 views

Jetstream isn't loading it's CSS when running Laravel 8 app without Artisan Serve

I recently tried jetstream. It works fine when running app with artisan serve. I moved my index and htaccess files to the main folder to access the application directly without running artisan serve ...
1
vote
0answers
23 views

Cant run peruggia software from OWASP from firefox?

I'm trying to run peruggia but cant see a way to successfully run it I installed lighthttp on Linux but when I run the install.php from firefox using localhost/install.php I just get a screen without ...
0
votes
0answers
12 views

Got a few problems with phpstorm

I'm trying out the program the first time and I get errors and warnings that should not be there. because the page loads up just fine. I have screenshots. categories.php Undefined variable '$...
0
votes
1answer
18 views

What is the stable version for PHP 5.5.9?

Can I ask what is the stable version for php 5.5.9, I want to add this to my additional php version for wamp, cause I want to run a project that is running on php 5.5.9 in the server. Refer to this ...
0
votes
0answers
11 views

PHP 7 and install that in Centos 7 VMs

i want download PHP 7 and install that in "Centos 7" Virtual Machine note ,that Virtual Machine not have a internet thanks ,
0
votes
1answer
39 views

Continue add selected php in large value

I have a large amount of code in notepad++ or any editor but I want to replace all the text quickly. Is there any option edit and replace in notepad++? <option value="0&...
0
votes
0answers
83 views

Unable to log in to phpMyAdmin 5.1 using cookie authentication

Running phpMyAdmin v. 5.0.2 and it works fine. Downloaded 5.1.0-rc1, unzipped it to public_html and added server by phpMyAdmin/setup. Also tried to manually edit the configuration. When I try to log ...
1
vote
1answer
34 views

Wamp/Apache/PHP config and the DEPRECATED error displayed only 1 time

I have been recommended in stackoverflow to post my question here, it is realated to wamp64/php/apache. The deprecated functions error message is displayed only after a restart of my server and on the ...
0
votes
0answers
15 views

mount directory in docker container for nginx-webserver, using docker-compose // Piwigo Nginx NAS Docker

I'm trying to mount a specific directory from a docker host system to a Nginx-Webserver, using docker-compose, but I couldn't reach the expected content in the web application (Piwigo Photo-Gallery). ...
0
votes
0answers
24 views

How do you output FFmpeg video file encoding real-time via PHP — primarily on Linux with Nvidia?

I have a simple FFmpeg script that outputs an MP4 fine on Linux with Nvidia. This takes roughly 6 seconds to process before I can show it on the PHP page (in the HTML5 video player). I suspect there ...
1
vote
0answers
92 views

Install of laravel/laravel failed

I did vagrant ssh and into vagrant@homestead.when I installed composer global require laravel/installer and created laravel new bacon that caused bellow the error. Also, I tried to set up process-time-...
0
votes
0answers
121 views

Install XDebug On OSX

Trying to install xdebug on osx, but I get an error error: make failed when I run the command pecl install xdebug What do I need to change so I can succesfully install xdebug on osx? running: make ...
0
votes
0answers
14 views

How to run multiple PHP versions on Centos 7

I have setup a new server with OS Centos 7 and PHP 7.3.25 since i have few websites which needs an older version of PHP like 5.6 or older , also needs Zend Guard as the coding needs it .. so i don't ...
1
vote
1answer
29 views

What security can cookies give to my website?

I am a beginner PHP programmer and wanting to continue learning everything that catches my attention, I analyze it until I understand it. I recently came across about 2 pages online, a store and a ...
1
vote
0answers
49 views

Apache2 MPM event: More threads vs more processes?

We're running an Apache2 web server with MPM event and PHP-FPM. To serve high traffic with minimal server resources I did some research about how to configure MPM best. Let's say we want to serve a ...
0
votes
0answers
101 views

Uninstall php-fpm and config Apache & nginx on Ubuntu 20.04

How to uninstall php-fpm from Ubuntu 20.04? And configure Apache and nginx to only use PHP? I have removed php-fpm with the following command: apt-get autoremove php- but I can't use PHP with nginx ...
1
vote
0answers
50 views

NGINX, PHP-FPM - Error log entries missing line breaks

I've just updated my Nginx to the latest version 1.19 which replaces the older version Ubuntu 18's repo has, 1.14. However, now all my PHP-FPM error log entries are clumped together without line ...
0
votes
1answer
45 views

PHP not loading ENV vars set in /etc/sysconfig/httpd

I am running Drupal sites (Apache and PHP), and would like to set some of the values in the settings files to be environment variables. After researching, the proper approach appears to be adding them ...
0
votes
0answers
47 views

access windows shared folder from apache web server

I'm trying to use php command scandir() to get a list of files into a folder and manipulate those files in my frontend. If the folder is local it's ok, but I need to get this folder from a windows ...
1
vote
0answers
17 views

Lynx-dump cron job not working after installing SSL certificate

I have a cron job that has always worked fine, until we installed an SSL certicate and updated our .htaccess file to redirect all http requests to https. Now, the cron job is not working and I'm ...
0
votes
1answer
321 views

Nextcloud slow responsiveness/504 error after update to 19.0.5 and 20.02

I just updated my Nextcloud instance to 19.0.5 and then to 20.0.2 (built-in updater). After the first update the web interface and client were both experiencing connection issues (504 Gateway-Timeout) ...
0
votes
0answers
19 views

Nginx doesn't work, no errors given

I want to setup a local development nginx-server with php-fpm. After overcoming multiple problems I'm stuck with this one: If I make a request to the URL, nothing happens. On the CLI, cURL returns ...
0
votes
2answers
2k views

mysql doesn't ask for root password when installing

situation I did install MySQL by using a MySQL installer and I did fill out the content as following MySQL did ..but not asked a password .. try Anyway I tried to start mysql set-up in the command ...

1
2 3 4 5
38