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
0
votes
0answers
12 views

Apache goes down when I run grep commands on SSH2 using PHP SSH2 connect

I am trying search by keyword in the whole log folder by using grep command and I am sending it through ssh2_connect from php to a remote server, when i run the script it puts down the APACHE and goes ...
0
votes
1answer
11 views

NTLM authentication module mod_auth_ntlm_winbind for Apache2 omits domain name

I have an Apache2 instance running on Ubuntu 18.04 in local intranet and I want to configure NTLM authentication on the instance. I have installed and configured mod_auth_ntlm_winbind usage for user....
0
votes
0answers
10 views

Imagemagick won't install

I'm running LEMP on a digitalocean droplet. We're running php v 7.2.19 on ubuntu 18.04.1. I'm trying to install imagemagick (apt-get install imagemagick) but am getting the error: Reading package ...
1
vote
1answer
1k views

PHP shell_exec times out, but not when executed manually

I have a Windows 2008 server with PHP and msys installed. I also have a simple php script that calls shell_exec and tars a few files. When I run the script on my development machine (Windows 7), it ...
0
votes
1answer
38 views

`GLIBCXX_3.4.20' not found Centos7

while starting deepstream output show like this how can i resolve this issue. I installed the latest version which is not available in yum repo by using rpm file and i can't remove this package too.....
0
votes
1answer
1k views

Apache Alias to access folder in different harddrive? (localhost)

Installed Appserv. Made a php. D:/Appserv/www/x/y/file.php Then I have a folder, like "E:/foldie" I want file.php to mess with that folder. I found this somewhere: <IfModule mod_alias.c> ...
1
vote
1answer
1k views

Apache doesnt respond after PHP script execution takes too long

We have a PHP application built with the Yii Framework, which connects to an Oracle DB and runs on Apache configured with Zend Core For Oracle. Apache also runs another application on a different port....
1
vote
1answer
28 views

PHP Zip can't be found

I'm running LEMP on a digitalocean droplet. We're running php v 7.2.19 on ubuntu 18.04.1. I'm trying to install php-zip (apt-get install php7.2-zip) but am getting the error: apt-get install php7....
0
votes
1answer
35 views

Accidentally gzipped every file in a folder containing website - now ungzipped but site has error 500

I accidentally gzipped every file in a folder that contains a website. The webpage are all .php files and the php pages get some information from a mysql database. I then ungzipped everything. If I go ...
1
vote
0answers
22 views

503 Service Unavailable error after PHP 7.3 was installed and PHP 7.0 removed

I have a forum that was originally running on Ubuntu 16.04.x LTS with PHP 7.0 and apache2. Recently I installed PHP 7.3 and updated the apache configuration. The system is also upgraded to Ubuntu 18....
0
votes
1answer
1k views

.htaccess is not working on Zend server on Windows

I am a beginner to MVC framework in PHP and also to .htaccess file. I use Zend server on Windows OS. My code in .htaccess is: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{...
2
votes
0answers
31 views

Downloading fails at random for our users, need help figuring out what's wrong

We have a file sharing service where users can upload, share and download their files. We are using AWS S3 to store our files. We're facing an issue where small files download fine, but when files ...
0
votes
0answers
13 views

Blocking traffic direct to backend server haproxy

I have the following problem. I have set up a reverse proxy using HaProxy. Now there are still users accessing the Backend IP Direct. And thus (unprotected) accessing the infrastructure without the ...
0
votes
3answers
1k views

Make Apache send a copy of requests to a script

Let's say we have a huge list of clients (~30) all running on the same server under different users (and other security settings). I need to write a "spy/logging" script which is able to handle all ...
0
votes
2answers
1k views

PHP - can't use function chroot

I've installed Debian 6.0.6 x86 on a VPC with the least possible software packages and when the installation completes I take a backup of the VPC and put it aside for later use. I have installed PHP ...
0
votes
1answer
1k views

Trouble migrating Joomla from Linux to Windows server

I'm having some trouble migrating a Joomla website from a Linux server to a Windows server. The database came over fine, Besides that, all I've done is download all the files from the current site, ...
0
votes
0answers
21 views

Getting no response when using POST method (URGENT)

I have 3 servers svrA, svrB, and svrC. svrA and svrB need to call a web service (http://example.com/api/consoleServices) hosted in svrC. Now the issue is sometimes I am able to get the response from ...
0
votes
1answer
14 views

Apache random 403 errors

We are using php 5.4 and a custom php page . When there is concurrent 300 users for some of the requests it throws 403 forbidden. This page does not use db connection . The apache maxclients is set ...
0
votes
2answers
13k views

phpMyAdmin AuthType=config: mysqli_real_connect(): (HY000/2002): No such file or directory

When I attempt to load phpMyAdmin 4.8.0 using AuthType=config I get an error: Cannot connect: invalid settings. mysqli_real_connect(): (HY000/2002): No such file or directory phpMyAdmin tried ...
0
votes
0answers
12 views

Determining What Process Isn't Cleaning Semaphores

I was having the common issue of not being able to restart httpd because of a high number of locked semaphores. After clearing those and restarting httpd, I also doubled the semaphores. However, I'm ...
4
votes
1answer
1k views

php-fpm keeps locking up

For some reason, php-fpm keeps locking up and/or hanging. It works for a little while, and then it will randomly just 'hang' for a long time upon trying to load a webpage. There's absolutely nothing ...
1
vote
0answers
16 views

PHP cURL on AWS starts returning error 0 after long uptime

We're using Ubuntu 16.04 on AWS (4.4.0-1066-aws x86_64) to send pushes to Android and iOS clients from PHP application using curl. This is the bit of code used to send a push to Firebase: $ch[$i] = ...
2
votes
2answers
1k views

Securing PHP's exec and others

I'm currently setting up an hosting service and, for now, i'm very concern about security. Here is my situation : I've set up multiple apache's vhost and for obvious security reason, i don't want to ...
0
votes
0answers
44 views

Is it good practice to keep .php files out of /var/www/html or /public_html [closed]

I've read that you can put php files outside of the document root of virtual hosts and that it can prevent people from accessing the .php files as well as prevent people from being able to download ...
0
votes
0answers
24 views

CPU crypto extensions for server tenants

How can someone use the crypto extensions (hardware acceleration) provided by Intel / AMD processors in PHP? Perhaps the underlying C code uses them when available automatically? There's no info about ...
3
votes
1answer
1k views

Enforce loading of php.ini files from current folder

My goal is to increase the maximum file size for uploads in WordPress. I have followed the steps on this SE answer and this tutorial (except the .htaccess part, because it's runnning nginx and AFAIK ...
0
votes
0answers
5 views

PHP built-in server keeps returning Malformed HTTP request [migrated]

So I am currently testing a project, where someone registers their PC via HTTP requests. For some reason when I send the below request from a friends PC the built-in PHP server returns: Invalid ...
0
votes
0answers
17 views

Using a SSH tunnel to reach nginx server serving PHP via fastcgi

We're working across two sites and the only way I can reach our nginx server is via an SSH tunnel, mapping port 9097 to 443. We use this regularly and I'm confident in it. The nginx server is serving ...
0
votes
0answers
17 views

Nginx upstream can't have multiple load concurrency

client => nginx_proxy => upstream_server(nginx+php)request php curl interface nginx proxy nginx.conf user www; worker_processes 40; error_log /data/logs/nginx/error.log error; pid logs/...
0
votes
1answer
1k views

AddHandler PHP for HTML on CentOS

I have installed apache and PHP from Yum on CentOS 6.3 I'm trying to get PHP to be parsed in .html files-- but I can't seem to figure it out. I have set AllowOverride All in httpd.conf and then in ....
1
vote
1answer
58 views

Upgrade PHP version from 7.2.13 to 7.2.15 in Ubuntu 16.04

I want to upgrade the PHP version in my Ubuntu instance. I run below commands. $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update Then I run; $ sudo apt-get install php7.2.15 But it ...
2
votes
3answers
7k views

pear on CentOS with “No Package” message

I googled for hours to find a solution but couldn't find anything. What can I do with this error? I couldn't install php-pear on centOS 6.5. [root@server ~] # yum search php-pear Loaded plugins: ...
0
votes
0answers
20 views

On Ubuntu 14.04 upgrade from php 5.6 to php 7.0

On an intranet Ubuntu 14.04 Server a PHP-Application is running by use of Apache2 and php5.6 (mod_php). I'm in the need to upgrade to php7.0. (I know both Trusty and PHP7.0 are outdated). I've tried ...
2
votes
1answer
1k views

GD Library not working even though it is enabled in phpinfo()

I am hoping someone here can give me some advice about why my GD Library does not seem to be working even though it is installed and enabled in phpinfo() Here is a quick rundown of what I am using: ...
0
votes
0answers
41 views

How do I force a download from a link of a different origin but the same domain on a given domain? [closed]

I have a website, a.b.hotgirls.com, with a link that users will download from, c.hotgirls.com. When clicking on a link like c.hotgirls.com/pics.run, the link renders the file in a separate tab ...
23
votes
3answers
26k views

Apache file negotiation failed

I'm having the following issue on a host using Apache 2.2.22 + PHP 5.4.0 I need to provide the file /home/server1/htdocs/admin/contents.php when a user makes the request: http://server1/admin/...
0
votes
2answers
36 views

Why is the Nginx PHP Unit ignoring the root parameter in this configuration file?

I'm trying to move example.com from a multisite WordPress installation into its separate WordPress installation folder. I've already setup a separate database and created a new file wp-config.php for ...
1
vote
2answers
1k views

How to configure sendmail to only send to specified domains?

I have a local development server (centos) which I develop a number of websites on. Occasionally I need to test email sending scripts. I want to avoid the development server from sending emails to ...
0
votes
3answers
1k views

how to keep file and folder permissions from changing

I have a directory of files and folders that are added and removed and the permissions that I had set keep changing. How can I permanently keep the permissions on a specific path so that no matter ...
1
vote
1answer
1k views

What are the best practices for hardening a hhvm ini file?

In order to improve security, Are there any best practices or "must have" to configure the HHVM settings? Are there any absolutely vital in terms of security? What is recommended for most use cases? ...
0
votes
1answer
1k views

apache , php , sendmail not working

I am using apache, php and sendmail. I can send mail from command line with sendmail. However, in php file, mail function is not working. Then, I run that php email test file from command line. It ...
0
votes
1answer
1k views

Apache 2.2, worker mpm, mod_fcgid and PHP: Can't apply process slot

We're having an issue on an apache server where every 15 to 20 minutes it stops serving PHP requests entirely. On occasions it will return a 503 error, other times it will recover enough to serve the ...
-1
votes
0answers
14 views

How to configure Laravel with apache2 with port number on Ubuntu?

I have Laravel API project to run with port 8000. I want to deploy this on dedicated server. After that I want to access with IP and Port number (http://123.12.32.1:8000). This is the current ...
1
vote
1answer
21 views

Php conflicts with older version

I used these commands: yum remove php* yum install php71u php71u-cli php71u-common php71u-gd php71u-mbstring php71u-mysqlnd php71u-pdo php71u-xml php71u-json and I installed php 7.1 After that i ...
0
votes
0answers
8 views

cron job is not working with dual php versions on same server [duplicate]

My server is centos 6. I use it primarily for websites or some software. I have webmin and virtualmin installed. Right now i have dual php versions on the server since some require 1 and others ...
0
votes
1answer
2k views

404 Not Found with nginx and php

I got inside the browser: 404 Not Found nginx/1.13.10 and in the logs I got: $ ls logs/ nginx-access.log nginx-error.log $ cat logs/* 172.17.0.1 - - [27/Mar/2018:02:11:35 +0000] "GET / HTTP/1.1" ...
0
votes
0answers
54 views

How to debug strange HTTP/PHP server behavior (garbled text in some files)

This is a weird one. I'm administering a FreePBX server using their standard CentOS 7 based distribution running in a virtual machine. Every so often (usually a few months in between occurrences), ...
0
votes
0answers
21 views

PHP is showing plain text while using nginx as reverse proxy

I'm trying to test my reverse proxy using php, so my steps were: 1- changed the apache config to make Listen 127.0.0.1:8080 2- made a nginx config file in conf.d/default.conf and here is my ...
0
votes
2answers
1k views

Slow PHP Page Load on IIS7 until AppPool is Recycled

Using PHP 5.3.13 and MySQL 5.5.25 on Server 2008 R2 (IIS 7.5). I have a PHP page that pull some info from MySQL and outputs some XML. The page works fine, and takes about 5 seconds to load a very ...
0
votes
0answers
12 views

Using PHP to create a udp listening post

I have a php application that manipulates database and supplying REST API for clients, it works fine. I was asked to add it capabilities to listen to UDP port, 24/7, and use whatever is submitted ...