PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

learn more… | top users | synonyms

0
votes
0answers
4 views

File uploads and max_execution_time and request_terminate_timeout

In case of HTTP file uploads (nginx+php5-fpm) does max_execution_time (in /etc/php5/fpm/php.ini) or request_terminate_timeout (in /etc/php5/fpm/pool.d/www.conf) also include the time the file took to ...
0
votes
0answers
10 views

How to Install PHP 5.3.7 On Godaddy Linux VPS using SSH

I have bought a New VPS from Godaddy. They supported PHP 5.3.5 earlier and then 5.4.34 but I need to use PHP 5.3.7 on my VPS.
2
votes
1answer
19 views

PHP CLI and Bash - change behaviour of PHP keyword

Our hosting providers have installed 3 versions of PHP onto our linux box and when I SSH into it the command php points to use/bin/php which is version 5.2, the command php-5.4 points to ...
1
vote
1answer
19 views

Files are being uploaded with full write permissions

A CMS that I manage uses TinyMCE to allow users to write blogposts. TinyMCE has an image uploader. Recently, like in the last couple of months, the image uploader has started uploading images to our ...
0
votes
1answer
32 views

cannot find php5-sqlrelay package

why i cannot find php5-sqlrelay package is there any issue with my update aptitude update Hit http://security.debian.org wheezy/updates Release.gpg Hit ...
-1
votes
0answers
25 views

Why configure doesn't search for mysql socket with --with-mysql=mysqlnd option?

I was building php-5.3 on arch linux recently. And one of the problems I encountered was that it didn't work with mysql right away: $ ./php -r 'var_dump(mysql_connect("localhost", "<USER>", ...
0
votes
1answer
44 views

Cron Log File Outputs Nothing

I get no output from my cronjob. The script the job is executing is: <?php require '/opt/bitnami/apps/wordpress/htdocs/wp-load.php'; ...
1
vote
1answer
68 views

php - running shell command using shell_exec

I'm using an ajax call to execute "shell_exec" on the server (centos). The line that I'm executing is the following echo shell_exec("php -q /websockets/timedactions.php"); This is the server ...
0
votes
1answer
46 views

building php-5.3 on arch linux

I'm trying to build php-5.3 on arch linux using phpenv + php-build. The problem is bison is too new: $ phpenv install 5.3.29 [Info]: Loaded apc Plugin. [Info]: Loaded pyrus Plugin. [Info]: Loaded ...
0
votes
1answer
32 views

UNIX + nginx + php + SQL

I use a FTP site to upload my work, which resides on a server running on a Linux OS based on nginx. And I use an odbc driver to connect to a database that interacts with my php code. In that database ...
0
votes
0answers
34 views

Does PHP --without-unixODBC and --disable-pdo conflict with installed modules?

I've been trying to get PDO ODBC working on CentOS 6.5 so that I can connect to a Microsoft Access .mdb database. I've never used any form of linux before but so far I've managed to install PDO and ...
1
vote
1answer
34 views

Cacti/rrdtool error -> Poller[0] ERROR: SQL Row Failed!, Error:'1033'

I have cacti working flawlessly on a centos 7.0 machine but I need it working on a centos 6.3 machine. I download the same version of cacti as what is on the 7.0 and I installed rrdtool from yum. ...
0
votes
2answers
42 views

keep script running while screen is locked for a long time

I have a script that is running on my computer. The script is written in PHP under my XAMP server. It actually is reading some files from a remote FTP server and after processing them writes them back ...
0
votes
1answer
25 views

How do I tell which php.ini I am using after doing a 'locate php.ini'?

I'm currently running CentOS and also have cpanel installed. I have root access to the server. When I do a 'locate php.ini', I get a page full of results. Is there a way to find out which php.ini ...
0
votes
1answer
11 views

R/W on device from web script

Having a web script in PHP that communicate with a device. This device require root privileges. How to do this the best way security wise? There is two modes in the web app, one user and one admin. ...
0
votes
0answers
60 views

PHP running under “www-data” user

In PHP if I run get_curret_user() it prints www-data. This makes it impossible for me to use this function in order to test a FTP password from input. Is there any way to make PHP run under the ...
0
votes
1answer
28 views

Execute file with certain PHP version

I need to execute a PHP file with another PHP version as installed. I know the full path to the other versions, but I do not know how to use it. I have read the PHP man page but there is no mention ...
0
votes
1answer
110 views

CRON job to check if PHP script is running

I am having trouble regarding CRON jobs, I've basically got two php scripts that I want to keep running continuously on my server. Currently I am using an infinte loop to keep them going but they seem ...
0
votes
0answers
46 views

Apc is not working in php 5.5

I install APC in ubuntu server where php version is 5.5.9. When I see apc. php it is enabled but it not properly work. In php info APC support Emulated 2nd one apcu is Version 4.0.2 ...
0
votes
1answer
64 views

Keep a PHP script running indefinitely on a Web Server [duplicate]

I'm having a pretty big issue that I need to get resolved. Basically I have little experience using Linux and I've been working on a project recentley that involves me having to use quite a lot of ...
1
vote
1answer
42 views

Linux does not see a file until I ls on that directory

I have a really weird problem. I have a php script that runs, submits a child process to run, and waits until its done by checking for a OUTFILE.end file to appear. The problem is the file appears, ...
-1
votes
1answer
88 views

How to change file owner from root to apache?

I am using apache server on Linux fedora 17. I have one php code which creates a .ini file. If I create the .ini file by running php code through apache web server then rest php code files are able to ...
1
vote
3answers
89 views

Using nohup to keep a script running indefinitely

I am very new to Linux and I've only been using it to SSH to my web server using Putty. The issue I am having is this: Basically I've got 2 php scripts. One get_tweets.php constantly listens for ...
0
votes
1answer
228 views

Installling phpmyadmin to Kali Linux

I want to add phpmyadmin to Kali Linux. But i am getting the following error. First i ran apt-get update which worked successfully than the following. Here is the output of apt-get update ...
1
vote
1answer
35 views

Permissions on a mounted NFS share

I am trying to make a php script on a webserver write into a folder /data on a fileserver. Apache 2.2, PhP 5.x. It's just a test configuration but I'd like to understand the thing somehow as I am not ...
0
votes
0answers
37 views

phpstorm 7 permission error

i have phpstorm 7.1.4 IDE on manjaro(arch base linux). when i run php code with phpstorm on : http://localhost:49193/ex.php in page : No input file specified. my code not run or execute. i check ...
0
votes
0answers
7 views

How find the reason why .so library does not included in ZendServer CE

I've installed phalcon.so library. I compiled it (http://phalconphp.com/en/download) and moved to /usr/local/zend/lib/php_extensions It works perfect until I update Zend Server from 5 to 6. After ...
2
votes
1answer
215 views

Installing PHP 5.3.3-24 on CentOS 6.5 (Final)

I require a slightly older version of PHP for my server because I need to be able to exploit a CVE (CVE-2006-7243) that was patched in the newer versions. NOTE: This is a legitimate use case where ...
1
vote
2answers
250 views

I get a “command not found” error, though the script file is shown by “ls”

I want to run yii console commands in shell. I run protected/yiic in the console, yet it fails, yielding -bash: yiic: command not found What's the problem? See the shell commands and responses I ...
1
vote
1answer
36 views

How to install mutliple PHP instances and configure for Apache

I need to upgrade my PHP installation on CentOS 6 from 5.3 to 5.5. While I have a couple of webprojects running I like first to install the new PHP in parallel and switch back to the old one if ...
0
votes
1answer
31 views

PHP on NetBeans IDE

I have installed netbeans on my laptop running elementary os luna. I installed netbeans with this command: sudo apt-get install netbeans After few minutes the software was successfully installed in ...
0
votes
0answers
43 views

Error on building and installing memcached php extension

I have problems to run make on the latest memcached PHP extension, on CentOS 6.5: pecl download memcached tar zxvf memcached-2.2.0.tgz cd memcached-2.2.0/ phpize ./configure ...
0
votes
1answer
326 views

Centos - executing a bash script from PHP

I have 3 scripts (I have removed the help_page function from the networkstats.sh script when I pasted here to save some space): api3.php <?php output = shell_exec('/bin/bash ...
0
votes
1answer
33 views

similar content Project access from a single file [closed]

I create three different project which are access different three different database. Except that all project files are same. so, I want that in a project folder all project files and in other two ...
2
votes
1answer
90 views

mdadm inconsistencies when run programmatically

Update #1: I just gave an extra layer of testing, writing a shell script (.sh, #!/bin/bash) and a php script to be executed by php's cli. Bash works. It seems that it's not the Apache's HTTP ...
0
votes
0answers
60 views

Why does “Connection Failed: 2002” display randomly on my PHP/MySQL website?

I'm running CentOS 6 with Apache/PHP/MySQL. PS. I'm sort of a novice at Linux, but I did my best to gather info before coming here. I'm now a bit stuck. I recently upgraded PHP to version 5.5.12. I ...
3
votes
2answers
324 views

Updating PHP to Gaurd Against Mayhem Malware

How will making sure my PHP version is updated thwart the Mayhem Malware? Will updating PHP on my Ubuntu server prevent the Mayhem Malware from being able to make it onto the server, prevent it from ...
2
votes
1answer
389 views

I cant save files in /var/www/html

I'm running Centos 6.5 and I'm having problems saving my files to /var/www/html. The folder currently belongs to root and I have gone through everything from SELinux to configuration procedures, but ...
2
votes
1answer
470 views

Howto fix my PHP install on FreeBSD using pkg

I've been messing around with pkg install, installing / removing both php5-5.4.29 and php55-5.5.13. But when I run php from the command line, it will give me an error like this: PHP Warning: PHP ...
1
vote
1answer
142 views

install php5-fpm on Debian Squeeze

I tried in many ways to install php5-fpm in om Debian squeeze, but couldn't. I was wondering if I have to upgrade php5.3.3 to higher version because it doesn't seem to work on lower than php5.4 I ...
0
votes
1answer
42 views

How to live a Pleskless life? [closed]

I have always used Linux with Plesk when hosting web projects. It's easy to host multiple websites and setup email accounts but I realized it's overkill sometimes. I think it uses a lot of resources ...
0
votes
1answer
130 views

installing php-mysql on rhel6

I have rhel6 running on my server and installed mysql from Red Hat Enterprise Linux 6 / Oracle Linux 6 (x86, 64-bit), RPM Bundle. Now I want to host a php site on that machine. And when I run yum ...
0
votes
1answer
89 views

How to reconfigure PHP

We have a new linux server CentOS 6.5 with Plesk. Default PHP is 5.3.3, I have installed PHP5.4 & 5.5 on the server. I am a beginner on linux. Actually, I don't know how to install software on ...
2
votes
2answers
9k views

PHP 5.5.13 on CentOS 6.5 with yum

I've got problems with installing PHP 5.5.13 (last stable build) on a CentOS 6.5 (64 bit) machine, through yum. Can somebody guide me through this a little bit? It is not a part of the CentOS, EPEL ...
0
votes
1answer
201 views

how to skip install libphp5.so when buidling php?

I'm trying configure and install older php 5.3 version on my archlinux, and I don't want it to copy libphp5.so to /usr/lib/httpd/modules/ because there's an existing version (newer) there. ...
0
votes
2answers
438 views

Running system bash command in PHP script - syntax error: unexpected T_LNUMBER

If anyone can shed some light on my issue that'd be great. Please don't down-vote me; I'm new to the language and the OS itself and I'm trying my best to research before asking questions, so any ...
1
vote
0answers
55 views

How to debug a semop failure?

Using a 2.6.30-gentoo-r4 Linux a very complex system of php code is executed (with 4.4.9-pl0-gentoo and 5.2.10-pl0-gentoo), which occasionally runs into a semaphore blocking problem. The call to the ...
0
votes
1answer
58 views

PHPStorm Only runs on Gnome or KDE

Does anyone know why it is so? I was using unity... then i switched to LXDE and it wont run. I checked the requirements and it turned out that it requires either GNOME or KDE. So what exactly is it ...
1
vote
0answers
96 views

php5-curl installation aborts due to ucf failing on /etc/php5/mods-available/curl.ini

I've screwed my raspbian (debian) installation. To fix this I'm going through reinstalling every single packacke. This is tiresome (or rather: slow) but works in general. Where I'm absolutely stuck ...
2
votes
1answer
163 views

how to use html tidy on Nginx

I just installed HTML tidy using the following command line: sudo apt-get install php5-tidy yet I have no idea how to use it because I thought it is an auto process that can do things by itself ...