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.

learn more… | top users | synonyms

0
votes
1answer
20 views

Running cron job manually and immediately with PHP

I just wanted to run all my cronjob manually and immediately, following command works well in command line terminal but not working with shell_exec crontab -l | grep -v '^#' | cut -f 6- -d ' ' | ...
0
votes
1answer
28 views

Nginx .php scripts restriction in subfolder

I would like to deny external (from web) access to some PHP files related to MoxieManager. Whole MoxieManager is in www/moxiemanager folder, where www is accessible from web. Now I tried this ...
0
votes
1answer
19 views

Single Thread CPU Performance with PHP

I have a lamp web server running a website that is getting very feature bloated. I have a few pages that are taking 2-3 seconds of CPU time to render the PHP. Most other pages a processed in about .2 ...
1
vote
2answers
40 views

How to check if php built-in server is running

Recent versions of PHP has a built-in webserver (for non-production environments) that can be started with php -S [...]. How can I check if it's already running on the server before attempting to ...
0
votes
1answer
39 views

Configure Linux and PHP to send email via script instead of SMTP

I have a server with a static IP and also a domain pointing to it. Because it is behind a firewall that blocks SMTP (ingoing and outgoing), I am not able to send any EMail from it. To be able to send ...
0
votes
1answer
8 views

Mercury not sending emails

I have a Mercury SMTP server running on localhost (announcing as 127.0.0.1) right now. Unfortunately, I am unable to send emails from it to GMail. I tested sending an email to myself using ...
0
votes
2answers
38 views

Regarding rewrite engine

My htaccess file contains this Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^.*$ ./index.php this redirects all ...
0
votes
0answers
77 views

Cannot start Debian 8 (Jessie) after installing PHP 7

I've just installed PHP 7 on my VirtualBox VM (host Windows 7, guest Debian 8). Links: german how-to on got-tty.org, Dotdeb blog article "PHP 7.0.2 for Jessie", Dotdeb blog article "Instructions". ...
-1
votes
2answers
45 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
0
votes
1answer
29 views

PHP.ini file causing WordPress site to crash on Windows IIS

I'm running WordPress on Windows IIS (GoDaddy Hosting). The website was created using Visual Composer, which requires an increase in the memory limit. The website is also installed in a subdirectory ...
0
votes
2answers
54 views

Requests made to a website with a different domain/url in log files, hacking attempt?

in one of my websites I am logging all url requests made to the server. I log that data for stats purpose to improve the website. The logs look like http://example.com/search 2016-01-12 ...
1
vote
1answer
32 views

How to allow just one site to use PHP's exec() function

I have a simple Apache with mod_php server on CentOS 7. I've disabled the exec function in php.ini but I need to use it on one Vhost. Now obviously I know I can't use multiple php.ini files and I know ...
1
vote
0answers
9 views

Apache2 mod-fcgi seperate users for two applications

I try to configure my apache like this: https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-8.10 The point is that I want to have an user for typo3 and one for ...
-1
votes
0answers
100 views

Ioncube 5.3 wont work i have php 5.3.3

Hello please help me i have pronlem with ioncube [root@vps ~]# cat /etc/php.d/00-ioncube.ini zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so [root@vps ~]# php -v Failed loading ...
-2
votes
0answers
30 views

Apache consuming too much CPU (each time when access)

I have some troubles with CPU loading by Apache and would be grateful for your help as I do not understand much (but I am trying to...). I use Kubuntu machine as a server machine for The Bug Genie ...
-1
votes
0answers
14 views

PHP-gd wont work after install

I'm trying to get PHP-gd working on centos 7, I've installed it using YUM and restarted and ensured it is in the php.ini file but it still won't load, phpinfo shows no GD, any ideas what problem could ...
0
votes
1answer
59 views

Nginx - redirecting all requests after a URL path to a PHP script

In our existing Apache setup, we have a .htaccess file in a folder which redirects all requests to a PHP handler. For example: www.example.com/gallery/user01/xyz.png For this URL request: The ...
0
votes
4answers
72 views

Migrating really old RedHat server to cloud

I've got a client with a really, really, really old PHP3 webapp that runs on an ancient consumer-grade PC with RedHat 7.somethingOld. I've got backups of the software and database but he's very tight ...
1
vote
1answer
22 views

Cannot send email address to office 365 email address

i have a web page used to send direct email set of email addresses stored on my database . all email addresses are receiving my emails fine except office 365 users so my question is do i need extra ...
-1
votes
1answer
30 views

Folder migration ideas

I've got to the point where it impossible to load a folder on the server because there are so many sub-folders within it, getting close to 100,000. I currently store user's images in a filing system ...
0
votes
0answers
41 views

The apache2handler SAPI is not supported by pthreads

It has been weeks now that I cannot install pthreads. I am going to list the error logs then I will list my configuration options. These are the errors I get:(Apache Error Log) The apache2handler ...
4
votes
1answer
50 views

Nginx HHVM Wordpress issue with PHP Execution in one intermediate subdirectory

I have a weird situation with one of my websites, still in development in AWS. I have nginx 1.9.9 with HHVM 3.6.6-1.amzn1.x86_64 on a t2.micro. It's not publicly accessible. I have a custom written ...
0
votes
1answer
18 views

Php can't find hash function

I'm using apache with php on amazon linux. I've updated php from 5.3 to 5.5 and apache from 2.2 to 2.4. Now calling echo hash('sha256','wtf'); is behaving in a strange way. It works for a while and ...
0
votes
0answers
17 views

Apache2 Graceful Loads Different php.ini

I have an apache server running Apache/mod_php. On Fresh start and when using sudo service apache2 restart the correct php.ini file is loaded: Doing a graceful reload of apache i.e "sudo service ...
0
votes
0answers
8 views

phpPgAdmin - maximum number of concurrent users? [duplicate]

I have recently set up an Ubuntu server with Apache, PHP and phpPgAdmin. I want a group of people to be able to simultaneously run queries against our testing PostgreSQL database as needed, accessing ...
0
votes
1answer
25 views

An other FPM instance listening on php5-fpm.sock

i have set up multiple PHP versions in ISPconfig 3 and the hole thing actually works except i can not start more then one Version at a time then i get this error "An another FPM instance seems to ...
2
votes
1answer
24 views

How to run a PHP application in a subfolder of a website using mod_mono on Apache?

I have a website running on mono (on Debian stretch). I would like to have some subfolders which would be handled by php5 module (webmail, stats and PhpMyAdmin for example). Is there a simple way to ...
0
votes
1answer
13 views

Apache 2.4 + PHP CGI SAPI: separate access_log of requests hitting PHP processing?

It's hard to tell from Apache general access_log which requests are processed by PHP, because direct file hits muddy the waters. PHP FPM SAPI has a super useful access_log directive, but how do I get ...
0
votes
1answer
31 views

Invalid variable name: `--with-jpeg-dir' when compiling PHP7 on CentOS7

I'm trying to configure PHP7 and I'm getting this error even though ./configure --help says that the variable name is --with-jpeg-dir. What am I missing? Here is my command: ./configure ...
0
votes
0answers
39 views

Apache + PHP Memory Limit Upload Issue

My environment is Fedora 20, Apache 2.4.10, and php 5.5.26 and I am having an issue with uploading a file that is greater than 2 GB's. If I upload a file greater than 2 gb's I'm noticing that while ...
-1
votes
1answer
40 views

vBulletin upstreaming to Nginx server

I have two acount on RHC Openshift so i want install nginx one one server and vbulletin on the other server , so have combine server 1 to server two (nginx to Vbulletine) I try this configuration for ...
0
votes
0answers
14 views

FileMaker internal cache?

When I do a random insert+read on a FileMaker database through the FileMaker PHP API, using a PHP test script executed from the command line on the same local machine, the response time varies. First ...
1
vote
1answer
67 views

How to configure Nginx to support PHP-FPM on Mac OS X

I am making a website with a contact form, and I want to use PHP. The website is hosted on my simple local server using NGINX. I know NGINX uses FastCGI and PHP-FPM, but being new to this, I'm not ...
4
votes
1answer
270 views

Will preventing POST requests stop the spread of a remote access trojan?

I like the acronym RAT (remote access trojan), because it resembles another type of thing you need to get rid of from your kitchen, and because when you get rid of one and find the hole it made and ...
2
votes
1answer
35 views

PHP CLI not loading IMAP extension

When I try to run a script that uses imap in my browser, it works fine (it is loaded from a Ubuntu 14.04 server on my network with the extension installed). However, when I try to use PHP CLI on said ...
1
vote
1answer
13 views

Why does a new application pool identity have write access?

I am running IIS 8.5 with PHP (various versions) via FastCGI. Impersonation is on in the PHP config for FastCGI. The app pool is set to use the App Pool Identity. In fact, if I actually ...
2
votes
0answers
61 views

Issue with Headless selenium on CentOS 7 Minimal

Required: I'm trying to run headless selenium (using PHPUnit) on fresh CentOS 7 minimal. Problem: It seems I installed everything correctly but firefox is not launching and my selenium web driver ...
1
vote
2answers
27 views

what are my options for linking directories

I have a configuration file which refers to a file structure. This is what I have <?php // HTTP define('HTTP_SERVER', 'http://XXXX.co.uk/public_html/'); define('HTTP_IMAGE', ...
1
vote
1answer
16 views

Shibboleth - Secure whole IIS application

I've setup shibboleth SP on my server and now I want to protect my IIS folders. I followed a few tutorials and used this syntax in my shibboleth2.xml file: <RequestMapper type="Native"> ...
1
vote
0answers
31 views

Apache using all cpu and cause OOM killer

I have an Xen-VPS CentOS 6.5 64 Bit with 2GB memory and 4 GB Ram, I have application with php, in my application lot of pages need to image which generated by php_imagick extension, here is apache ...
1
vote
0answers
32 views

FastCGI and tmpfs

I read some articles about using tmpfs for /tmp and PHP sessions directories for better performance, and it sounds interesting. I'm using Centos 6 server with LAMP stack (+FastCGI) and in my ...
0
votes
1answer
61 views

Make nginx return a JSON header

PHP/5.4.45, nginx/1.2.1 My PHP script set correct content/type for json: header('Content-Type: application/json; charset=UTF-8'); But in server response header: Content-Type:text/html How I ...
-3
votes
2answers
43 views

Server not recognizing that wget is installed on OS X Yosemite [closed]

I'm trying to install some software (called Prohits, used for mass spectrometry data management) on a localhost server I set up. One of the requirements for the install is that I have wget installed. ...
2
votes
1answer
34 views

How to run a stack trace on Apache?

I have a PHP web application running on Apache/mod_php that works fine for several days and then fails, returns 500 Internal Server Error. I've turned on debug logging and do not see anything in the ...
1
vote
1answer
23 views

How to properly use sendmail with php with mutliple domain

I'm hosting two websites created with wordpress on a server. Those website should be able to send mails to users, but it fails for almost receivers (except maybe gmail). I found that the problem was ...
-1
votes
1answer
321 views

How to upgrade PHP to 5.6.x or 7.0.x on CentOS 7.2?

I'm on CentOs 7.2 with PHP 5.4.16. I'd like to update to PHP 5.6.x or maybe even to PHP 7.0.x if it's safe to do. What are the steps to safely switch to a newer PHP version? These are PHP related ...
1
vote
1answer
27 views

HTTP Header's not matching

Is there a difference between what headers php returns and what is set in nginx? When I run: curl -I mydomain.com I get as expected (I have keep-alive off) Connection: close But when I output ...
0
votes
0answers
37 views

Using multiple versions of php

I have gone through the linked SO question already. I want to use php 5.6.16 as the default one on my debian installation. I've compiled it already with the --with-apxs2=/opt/httpd/bin/apxs parameter ...
1
vote
2answers
43 views

unable to run generated python (selenium) script from PHP

I have an Ubuntu machine for headless selenium tests. I generate a python script in /var/www/tmp/random123name.py via PHP and execute them. The script works when run from command line user, fails ...
1
vote
1answer
23 views

source code pointing to different php version on different server

I was just wondering if it is possible to "Compile" the same php source with different PHP versions. Let say, source code hosted on Server "A" with php 5.4, I can test the same source code without ...