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
0answers
32 views

Zend Guard Loader Not Working

I'm running a 14.04 Ubuntu server provisioned using ansible. The roles are setup correctly, and the php.ini is reflecting the path to the file correctly, however php does not see it. Php.ini in ...
0
votes
0answers
8 views

Install memcache php ext on php 5.6

I have php 5.6.6 installed on Amazon Linux. I want to install memcache extension (not memcached server, we use Elasticache). I try # yum install php-pecl-memcache.x86_64 And get the following ...
0
votes
1answer
21 views

Nginx rewrite downloads php instead of running it

I have the following code to redirect users visiting login.php to another page: http { .... geo $bad_user { default 0; 1.2.3.4/32 1; 4.3.2.1/32 1; } server { .... location = /login.php { if ...
0
votes
0answers
2 views

Debug slow “git pull” operation executed by the Local System account on a Windows Server

On a Windows server, which runs Apache and PHP, the webserver executes a git pull through a PHP script. This is part of a deployment process. When the Apache2 service runs under the Local System ...
0
votes
0answers
4 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains ...
0
votes
1answer
15 views

Installing php 5.5+ on Centos 6 alongside 5.3

How can I install PHP 5.5+ alongside php 5.3 (or 5.4 with the EPEL repository) on a Centos 6 server? I don't want to remove or supersede the default version, but I would like to have both versions ...
0
votes
2answers
56 views

How can I check who created a file on server?

Looking through server logs I've noticed some mailicious PHP files hidden among WP and Joomla folders and I'm wondering how they got on the server. Is there a way to review that? It's a shared hosting ...
0
votes
0answers
7 views

Php,apache ds,kerberos integration [on hold]

I have installed Apache ds and enabled kerberos server(the one coming along with DS).I am successful in connecting to server using GSSAPI authentication from Apache studio.Apache ds and kerbros is ...
0
votes
0answers
13 views

Apache SSO (mod_sspi)

I am trying to implement an auto login function into my mediawiki by using their windows credentials. I am using Apache Server (V2.2). I have implemented the Auth remoteuser extension and has ...
0
votes
0answers
18 views

How can I su -l user -p password from a scripting language running by apache server? [duplicate]

I ahve been trying to run crontab by a PHP script that is run by my apache web server. The user is apache and I have found out by running shell_exec that apache cannot run crontab: $cmd='crontab ...
-2
votes
0answers
13 views

Free Safe and Professional PHP stack like Zend-Server [on hold]

I'm looking for a free PHP stack for development and products implantation that has an enterprise security grade and support both Linux and Windows platforms and based on latest stable version of PHP ...
0
votes
0answers
21 views

nginx downloads .php files - error configured

I'm trying to follow this tutorial in order to create an amazon machine with nginx and php: http://stale.coffee/ec2-micro-instance-adventure-nginx-php-mysql.html All good, I opted to use ...
-2
votes
0answers
17 views

is it wisely to use php for a big messenger server? [on hold]

I want to start programming a messenger server (chat , groupchat and ...). This server must support milions of users. For first question , is it wisely to use php for this server? Because php is'nt ...
0
votes
1answer
59 views

how to remove .php extension using htaccess on godaddy linux hosting

How to remove .php extension using htaccess file. I have tried many codes (which I found on internet but not got success. An Internal server error is regularly showing. I am using Godaddy Linux ...
1
vote
2answers
38 views

Can't get apache working after installing nginx & hhvm

I had Apache2 running on my local ubuntu machine and I installed nginx & hhvm on my local for debugging purposes by following this tutorial. I would now like to switch back to Apache2 as I had it ...
0
votes
0answers
8 views

How do I set permissions on directory(folder) on IIS 6.0?

I am trying to set permissions on uploads folder. I have two projects - an original project and a pilot project. I am trying to upload images from php code. It works for me for the original project ...
-1
votes
0answers
15 views

Limit php mail to local delivery only cPanel /WHM [closed]

cPanel based hosting - I need to configure the servers so any php based email will only deliver to local email accounts. This is so things like contact forms will work but php mail can't be used to ...
-2
votes
0answers
12 views

$_SESSION failing when calling PHP file through a CDN [on hold]

I am not sure if using a CDN is appropriate here in the first place. The content I am hosting is an Apache(with PHP + MySQL) backend for a mobile application. Instead of calling my PHP files through ...
-2
votes
0answers
8 views

Broken PHP or Apache handler [on hold]

I have try to install ionCube Loader on my Virtualmin (CentOS 6.6) using Method #2 from http://www.servermom.org/how-to-install-ioncube-loader-on-centos-6/802/ Method #2: Step 1 – Issue the ...
0
votes
0answers
10 views

PHP exec() pkill works but not kill, why? [closed]

When making a PHP script for a website to kill a process, this works to kill all processes with that name... <?PHP exec ("pkill linuxjampded"); ?> But killing them via a specific port ...
0
votes
0answers
21 views

IIS 7.5 - PHP environment variables at the site-level

I have two versions of the same application (demo & staging) running on the same IIS server. The application relies on an environment variable via getenv("APP_ENV") to set configuration ...
0
votes
0answers
8 views

Can i add Permissions to IIS 7.5 for accesing a Removable Drive

I would like to start a C++-program using PHP on my IIS 7.5 which is designed to remove a Removable Drive which is plugged in into my PC. Now the program getting started but returned array(2) ( ...
0
votes
0answers
16 views

Nginx User Directories

I am trying to configure nginx so that when going to http://example.com/~user/ it will load files from the /home/~user/www/ directory. I have found a script that seems to work for .html files but ...
0
votes
1answer
13 views

PHP 502 Server Error: Problems with code or server?

Not sure if this is the right forum, but I'm hoping someone can help me. We had a web app running on our web server for a while now. Suddenly it stopped working and displays a 502 error - Web server ...
0
votes
1answer
20 views

RHEL and PHP versions

RHEL 7.1 ships with PHP 5.4 and that version is going out of support soon. Based on historical trends, will RHEL upgrade to a new major version of PHP? UPDATE RHEL 7.1 - PHP 5.4.16 RHEL 7.0 - PHP ...
2
votes
1answer
47 views

Reading 65k rows hangs PHP/MySQL

I am developing a PHP application that processes IP adresses. I am working with mysql tables containing up to 4 billion rows. I have a script that currently needs to fetch 65536 adresses from this ...
2
votes
1answer
18 views

PHP/FastCgi - Which is the threshold over which to use nginx instead of apache

I'm a PHP developer, I have always developed on a LAMP environment and it's all gone well 'til now. At the moment, I am developing a PHP web application, still on apache and without the use of any ...
0
votes
1answer
16 views

Block/Prevent Adminer - Apache [duplicate]

I found out that if someone was able to hack any FTP account on my server and upload Adminer they could alter the database. I tried Google'ing a way to block or prevent Adminer from working, but got ...
0
votes
0answers
18 views

What caused apache to crash?

I have a high load server using php/apache/APC working fine for months. In the last 2 days it has crashed midday. if I restart apache it works so the problem is probably in the apache/php/apc stack. ...
1
vote
1answer
16 views

Exim4 intercept all outgoing mail

I have a LAMP stack set up on a Debian 8 (jessie) machine. I'm trying to find a way of intercepting all outgoing mail sent by PHP (through sendmail) and instead of sending it out, deliver it to my ...
0
votes
0answers
16 views

How to use php-cli instead of php cgi-fcgi as root? [closed]

I'm trying to get php-cli to work as default. When I login as a regular user all is fine and php aliases to php-cli. When I elevate privileges to su command line php defaults to php cgi-fcgi. I know i ...
1
vote
2answers
28 views

How do I change the username nginx/PHP creates files as

Is there a way in which nginx/php can be configured so it creates files with a specific user. For example when a drupal/wordpress site uploads a file the user is assigned like: john:www-data ...
-1
votes
0answers
20 views

New IIS, PHP not working? But locally states it is

Windows Server 2012 R2. I've setup IIS, it was displaying the default page from the IP correctly: http://185.43.211.186 I then moved my current website: www.fcrp.greenlightgames.co.uk to the IIS ...
1
vote
1answer
76 views

Website exploited, suspected SQL injection + PHP check bypassed, but can't explain how the latter was performed

Background: A website I made some year ago has been recently attacked; the exploiters managed to get access to the PHP front-end I made for the client, which is used to upload files, and they managed ...
-4
votes
0answers
23 views

To print the moz rank [closed]

need to print moz rank and I have parsed everything but still coundlt print the vales. $accessID = " xxxxx "; $secretKey = " xxxxxxxxx "; $domain = "$sig"; $expire_in = time() + 500; $SignIn = ...
0
votes
1answer
31 views

Configuring PHP MySql extension

I am trying to load a MySql extension for PHP development. Running <?php phpinfo(); ?> I can see that the MySql extension is not loaded. This is also apparent when running a script that uses ...
0
votes
0answers
19 views

Upgrade PHP 5.6 using symlink on Ubuntu

I'm trying to upgrade to PHP 5.6 from PHP 5.4.34-1+deb.sury.org~lucid+1 on Ubuntu 10.04.4. I've tried upgrading through adding the repo and upgrading via "apt-get install php5" which installs the ...
0
votes
0answers
29 views

Sub Domain Not Working on Nginx server with Apache Handling PHP

I have a domain setup and it is working. However I cannot get any sub domains working. I am trying to setup a sub domain right now for phpmyadmin. I am using Nginx as a reverse proxy for Apache with ...
0
votes
0answers
22 views

php script not executed from command line [migrated]

I'm unable to execute php scripts from command line. I have the following simple code in a file named test.php: #!/usr/bin/php print password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; On ...
0
votes
0answers
32 views

Match subURIs to index.php file on Apache Passenger

I have the following configuration within a VirtualHost block: #Passenger config DocumentRoot /home/me/railsapp/public <Directory /home/me/railsapp/public> AllowOverride all Options ...
0
votes
0answers
23 views

Garbage files in public_html folder. Is this a security breach? [duplicate]

The public_html folder on my site just got uploaded with a ton of garbage html files with filenames such as vonzipper-sunglasses-men-25jh27.html and tumi-daypack-04po59.html as well as several files ...
0
votes
1answer
23 views

New CentOS 7 server - Sending mail from a PHP application

Apologies for the newbie question but i'm hoping someone can provide me with some help/steps. I am in the process of migrating a website from a managed shared hosting account online to a new CentOS 7 ...
1
vote
1answer
28 views

unable to upgrade my php in ubuntu 10.04

I am trying to update my php from 5.3.10-1~lucid+2uwsgi2 (cli) to 5.4, but getting error. I am trying with the following command: sudo add-apt-repository ppa:ondrej/php5 but getting the error: ...
1
vote
1answer
20 views

Install mysql-php5 to specific php file

I'm running an Ubuntu OS 14.04 hosting Nginx with Zend Server and Apache listening on separate ports. I managed to install Zend Server without any hassle. In an attempt to run Apache beside Nginx, ...
0
votes
1answer
22 views

Pass PhP variable to command line ffmpegcode via PHP file [closed]

please help me with it! i am having FFMPEG on the ubunut machine and running PHP from webserver and sending command to FFMpeg ubuntu server. $ff = '/usr/bin/ffmpeg -i '.$file.' -vcodec libx264 ...
1
vote
2answers
32 views

How to verify if my postfix uses really TLS to send outgoing mails?

I successfully installed Postfix on my VPS. I would like to send encrypted email. I installed all certificates and private keys and set my conf file: smtpd_tls_key_file = <path to my private ...
2
votes
0answers
31 views

CURL PHP can't resolve host [closed]

I'm trying a php script that is doing requests with CURL. But I get the error Couldn't resolve host 'example.com' $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER , true); curl_setopt($ch, ...
0
votes
1answer
35 views

(VPS Cloud) Site goes down, htacces modified, i think due to high traffic [closed]

i have a cloud vps at ovh having 8GB of ram, a 6 vCores processor and installed Parallels Plesk 12 on Ubuntu 14.04 (64 bits) I have more than 10 sites in there but only 2 have traffic From histats: ...
-1
votes
0answers
15 views

Server's free memory keeps reducing [duplicate]

I recent set up an ec2 instance (t1 micro) for a small -sized service. I have php and mysql running on it. Just to test a few limits, I tested some things. At first , I checked free memory(with ...
0
votes
0answers
83 views

nginx - reverse proxy for Apache and Socket.io on a SSL enabled site

My SSL secured web application consists of Apache server (PHP) and NodeJS (Socket.io). To overcome the issue of blocked ports on various networks, I decided to use nginx for redirecting the requests ...