Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

Filter by
Sorted by
Tagged with
-2
votes
0answers
21 views

what dose this code do to my website is it harmful seems like shell

what dose this code do to my website is it harmful <?php namespace wapmorgan\UnifiedArchive; class LzwStreamWrapper { private static $registered = false; private static $installed = 0; ...
0
votes
1answer
35 views

php will not allow me to do `shell_exec('git pull origin master 2>&1');`

When I run the script <?php chdir('/var/www/html'); echo shell_exec('git pull origin master 2>&1'); ?>, I get the error message: error: cannot open .git/FETCH_HEAD: Permission denied ...
1
vote
2answers
33 views

How do I make my PHP Source installation use the libraries inside of /usr/local/programname/lib instead or /usr/local/lib?

How do I make my PHP Source installation use the libraries inside of /usr/local/programname/lib instead or /usr/local/lib? I have tried setting LD_LIBRARY_PATH to each of the program names like ...
0
votes
1answer
18 views

How to serve TFTP content via script (PHP-like)?

I am looking for a way to serve TFTP requests with an output from a script (bash, PHP?) called with the TFTP request path as an argument. A simple TFTP equivalent of Apache+PHP. Something like PHP + ...
1
vote
1answer
74 views

CORS conflict after enabling FPM in PHP

In the .htaccess file on my web server, I have the following CORS header set: Header set Access-Control-Allow-Origin "example.com" In one of my PHP scripts, that I frequently call while ...
0
votes
0answers
24 views

Prohibited Y0u don't have permission to access this resource

My laravel website gives me an error after changing one piece of code from a comment to code back to a comment again in the .htaccess file. I've tried I think everything with the folder permissions ...
0
votes
1answer
47 views
+100

How to debug an unreachable (from the wan side) lemp server tunneling through an AWS based Openvpn-AS instance

Ive been wracking my brains out for weeks trying to debug a once perfectly functioning LEMP web server. I'm using a relatively complicated setup. Lets start with my setup from the beginning when ...
0
votes
0answers
67 views

MariaDB Error Reading Communication Packets

I have a problem. When I split my MariaDB from main server to another server (my database server is running MariaDB docker from latest tag) I got an error: Got an error writing communication packets ...
0
votes
0answers
17 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
19 views

Can't 'php artisan migrate' inside docker

Trying to run 'php artisan migrate' in docker returned following error Illuminate\Database\QueryException could not find driver (SQL: select * from information_schema.tables where table_schema = ...
-2
votes
0answers
14 views

Parse error: syntax error, unexpected 'while' (T_WHILE) [migrated]

I keep getting this error and have tried so many variations... Can somebody help me.... Using PHP V.7.4.1 On IIS 7 <?php $dbhost = 'localhost'; $dbname = 'drinks'; $dbuser = 'xxxx'; $dbpasswd = '...
1
vote
1answer
43 views

Running ansible from webserver to manage infrastructure

I have nginx with php app. I have also installed ansible and copied playbooks on this server. What I want to do is run ansible playbooks through webapp. I want to know how to do this safe way. Nginx ...
0
votes
1answer
30 views

How to redirect old PHP scripts in NGINX configuration to a new HTTPS site?

I have a problem, I'm trying to catch all PHP scripts except one in my NGINX configuration for my HTTP domain configuration: I have a general rule for all PHP files location ~ \.php$ { ...
0
votes
0answers
64 views

Apache access log not logging content-length for data served via PHP

I have a php script that handles files downloads, it sends content-length header properly and the browsers receive it. But in the Apache access log they show up as "-". In the past this used ...
1
vote
1answer
61 views

pecl: command not found when trying to install PHP SQL Server driver

I need to be able to access MSSQL databases from PHP and I'm trying to activate the driver to do so, since mssql php natively was removed after PHP 5.6. Here's what I tried: sudo su curl https://...

15 30 50 per page
1
2 3 4 5
500