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

learn more… | top users | synonyms

1
vote
1answer
38 views

What is Best Practice for running PHP in background?

When running the following on the command line it will be suspended until I issue the fg command: /usr/bin/php -r 'phpinfo();' & This is the case regardless if the PHP code is contained in a ...
0
votes
0answers
10 views

pdf2swf give result blank swf [on hold]

I need to convert pdf file into swf Command I've tried: $PDF2SWFcommand = "pdf2swf /pdf/file/unsecured.pdf -o /swf/file/output%.swf -f -T 9 -t -s storeallcharacters > /dev/null 2>&1 & ...
0
votes
1answer
15 views

Apache / php config for production & staging & development

I have a server that has a production server a staging sever and a development server. I maintain code by changing it on the development server testing it. Then staging it and testing it and then ...
1
vote
0answers
27 views

PHP script can't read CLI arguments when extra extensions are enabled in php.ini

I hope that I'm posting in the right StackExchange. I am facing a very strange problem with PHP CLI. I'm using Symfony Framework and I can't use Symfony's commands properly when I add extensions in ...
0
votes
1answer
37 views

Install php 5.6 on Debian Wheezy on Armel

I'm working with an ARM server, and it has Debian Wheezy on it. Poor choice, I know, I didn't install it. I've (loosely) followed this guide and added this to sources.list: deb ...
1
vote
1answer
22 views

load missing library from ~/ without root or symlinks on shared hosting?

So I have a library file that is used by a php module, both of which reside in my home dir on my shared hosted cpanel account. Problem is this library depends on libcrypto.so.6 and libssl.so.6 files ...
0
votes
1answer
26 views

NGINX + PHP-FPM Permission denied

I have few WordPress websites, all with same config - difference only with user and domain, but got 403 only for newly created virtualhost: # cat barelef-art.kiev.ua.conf server { server_name ...
0
votes
1answer
25 views

compiling php 5.4 and higher with mysql

i'm running a pile of mediawiki instances on oracle enterprise linux and i'm trying to upgrade from 1.19.x to the latest LTS version, 1.23.x. i'm currently using php 5.3 and due to some odd issues ...
0
votes
0answers
7 views

netctl profiles library for developers exists?

Are there any libraries (for C/C++, Java, PHP) to work with netctl profiles? So developer can create/change/delete profiles from its code programmaticaly?
0
votes
1answer
25 views

Installing PHP on OS X. Syntax errors?

When installing OS X on Yosemite with curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6, I get the following: **** [WARNING] Detected OS X Yosemite 10.10. As this is quite new, there may be ...
-1
votes
1answer
80 views

php: command not found on centos

I've currently installed CentOS (6.5 version), nginx, mysql and php. I've tried to navigate to index.php in a browser, and it looks fine, but if I try to run the script via the command-line I get: ...
0
votes
1answer
40 views

No Sendmail but ISPConfig Postfix

This is what php uses to send php mail with the php mail() function: ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ...
0
votes
1answer
19 views

Keep PHP's output with tee -a

Normally when running PHP script in web server mode, this would show up: $ php -S 0.0.0.0:12345 PHP 5.6.1 Development Server started at Mon Nov 24 14:09:22 2014 Listening on http://0.0.0.0:12345 ...
4
votes
2answers
628 views

Cron reports error in php5-common job after update

After an update to php5-common this night, cron reports a sed error "invalid option -- 'z'". This problem has also been reported on the Debian mailing list. What should I do, until the problem is ...
1
vote
0answers
26 views

Start glassfish in LINUX server remotely

I want to start glassfish on a server running LINUX, the problem is that my service provider does not grant access to ssh connections nor any other helpful tool to run asadmin start-domain I have ...
1
vote
0answers
7 views

Domjudge keeps Not Authenticated

I am trying to install Domjudge in my VPS. After I run ./configure, make and config database I login at /public/login.php with the user/pass: judgehost/judge but it doesn't log me in. I try at ...
0
votes
0answers
50 views

How to properly install Apache, MySQL, and PHP on Ubuntu 10.4

I have followed a guide on how to install Apache, MySQL, and PHP on my laptop running Linux (Ubuntu 10.4) It appears I have it installed correctly but when I am not sure. I followed this guide here: ...
4
votes
2answers
116 views

how to know which php extensions are installed

I need to install on a lamp server exactly the same php extensions that are installed on an old server, how do to know exactly which extensions are installed in order to install the same on the new ...
0
votes
1answer
32 views

Can someone be so kind as to setup a cronjob for me? [closed]

I've been trying to get cron to execute these two scripts to schedule and post on twitter, tumblr, facebook and linkedin. It worked once and never again. <?php require ...
1
vote
0answers
121 views

Debian PHP5 is 500 Internal Server Error after install, folowed Debian LAMP Wiki

Im trying to setup debian lamp stack for a live production server, im following the wiki at https://wiki.debian.org/LaMp, I have Apache2 working from the /var/www and from my user ...
1
vote
0answers
87 views

Redirect loop with Nginx as reverse proxy and Yii

I've been reading another similar issues and changing some things in my Nginx configuration, but no one worked :/ When I'm trying to access to a specific page at my site, it leads me to a "redirect ...
2
votes
1answer
53 views

Error passing variable from bash to php

I have the following files: vars.txt C=1234567890 Ascript.php #!/usr/bin/php <?php var $C="$argv[1]"; echo "\n $C \n"; $con = mysql_connect('localhost','root','123') or die ("No connected"); ...
0
votes
1answer
27 views

Security concerns

I've recently been struggling with ways to make a easy way for my father to both mount and unmount a harddrive on a linux based system. I thought of a way to execute a shell script with PHP. The ...
0
votes
0answers
23 views

Could session.cache_expire time in php5-fpm/php.ini cause PHP cURL responses to be empty?

Could session.cache_expire time in php5-fpm/php.ini cause PHP cURL requests to have empty responses, if the cache expired before the response came back? My code is like this: $ch = ...
0
votes
0answers
41 views

imageantialias() not available with php fpm with gd and nginx

I'm getting the error that the function imageantialias() is missing despite php5-fpm and php5-gd being installed. I am using a debian system with a nginx server. Everything else is working fine.
1
vote
0answers
51 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
47 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
36 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
34 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
87 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 ...
0
votes
1answer
216 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
438 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
207 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
39 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
113 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
76 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
71 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
30 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
166 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
30 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
340 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
96 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
139 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
59 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
208 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
281 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
803 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
53 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
58 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 ...