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

learn more… | top users | synonyms

3
votes
1answer
500 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 ...
2
votes
1answer
363 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
446 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 ...
2
votes
1answer
128 views

How can I list all the dependencies necessary to install PHP-Soap?

I have a server running Centos 5.10 with no internet access that I control remotely on which I'd like to install PHP-Soap. I also have an identical box in the office which is a clone of the remote ...
2
votes
1answer
3k 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 * ...
2
votes
1answer
167 views

LAMP Hardening, Transparent Proxy with iptables

I'm running a LAMP server with FTP(S) and several users. The users have only access to uploading PHP files and other web content. Some are running Drupal and Wordpress, but also a few home made stuff. ...
1
vote
1answer
18 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 ...
2
votes
0answers
67 views

PHP exec and amixer

I'm trying to make php lower the dB level of amixer using exec, but it seems like php isn't able to perform the task which requires sudo-access. What should be the best way to solve this? I tried: ...
2
votes
0answers
86 views

Bus Error when run php-cgi

This is what I got when I run command "strace /usr/bin/php-cgi -v" execve("/usr/bin/php-cgi", ["/usr/bin/php-cgi", "-v"], [/* 39 vars */]) = 0 brk(0) = 0x11e4000 ...
2
votes
0answers
719 views

Can't Install ImageMagick on Centos using Yum

I am trying to install ImageMagick on my dedicated-virtual Centos server for use with PHP. I first ran the following commands successfully: # yum install gcc php-devel php-pear # yum install ...
2
votes
0answers
189 views

How do I install PHP5.4.16 on Debian Wheezy?

I used to be able to install php-5fpm=5.4.16-1~dotdeb.1, but it seems that this package is no longer available from the latest dotdeb packages. Here are the steps I tried. Append the following two ...
2
votes
0answers
982 views

Nginx Owncloud 4 produces “No input file specified.”

I'm trying to setup an Owncloud 4 instance with nginx as a webserver. The host device is a Raspberry Pi with preinstalled Debian 6. When I try to open the URL to the Owncloud installation in a ...
2
votes
0answers
527 views

proper permissions under HTTP root with Apache2 + FastCGI + Suexec

I currently have a setup which runs Apache2 + FastCGI PHP + Suexec. As an example, I'm using /mnt/data/www/vhosts/inflex.co.uk/htdocs as a DocRoot for one of my virtual hosts. I have a script ...
2
votes
0answers
1k views

MySQL socket and PHP (and other languages)

Background info I'm currently running CentOS (or Red Hat?). uname -a gives (I edited out my domain name) Linux XXXXXXXXX.com 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 ...
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 ...
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 ...
1
vote
0answers
680 views

Apache 2.2, PHP 5.3 and MySQLl 5.5 on Linux Mint 17?

Our stack consists of Apache 2.2, PHP 5.3 and MySQL 5.5. I've installed Linux Mint 17 Giana. If I install apache2 via apt, it will install Apache 2.4 which is not required for me. Is there any way ...
1
vote
0answers
1k views

mysqld dead but pid file exists

Webserver was running fine for weeks then suddenly: I can access, but I am unable to log into Webmin I can access Magento, a php-based storefront application, but I am no longer able to log in and ...
1
vote
0answers
40 views

Storing Web Session on S3 bucket

I have a cluster of web servers which store web session related information in a NFS shared directory. We are trying to implement an AWS version of our product where we could use S3 bucket to store ...
1
vote
0answers
82 views

phpcurl not able to install on terminal

I am not able to install packages php and curl. But its gives dependencies error, please check below curl : Depends: libcurl3 (= 7.29.0-1ubuntu3.4) but 7.32.0-1ubuntu1 is to be installed ...
1
vote
0answers
933 views

Reading apache error logs from php

I have apache2 logs at :/var/log/apache2/error.log which has permission: -rw-r----- 1 root adm 127140 Mar 20 12:54 /var/log/apache2/error.log for the sake of accessing from php I changed the ...
1
vote
0answers
1k views

How to install PHP 5.2.4 in CentOS release 6.5 (Final)?

Folks I need to install PHP 5.2.4 in CentOS release 6.5 (Final). My souces list are: # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of ...
1
vote
0answers
238 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 ...
1
vote
0answers
372 views

Compiling PHP-FFMPEG Extension

cd ffmpeg-php* phpize ./configure --with-ffmpeg=/usr/local/cpffmpeg make Then I end up with the following issues on my make: ... ... ... /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: ...
1
vote
0answers
364 views

Debian - Apache 2.2 & mod_php - memory usage

I have a memory problem with my servers (Debian 6.0) where is installed Apache httpd 2.2, mod_php and APC. Actually it seems that httpd allocate all available memory (4GB) when is waiting too much ...
1
vote
0answers
208 views

/etc/php.ini not being read on fastcgi?

On my DV from MediaTemple running Centos 5.8 I installed APC. I then added extension = "apc.so" to /etc/php.ini so APC will be enabled for all existing and future sites on the server. When I checked ...
1
vote
0answers
150 views

Unmanaged VPS bought today. Sendmail not functioning correctly

I purchased an unmanaged VPS today. I moved my website on over, and when I try to send an email. It returns a blank page. Not to mention I had to install PHP myself. Apache was there, for some reason, ...
1
vote
0answers
331 views

Debian: Upgraded to php 5.3 and lost phpcli, php-pear, etc

I upgraded to PHP5.3 using this tutorial: http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/ It removed the following packages: Removing php-pear ... Removing ...
0
votes
0answers
28 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 ...
0
votes
0answers
58 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
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
0answers
33 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 ...
0
votes
0answers
42 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
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 ...
0
votes
0answers
479 views

phpmyadmin doesn't work after installing php5-mysqlnd

I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute ...
0
votes
0answers
19 views

Error when adding phtreads support to PHP while following arch wiki

Willing to add phthreads support to PHP, I read this page and began to follow its instructions : https://wiki.archlinux.org/index.php/PHP_pthreads_extension But while the makepkg -s step, compilation ...
0
votes
0answers
239 views

PHP mail() and Debian Wheezy Not Working

I am currently running my on debian wheezy with php5 installed. I was trying use the mail() function, and I realised that I will require a MTA/exim installed before it will be possible because the ...
0
votes
0answers
30 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
0answers
85 views

How To Install PHP on CentOS by download packages?

I'm using CentOS 6.5 and I need to install PHP 4.3.11 i can't use "yum install php" because it'll install the latest version of PHP. So i use these command: wget ...
0
votes
0answers
39 views

Help required for LAMP Stack fail-over Configuration

I am using cloud servers of digital ocean for last some months. Recently One of my cloud servers disappeared from panel with backups @ ubiquity, the server co guys put it back after 1 day. However my ...
0
votes
0answers
66 views

Why is PECL installing a beta package?

I'm running Ubuntu 12.04. If I type # pecl install apc it tries to install 3.1.13 which is beta rather than 3.1.9. $ pear config-get preferred_state stable Looking inside the two archives ...
0
votes
0answers
96 views

Rewrite module won't work on Xubuntu/Apache

I have a Xubuntu (12.10) machine with Apache and PHP servers from the apt-get repository. I need to create a simple REST service in PHP and therefore need to set up .htaccess so that arbitrary URLs ...
0
votes
0answers
223 views

php Mails not send with in domain

My setup : Our current server 90.0.0.50 [example] which is containing domain testdom.com. testdom.com's MX record points to Google mail. Due to some issues we need to host our domain on some other ...
0
votes
0answers
206 views

WordPress on LinuxMint: Can't create directory (or write file)

I run Linux Mint, with Apache2, PHP and MySQL. I've activated modules for Apache so that users' public_html can be used and that PHP-scripts can be run from them. I installed WordPress in my ...
0
votes
0answers
77 views

How to start a GUI program in a VM with PHP

I have an Ubuntu 12.04 VM running on my online server where there is no display attached. I want to start Teamviewer there on that VM to get graphical access to that server. I guess I have to give ...
0
votes
0answers
92 views

sybase and iconv

I inherited an old Ubuntu 6.10 server running php 5.1.6 which is using sybase to connect to MSSQL. A user submitted some text containing an en-dash and crashed one of my script. It turns out sybase ...
0
votes
0answers
122 views

uploading from Netbeans to remote CentOS server failed

I have a php web application on Netbeans on my Ubuntu , and server is CentOS on a virtualBox . Suddenly uploading to server stopped and I'm getting these errors for non-root user : Failed: file ...
0
votes
0answers
325 views

centos 6.3 apache local network not working

I have clean installed centos, apache, mysql, php and have my php pages running fine at 192.168.1.66. I type that ip in on another computer (macbook) on the same network and get nothing. Page time ...
-1
votes
0answers
23 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>", ...