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

learn more… | top users | synonyms

0
votes
0answers
9 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
2k views

mcrypt, EPEL and CentOS 6.4

I am having issues installing php-mcrypt. I am not an administrator of any level. I have performed the following. Installed EPEL Installed REMI Configured EPEL Updated YUM Cleaned YUM Installed ...
1
vote
1answer
672 views

PECL memcached installation gets error

I installed Zend Server 6 (debian). Also installed several packages: apt-get install gcc apt-get install g++ apt-get install libncurses5-dev apt-get install zlib1g apt-get install zlib1g-dev ...
1
vote
3answers
5k views

Giving PHP permission to write to files and folders

UPDATED FOR FURTHER CLARITY: According to http://expressionengine.com/user_guide/installation/installation.html, it says: For most Unix hosts the following is typical, but you may check with your ...
1
vote
0answers
25 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
13 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 ...
0
votes
1answer
24 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
24 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
75 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: ...
1
vote
2answers
2k views

Git pull error libcurl.so.3 not found

I have a php script to git pull from my github repository set up in my webservice hook urls like so: <?php echo shell_exec('~/git/usr/bin/git pull 2>&1'); ?> When I open this script ...
2
votes
1answer
821 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 ...
4
votes
3answers
2k views

Use start-stop-daemon for a PHP server

I'm working on a socket server written in PHP. This part of the work is done but now I need to run it as a daemon. For this I've tried to use start-stop-daemon but it doesn't work. My server is ...
3
votes
1answer
570 views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
0
votes
1answer
35 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
394 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 ...
2
votes
2answers
988 views

Using sudoers to allow php to run command

I am trying to get my php page to run this command: shell_exec("sudo /home/xbian/433Utils/RPi_utils/codesend {$num}"); So I added this entry to my sudoers file with visudo: www-data ALL=NOPASSWD: ...
0
votes
1answer
411 views

Multiple PHP Versions / cPanel with mod_fcgid

I'm trying to get multiple PHP versions working on a cPanel server which was compiled with mod_fcgid and PHP 5.3. Below is the PHP config generated by cPanel. AddHandler fcgid-script .php5 .php4 ...
0
votes
0answers
41 views

Why does SPACE sometimes not work with more (or less)

Usually with |more I press space to get another screenful. But with some commands space just does nothing, and I need to actually keep doing SPACE-ENTER to scroll forward a screen at a time. Both more ...
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
625 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 ...
0
votes
1answer
811 views

Slow DNS resolve from curl/lynx etc

I have a strange issue with DNS resolving: Root of the problem is that I get curl errors: "Error executing HTTP request: name lookup timed out". Tried to ping some sites, all resolved fine (and fast). ...
2
votes
1answer
872 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 ...
1
vote
0answers
25 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
48 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
107 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
84 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
49 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"); ...
1
vote
1answer
267 views

php indent in web-mode with Emacs

I'm using Emacs web-mode and write a setting for it like this. (require 'web-mode) (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode)) (defun web-mode-hook () "Hooks for Web mode." (setq ...
0
votes
1answer
26 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
22 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
37 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
1answer
138 views

Bundle my scripts to make an installer in Unix?

We've got a PHP script running MongoDB in the background. I want to make it a bundle (Installer) for Unix. I will use it to install the following on any machines: Install Apache, PHP + MongoDB ...
1
vote
0answers
46 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
45 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
83 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
200 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
206 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
419 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 ...
3
votes
1answer
5k views

-bash: phpize: command not found on Centos 6

When I try to run phpize I get -bash: phpize: command not found I have run yum -y install php-devel but that returns: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * ...
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 ...
1
vote
1answer
73 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. ...