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
178 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
422 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
60 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 ...
0
votes
0answers
407 views

View in browser PHP file xampp in Sublime Text 3

Try to view a PHP page in the browser with SublimeText 3 and XAMPP in Windows 10, but can’t seem to find the proper path. It still wants to open the browser to the directory location of the file, ...
1
vote
0answers
16 views

Set up a Jquery table to enable disqus comments to be retrieved and displayable on a html table

This is a not programming question, I request if is possible to do and if you have any preliminary indications to suggest I find this http://www.bluefinengineering.com/blog/custom-php-disqus-comments-...
0
votes
1answer
706 views

SSH tunnel to connect two servers via a third

I've three servers A , B, and C, plus my localhost. Each server is inside a proper network, and server C should connect to a mysql DB in server A on port 3306 to perform some tests. The scenario is ...
1
vote
0answers
200 views

Apache2 + php-fpm over socket

I have fairly clean install (and updated) of ubuntu 16.04 LTS, and i'm trying to setup PHP-FPM to be chrooted per-domain. I don't really want to open n ports on the server (they are local, but i don't ...
3
votes
0answers
929 views

Can't compile PHP 7.2.2 with OpenSSL 1.1.0g

So i'll get to the point. I want to compile PHP 7.2.2 on my Raspberry Pi (v1) with OpenSSL support. I have OpenSSL 1.1.0g installed with i compiled. Output from uname -a: Linux 4.4.50+ #1 Tue Mar 7 ...
0
votes
0answers
152 views

MAMP Pro Apache always times out after two minutes

I'm working with MAMP PRO Version 4.4 (9593) and have an issue with Apache (Server version: Apache/2.2.34 (Unix)) serving out PHP. Some of my PHP scripts take longer than two minutes to run. On the ...
0
votes
0answers
45 views

How to export Designer schema which i have created from localhost

Submitted URI too large! The length of the requested URL exceeds the capacity limit for this server. The request cannot be processed. If you think this is a server error, please contact the ...
0
votes
0answers
335 views

php-fpm with nginx slow on other sites

Hope you guys can help me out Heavy traffic site, traffic 6Gbit/s, 100k requests/hour, mostly static files Php-PPM works fine on the main site, very fast The problem: The development site, is very ...
0
votes
1answer
704 views

Cpanel/WHM: running PHP with PHP-FPM in Apache2

I have this CentOS 6.9 VPS server with cpanel and WHM, running Apache 2 with PHP 5.6 Ive enabled PHP-FPM on WHM and it shows as active in both WHM and Cpanel (in the MultiPHP manager sections) To be ...
0
votes
0answers
310 views

Php function fopen is not working in mac

I am running php script in which fopen function is not working its showing error. I am using local environment. $newf = fopen ($newfname, 'wb'); Warning: fopen(/Applications/XAMPP/xamppfiles/htdocs/...
0
votes
0answers
208 views

How can I find PHP files with trailing whitespace?

It's a best practice nowadays not to use a final trailing close tag in PHP files. The reason is that the trailing whitespace which sometimes is inadvertently added after the close tag causes lots of ...
0
votes
1answer
142 views

Godaddy does not receive an error response mail

I have developed an application in Laravel 5.5 that sends some emails. If an error occurs in the recipient (non-existent account, space limit, etc.), we are not receiving bounce as an answer, an ...
-1
votes
1answer
808 views

Regex to replace character inside an image tag

I would like to change like below from {% set desc = Lorem ipsum dolor sit &amp; amet, sed do eiusmod tempor incididunt <img src="https://google_image.jpg&amp;ver=1 %} To Lorem ipsum ...
0
votes
0answers
39 views

Moving between php versions on FPM/FastCGI

I'm trying to create a situation were I can change php versions on the fly for my nginx/fastcgi server. So far I have https://github.com/phpbrew/phpbrew working pretty happily but it can only change ...
1
vote
0answers
62 views

Proper permissions for postfix piped script

As my almost-alliterative title states, I am attempting to configure postfix to pipe incoming messages to a PHP script. As it currently stands, postfix apparently attempts to run the script as the '...
0
votes
0answers
136 views

Eclipse's Ctrl+k equivalent in Visual Studio Code

I am trying to use Visual Studio Code for my php projects. Coming from Eclipse I really miss Ctrl+K command which jumps to the next occurence of the same word and Ctrl+Shift+K goes to the previous. Is ...
0
votes
1answer
19 views

Redirect links using .htaccess file

I have a site with a lot of links that look like /click.php_id=602_from=139_to=42_url=1.html. I'd like to setup a redirect using .htaccess file(s) to have links that look like /click.php?id=602&...
0
votes
1answer
418 views

How to make a port listener code in the server that hosts my website?

I have my website hosted in godaddy, and I want to test one of the Embedded Application's TCP data transfer using the IP and port number of my website, for this can I use any php script (something ...
0
votes
1answer
133 views

Monitoring of folder not working under certain circumstances

I use a powershell script (based on this) to monitor a folder and knowing when a file is created. My script is the following: ### SET FOLDER TO WATCH + FILES TO WATCH + SUBFOLDERS YES/NO $...
0
votes
0answers
1k views

How to make multiple virtualhost in docker with php5.6-apache container?

I am trying to create virtual host in container php5.6-apache but when I try to run the command a2ensite. my host_1 file: <VirtualHost *:80> ServerName local.website1.dev DocumentRoot /var/...
0
votes
1answer
44 views

Is it necessary to set up apache, php and mysql?

I am developing mean-stack websites on my Mac. So I will need to use http://localhost:3000/..., https://localhost:3000/... to test the websites, and eventually http://localhost/localFile and https://...
0
votes
1answer
16 views

Unable to delete php extension

So I have an extension in PHP's folder which I want to be deleted, however, it throws this error. A:extensions as$ ls no-debug-non-zts-20121212 no-debug-non-zts-20131226 A:extensions as$ rm -rf no-...
0
votes
0answers
59 views

Local MediaWiki installation slow despite enabling Squid, parser, file, and sidebar caching

I have a local MediaWiki installation on a flash drive using XAMPP. I have enabled every possible form of caching as far as I know except for Varnish, since it's unavailable on Windows. Additionally, ...
0
votes
1answer
91 views

Migrating Multisite from Apache-mod_php to Nginx-php7.1-fpm

I need some help please. I recently decided to migrate my sites from Debian 8 + Apache 2.4 + mod_php + Varnish to Debian 9 + Nginx + php7.1-fpm + Varnish I did succesfully migrate a single ...
5
votes
1answer
486 views

PHP File access very slow in windows

I recently noticed, that my development server set up on Windows 10 is slow as hell. I did some debugging/profiling (Prestashop 1.6) with xdebug and culprint was file_exists. Script load time was ~43s ...
0
votes
1answer
249 views

How to access localhost on Ubuntu Linux Sub-system for Windows?

How to access localhost on Ubuntu for Windows? I'm on Windows 10 Pro 64-bit, version 1709, OS Build 16299.125 I've installed the Ubuntu 16.04.3 LTS Linux Sub-system locally for Web Development ...
0
votes
1answer
137 views

How do I run a bash script prompted by an html form?

My current way of going about this is to use PHP exec <?php $filename = "log.txt"; $text = $_POST['form']; $fp = fopen ($filename, "w"); if ($fp) { fwrite ($fp, $text); fclose ($fp); ...
0
votes
0answers
559 views

macOS high sierra install OPcache

On macOS High Sierra, I have the default php working fine. $ php --version PHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c)...
0
votes
0answers
426 views

Automatically unzip files on SFTP server

I need to find a way to automatically unlock & extract some zipped, password-protected files on an SFTP server whenever a zip file is dumped there. I know either Python or PHP would enable me to ...
0
votes
1answer
1k views

Starting phpMyAdmin gives mbstring extension is missing error even php-mbstring is installed in Fedora 27

I have installed phpMyAdmin after installed MySQL 5.7 and PHP 7.1.12 in Fedora 27, all installed using rpm packages via dnf command. But when I started phpMyAdmin on the web browser using localhost/...
1
vote
1answer
246 views

force WordPress/PHP to respect setgid bit when creating new files & directories

I'm hosting several WordPress sites on a LEMP VPS. Each site has its own Wordpress install (located under /srv/http/domain/wordpress), its own user account (site-user) and its own php-fpm pool ...
0
votes
1answer
812 views

Can't Install libsodium for PHP 7.1 on CentOS 7

I installed the package php71-php-pecl-libsodium and then added extension=libsodium.so to my php.ini but when I run php -i | grep sodium I get: PHP Warning: PHP Startup: Unable to load dynamic ...
0
votes
1answer
359 views

After upgrade to Ubuntu 17.10 rutorrent and nginx web console stopped working

I did upgrade from Ubuntu 17.04 to 17.10 and rutorrent stopped working with nginx. In web I see the following error: [19.11.2017 17:43:07] Bad response from server: (502 [error,getplugins]) Bad ...
2
votes
0answers
179 views

Homebrew blocked by Error: invalid attribute for formula 'homebrew/php/php70': version (nil)

I've tried brew update and brew doctor, fixing all errors that have come up thus far, but I'm still getting this error anytime I try to update or remove php70: Error: invalid attribute for formula '...
0
votes
0answers
39 views

Find exactly what PHP files are responsible for each PHP process

I have a WordPress website hosted on a shared Red Hat 4.4.7-18 Linux box, and from time to time I get huge memory and I/O spikes exceeding my allowed memory limit, making my website unresponsive. I ...
1
vote
1answer
805 views

How is $_SERVER[“HTTP_ACCEPT_LANGUAGE”] computed?

I know that the content of this variable looks like en-us,en;q=0.5 and that it represents the language the user is using, but how is the browser computing this variable? The Firefox browser has the ...
1
vote
1answer
65 views

Phabricator Storage Upgrade Not Completing

I am attempting to upgrade two Phabricator servers with glaring PHP5 vulnerabilities. The first server went without an issue but the second one does not seem to be able to complete the storage upgrade ...
1
vote
1answer
857 views

Find exact script from PID

I'm having some trouble on my hosting with too many entry processes running. The hosting company has given me SSH access so I can monitor things more accurately, currently just using top or ps aux. I'...
2
votes
0answers
397 views

Rename refactoring for PHP in Visual Studio Code

Is there a rename refactoring for PHP in Visual Studio Code? It is the only thing that stops me from fully move from NetBeans to VSC. Renaming is very importat for me (not search/replace). When I ...
1
vote
0answers
28 views

How to hide PHP file

I have a script to redirect any external url and that works like when i add this http://my-domain.com/URL.php?url= Before the external url like google, url after adding: http//my-domain.com/URL....
0
votes
1answer
51 views

is it possible to use a webpage to enter information into a terminal with php

I was wondering if it is possible to enter information into a php exec using something like a text bar on a webpage, so when they enter a word and hit "continue" php takes that word and uses it in a ...
0
votes
0answers
69 views

Can PHP/Linux perform Microsoft Authenticode code signing?

My organization is currently in the process of obtaining a Microsoft Authenticode and we would like to see if we can integrate it into our current PHP-based deployment process. Can PHP (or a shell ...
0
votes
1answer
26 views

PHP Script on AWS Runs at 5% instead of 100%

The PHP Script below is currently being hosted on a c3.large EC2 instance, with instance storage plus a SSD mount for MySQL. The file the script is reading is on one of the instance storage devices. ...
0
votes
1answer
81 views

Tell nginx and/or php *not* to interpret commands per directory?

I'm pentesting my new website, and used weevely to generate a php payload. I manually put it in the images directly where users will be able to upload images to my website. I'm able to establish a ...
0
votes
0answers
185 views

Possible .HTACCESS Issue

I am running a youtube clone script on a local install of XAMPP via a windows 7 machine. After installation I am able to see the home page but if I navigate to any other page either by link or direct ...
1
vote
0answers
235 views

Is it possible to add request URLs to the php-fpm.log

At present, I get entries such as the following in my php7.0-fpm.log [11-Sep-2017 13:32:17] WARNING: [pool www] child 28808, script '/var/www/mysite/public/index.php' (request: "GET /index.php") ...
0
votes
0answers
16 views

forcing authorisation for sending mail from PHP

I have modified my postfix submission port from 25 to 587. Yet it doesn't block mails being submitted from mynetworks or php scripts residing on server for submitting emails to be sent through port 25....