PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.
-3
votes
0answers
17 views
grep with web interface [on hold]
Ive an idea of project but I dont know how to do it.
I want to code a PHP Search Box using for grep in a specific directory on my webserver (example/of/dir). When a users type a string of character,...
0
votes
0answers
13 views
httpd stopped working after dist-upgrade
After a long period of time we made apt-get dist-upgrade on our Debian production server and update ofc did not work out successfully, because it brokes some services, ex. exim and httpd (after ...
0
votes
0answers
20 views
how to trigger a PHP webpage after lsync copies a file
I have the following logic in my /etc/lsyncd/lsyncd.lua file
require "lsync-widgets"
sync {
widget_sync,
source="/tmp/folder1",
target="/tmp/folder2/"
}
And then in my lsync-widgets....
1
vote
0answers
57 views
1 FastCGI sent in stderr: "PHP message: PHP Fatal error: session_start(): Failed to initialize storage module:
I installed phpMyAdmin on my Arch Linux box. I then created a sym link named phpmyadmin in my /usr/share/nginx/html/ to /usr/share/webapps/phpMyAdmin/. When I visit http://127.0.0.1:8080/phpmyadmin/ ...
0
votes
2answers
28 views
RHEL7 & PHP: File is not uploading (even into /tmp/)
After few days, since I asked this question:
LINK
I realized, that maybe it's another problem.
I used package inotifywait to check, is a temporary file generating after sending html form. ...
0
votes
1answer
30 views
Bash script to auto detect php5.6 or 7.0 and alternate them without having to specify
How can I create a bash script that detects version of php, disable it then shift to the another without telling it which one to . I work with ZF2 and some detailed errors fail to show while using php ...
0
votes
0answers
61 views
How to install the latest LAMP in Debian 8?
I've been following these steps since I started to setup servers, but I noticed that the versions that this workflow installs are not the latest despite I always do a:
apt-get update && apt-...
2
votes
1answer
17 views
PHP throwing out an error version mismatch with MySQL plugin
I am using Debian Jessie here, and I have got a couple of PHP pages showing the error:
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): Headers and client library minor ...
0
votes
2answers
31 views
PHP move_uploaded_file permission denied only on RHEL
my PHP script is using to register new user with his photo.
On Debian, everything was fine, but when I installed on my server RHEL, problems has begun.
Directory /tmp/ rights are 777 and "upload/" ...
0
votes
1answer
22 views
PHP Failing to connect to Postgres on CentOS 7
I can connect to my database by running php via the bash:
php -r '$link=@pg_connect("host=fakehost.edu port=5432 dbname=db user=user password=totallynotthepassword");if($link){echo "connected";} ...
0
votes
0answers
12 views
Update Vesta to use php7.1
I recently found the Vesta panel and I'm evaluating it to use as a panel for boxes that don't really warrant WMH/cPanel. The one thing I'm having issues finding the best process for is how to remove ...
1
vote
2answers
36 views
File containing directory structure
I'm currently doing a CTF challenge and have extracted what I assume is the flag by injecting a relative path into the $filename parameter of a call to the PHP function
file_get_contents($filename)
...
0
votes
0answers
44 views
Fedora - Nginx PHP-FPM - constantly changing FPM Socket to root
Apologies in advance if my terminology is not on par.
So I've just setup my work dev machine successfully on Fedora Workstation with Nginx and multiple PHP versions (using Remi Collet's Software ...
0
votes
2answers
122 views
Centos 7 Apache doesn't load .php file?
Am using CentOS 7 Latest Version.
I already enabled httpd service and it's working file.
i did installed php and my issue started once i add php file to /var/www/html/
for example : test.php
now ...
1
vote
1answer
21 views
Redirect links of a php application
This is with Apache 2.4 webserver.
I copied the hole site from one domain to another. Let us say from olddomain.com to newdomain.com/subdir/. The site is a webservice with news and advertisements.
...
0
votes
0answers
15 views
phpIPAM Cacti and Nagios on same server not functioning properly
I have a config mismatch and I can;t see what and why.
I installed httpd cacti and nagios and all working fine.
When I treid to ADD phpIPAM I added the following code into the httpd.conf (Centos7.3):
...
0
votes
0answers
42 views
Run expect script via php
So i wrote a simple php page
<?php
system ("/srv/http/control/wifi.sh");
?>
wifi.sh
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
genpasswd=$(tr -dc A-Za-z0-...
0
votes
0answers
7 views
.Net Core and PHP parallel on Linux VPS
Is it possible to run both on a single Linux vps that has Apache en Nginx?
I know there is some reverse proxy needed to get kestrel(core) exposed. But i'm not really sure how it can be parallel to ...
0
votes
0answers
15 views
CWP PHP Version Switcher - How do you build with flags?
I am using CentOS Web Panel and I want to switch my primary PHP version to 7.0.18, but compile with this additional flag: --with-mssql=/usr/local/freetds
Is there a way to run the build from the ...
0
votes
1answer
109 views
Canno't execute sudo add-apt-repository ppa:ondrej/php
When I try to execute sudo add-apt-repository ppa:ondrej/php:
It displays me this
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = ...
1
vote
1answer
80 views
Can't get php 7.1 to work on apache 2.4 (FAMP)
Running FreeBSD 11, I am having trouble getting Apache 2.4 to work with PHP 7.1.
Built apache24 from ports
Built php71 from ports
Added index.php to DirectoryIndex (httpd.conf):
<IfModule ...
0
votes
1answer
114 views
Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed
I've got this error while running a PHP command-line script on a freshly installed server:
PHP Warning: Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed: Invalid argument
The server is ...
0
votes
0answers
47 views
Connection reset when uploading Wordpress Plugin or theme on Ubuntu
System OS:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS
I have installed a LEMP stack:
nginx/1.10.0 (Ubuntu)
MySQL 5.7.18-0ubuntu0.16.04....
0
votes
0answers
40 views
php70-fpm doesn't include www.conf on NetBSD
I'm having issues with php70-fpm not including any config files.
I installed php70-fpm using pkgin in php70-fpm. It installs from here: ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/7.1/...
1
vote
0answers
189 views
installing php 5.6 or higher on centos 6.9
i am new here.
i was trying to update my php version from PHP 5.5.35 to PHP 5.6 or greater
i searched on google but none of the methods work.
i tried
sudo yum install epel*
sudo yum update
sudo ...
0
votes
0answers
21 views
Dependency problems installing php70-fpm on NetBSD
I'm having issues installing php70-fpm on NetBSD. The version I am using is:
NetBSD rpi 7.99.64 NetBSD 7.99.64 (RPI.201703032010Z) evbarm
I am installing like so:
pkgin in php70-fpm
But upon doing ...
0
votes
0answers
83 views
wget or curl a php-redirected file
I'm trying to install the PGI community edition compilers on a server I have access to via SSH, but I'm unable to download them correctly.
The download page is http://www.pgroup.com/products/...
0
votes
0answers
10 views
Plesk 12.5.30 php issues
Since this afternoon I am experience this issue with my server. I am running centoS 5.11(final) and when I click on php settings from plesk, I see these two hanlders with the following error:
5.3.3 ...
0
votes
1answer
57 views
Centos 6.8 upgrade PHP 7
I want to upgrade my VPS to PHP 7
But I get this problem every time
[root@cloudbox75067 /]# yum install php70w php70w-opcache
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror ...
1
vote
1answer
36 views
PHP installation error
I'm running Linux Mint Maya. Whenever I try to run a php file from localhost, Firefox tries to download the file. Apache seems to be working OK and when I type which php at a command prompt, I get /...
1
vote
0answers
16 views
nginx: [emerg] could not build referer_hash, you should increase referer_hash_bucket_size: 64
Good Day,
I am a novice to programming and i am trying to run the livehelperchat open source code(https://livehelperchat.com/) in my ubuntu-16.04 instance and I have Nginx as default server listening ...
0
votes
1answer
11 views
PHP changes doesn't reflect : always_populate_raw_post_data = 0.
I get this error on the installation of a magento instance.
in my php.ini settings I have changed the value
from 0 to -1
and restarted apache2 and everything needful is done.
It still shows this ...
0
votes
2answers
29 views
How to create linux user with auto expiring after fixing period
I created an PHP Applications that can be create new linux user account with auto expired after several periode.
After searching on Google about 'How to automate remove linux user after fixing ...
0
votes
0answers
55 views
Arch Linux - Acquire or Compile missing PHP extensions
I've installed my first Arch Linux setup, and loving it thus far, with the small exception of setting up my dev environment properly.
My previous OS was Ubuntu 16.04 on which I ran Nginx, PHP5.6-FPM ...
0
votes
0answers
43 views
Apache TIME_WAIT connections, “W” Sending Reply and php on solaris 11.2
I have a server with apache server with php.
S.O. Solaris 11.2
Apache 2.2
PHP 5.3.28
RAM 20G
16 cores
In apache I have configured 40 domains, with the following characteristics:
<VirtualHost *:80&...
0
votes
1answer
18 views
Push commands to OpenWRT router via php
I've developed a static webpage hosted via an OpenWRT firmware based router and would like to create a reset button held on that page, the console command is:
reboot
I'm struggling to work out the ...
1
vote
0answers
19 views
Logrotate exits with return code 1 with CodeIgniter 2
I use a fake log file "log.php" as CodeIgniter writes date-named log files.
/home/boxu/website/html/protected/application/logs/log.php {
daily
rotate 31
missingok
...
0
votes
0answers
137 views
Errors Installing PHP 7.1.0 with openSSL 1.1.0c
I am not a Unix admin, or even a regular user. At work I've been asked to install PHP and OpenSSL, which I was able to do on our development box without issue. The test box is supposed to be identical ...
1
vote
2answers
47 views
Exit php script somehow, but keep it running [duplicate]
I have a PHP script running which is taking hours, and I have to close my computer. I ran the script using php script.php.
Is there any way I can close this script while keeping it running? (It's ...
0
votes
1answer
136 views
Wrong OpenSSL header version after update from jessie backwards
I have server on Debian Jessie with OpenSSL 1.0.1t 3 May 2016.
I wanted to update OpenSSL to 1.0.2 and set custom DH parameters .
So I added backports to sources.list , and installed new OpenSSL ...
0
votes
1answer
273 views
No package php available on centos 6 vps
I have centos6.8 vps and installed php5.5 version using cpanel but Now I've to install/upgrade php5.6 on server but getting no packages available for php5.6 and php7.0 also;
So that, I have installed ...
0
votes
1answer
33 views
how to run rdesktop command from php in linux?
I want to open rdesktop xrdp window by just clicking on button from php website in linux machine.
Here is the php code :
shell_exec(rdesktop localhost);
This will not display any error.
1
vote
1answer
118 views
NGINX is not loading PHP files
My Nginx on Centos 7 is not loading up php files. I have installed php-fpm and couple of other php modules and when I run php -v it shows me that the installed version is 5.6. I have installed SSL ...
2
votes
1answer
52 views
Cannot kill process group when invoked by PHP
I have a script spawning two zombies. I can kill the group via kill -- -<parent-pid>, but when invoked by the PHP interpreter, that won’t work although killing every single process manually will....
0
votes
1answer
35 views
Raspberry Pi & Apache2, Accessing files outside of webroot
Like the title states, I have a simple apache2 server set up on my raspberry pi to run a local website at home.
I'd like to be able to use PHP to read the contents of other folders on the Raspberry ...
0
votes
1answer
29 views
Limiting Scope of File Writing by PHP Script
I am in the process of writing a PHP script that will add IP address blocks to the .htaccess file. My concern is that I do not want to have the .htaccess file open to the web server user for general ...
0
votes
1answer
305 views
SSMTP not sending mails “Cannot open mailhub:25” (tldr : file permissions when user is www-data)
I struggled a LOT — way too much — fixing an issue with my SSMTP install so I decided to share the solution here.
I got multiple instances of php inside docker containers. Every instance should be ...
0
votes
1answer
60 views
PHP Permission Denied
I have a raspberry pi running Apache2, PHP5 and Samba on it (so I can access the pi from my home network as a network drive).
However, I have managed to change the apache2 running directory to /...
3
votes
1answer
187 views
Something is renaming php files to .php.suspected; I'm trying to find out what
Related:
https://serverfault.com/questions/748417/something-renames-files-to-filename-ext-suspected
https://stackoverflow.com/questions/32835796/php-file-automatically-renamed-to-php-suspected
I ...
1
vote
1answer
43 views
Resolve urls within the server
My problem is urls within my PHP scripts are not resolving correctly. Ie, the domain name I am using in a PHP script doesn't resolve back to the server when accessed from within the server.
For ...