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

learn more… | top users | synonyms

0
votes
1answer
117 views

php can't find zend extension (ioncube)

On one server I've got php-5.6.7-1 and I installed ioncube there without a hitch. I put ioncube_loader_lin_5.6.so into /usr/lib/php5/20131226, and added zend_extension = ioncube_loader_lin_5.6.so to ...
0
votes
3answers
30 views

Implementing index.php that serves index.html

Firstly, any advice on improving the title appreciated! I want a webpage to reflect a log file. I have a bash script that converts the log to html. Currently this runs periodically via crontab, ...
0
votes
1answer
460 views

Apache and php not working child pid xxx exit signal Segmentation fault (11)

After making a change to my php.ini file I got the error messages as shown below. vim /etc/php.ini ; Maximum amount of memory a script may consume (128MB) ; ...
0
votes
1answer
253 views

PHP 5.4 ON CENTOS 7 , NGINX , page not found error

I am trying to install PHP 5.4 on CentOS 7 currently , my conf files look like the following : /etc/nginx/conf.d server { listen 80; server_name 178.62.255.79; root ...
0
votes
1answer
33 views

Not able to write a file when in the same group using PHP posix_setuid()

I'm running a PHP process from root which calls posix_setuid(1500); and then tries to open a file output.log The ls -l output.log shows this output: -rwxrwxr-x 1 www-data www-data 2294376 Mar 19 ...
0
votes
1answer
51 views

Building PHP from source for use in Apache

I'm having trouble when installing an older version of PHP (5.1) on a Ubuntu machine. I've tried to downgrade it without success using apt-get, so I tried to install from source. After the ...
0
votes
1answer
117 views

Apache not reading changes to PHP files

I'm developing on a CentOS6 server with Apache and PHP. When I make a change to a PHP file (and save) it appears that apache is not reading the changed file - it's still processing my old .php file. ...
0
votes
1answer
155 views

Terminal sandbox commands

I was wondering if there's a way to run shell commands that affect only a certain directory and its subdirectories. I'm using PHP and I want to make an app that allows the user to execute shell ...
0
votes
1answer
645 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 ...
0
votes
1answer
674 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
678 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
1answer
73 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
356 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'; ...
0
votes
1answer
867 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
2answers
336 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
46 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
3k 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 ...
0
votes
1answer
500 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
2answers
1k 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 ...
0
votes
2answers
363 views

Make Ubuntu acknowledge that a custom built version of PHP is installed

I'm trying to install PHP from source code on my Ubuntu 12.04 VPS. I'm installing PHP like this: Download the latest version from the php.net website. Configure it using the parameters below. ...
0
votes
1answer
36 views

Why dircolors don't return enything for bash called from php

I have this code in php: header("Content-Type: text/plain"); exec("/bin/bash -c 'dircolors -b'", $result); echo implode("\n", $result); but it return LS_COLORS=''; export LS_COLORS Why I'm not ...
0
votes
3answers
336 views

Bash in php exec in webpage don't colors for png and mp3 files on Linux

I have code like this in php: header("Content-Type: text/plain"); exec("/bin/bash -c 'ls --color=always'", $result); echo implode("\n", $result); and I've got result (escape is not visible) ...
0
votes
1answer
205 views

php --enable-calendar=shared

I have on my Arch linux system, php compiled with --enable-calendar=shared, what does that mean? I couldn't find any relevant information on that topic on the web. Problem is, that I have to ...
0
votes
1answer
146 views

why is my php script slower on debian than freebsd?

We moved a web-based application to a new server recently, but the new server seems to run slower than the old one. The old server was FreeBSD 7 with Apache 2.2, mod_php 5.3, and mySQL 5.1. The new ...
0
votes
1answer
170 views

Linux commands to fetch all files,size and path of files from all directories and subdirectories

Can anyone please guide me, how do I use Linux commands in PHP code to fetch all files names and their size and path of files from all directories and subdirectories. I am running a scan code. where ...
0
votes
1answer
412 views

setting up sendmail on debian?

I have a LAMP localhost server setup for some development and I want to test out if my code is working. Some of the tests involve checking if the correct emails are sent out by the code at the ...
0
votes
1answer
2k views

Difficulty installing PHP from source to CentOS 6.4

The problem: After installing PHP from source, functionality is not present - my phpinfo test page does not work. If I use yum to install from the repository functionality is restored. Why am I ...
0
votes
2answers
1k views

How can I access the log via a php script?

I have a statistics-file on my apache server on /var/www/vhosts/test/statistics/logs/access_log I tried using echo system('cat /var/www/vhosts/test/statistics/logs/access_log'); in a php ...
0
votes
2answers
725 views

Unresolved dependencies though the packages are installed (Debian 6 Sqeeze)

I'm working with a VirtualBox 4.2.14 VM and Debian 6 Sqeeze as guest system and want to install some PHP modules: root@devmv:~# apt-get install php5-fpm Reading package lists... Done Building ...
0
votes
1answer
221 views

Unable to access http service intranet

I'm not sure if this is the right place, if this is the case I will move the question with no problem. I'm setting up a web server for testing Wordpress. Everything works fine if I try to access the ...
0
votes
3answers
2k views

Linux mail client that can trigger a PHP script to parse email received

Is there any simple text-based mail client that I could use that could trigger a PHP script to parse mails received from the users? I have a PHP application that sends email out to users and it would ...
0
votes
2answers
5k views

How can I check if my cronjob is runnning on my server via PHP?

I would like to give out a warning If cron is not running or if a certain cronjob is not set in crontab on my server. Is this possible to check with php?
0
votes
1answer
631 views

How to start a GUI program with PHP from website

My firm has some Ubuntu 12.04 running where there is no display attached and that are behind different firewalls. The visitor on local websites on that servers should be able to start a GUI program ...
0
votes
2answers
690 views

How do I make PHP securely load files from the server root home folder on CentOS?

So I built what I thought would be this awesome reporting page in PHP that loads data from some CSV text files and creates nice Google charts and tables for our clients. I then thought it would be ...
0
votes
1answer
52 views

How to resolve midgard2 already loaded?

When running PHP on my Ubuntu 13.04 machine I get the following warning: PHP Warning: Module 'midgard2' already loaded in Unknown on line 0 This tells me exactly nothing. How could I resolve this ...
0
votes
2answers
1k views

Problem with configure and build php 5.2 on redhat 5

I downloaded php binaries and tried to build the same using following command. ./configure --with-apxs2=/usr/sbin/apxs --with-mysql But i'm getting the error related to mysql client library. ...
0
votes
1answer
440 views

Installing Ioncube loaders without issues CentOS 5.9

Seem to be having issues installing Ioncube loaders on CentOS 5.9. I followed this guide to install Ioncube: but it's still not working on the site at all, I keep getting this error on BoxBilling, ...
0
votes
1answer
1k views

Nginx Ubuntu PHP5 - not found php-fastcgi.pid

I was setting-up Nginx with PHP5 on Ubuntu 10.04.4 TLS Server, and follow this instructions - http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-10.04-lucid Everything is fine before I ...
0
votes
1answer
376 views

PHP file recursive change array key on find [closed]

I used PHP array $lang['module']['1'] = 'Title'; $lang['module']['2'] = 'Title2'; $lang['value'] = 'text123'; how i can use replace in terminal Key Value to CASE UPPER ? $lang['VALUE'] ...
0
votes
2answers
549 views

Removing a long string from php files - using grep and sed?

I have encountered some malware on my Linux server, and am trying to remove it from many php files. I've tried endlessly with grep | sed and grep | tr and couldn't even erase a simple text string, ...
0
votes
1answer
428 views

debug php script and output result and errors to a text file

Can someone tell me how to to run a php script and output content and errors to a text file (using nohup) using csh?
0
votes
3answers
3k views

send mail using external mail server

I'd like to send mails using a PHP script that has been deployed on a CentOS machine. Problem is there is no mail server configured. There is, however, another linux machine that has a mail server ...
0
votes
1answer
648 views

“Too many arguments to function” error while installing php5-pdo_mysql from ports in FreeBSD

I'm having a trouble while installing php5-pdo_mysql in my FreeBSD environment. Everytime I trys to do /usr/ports/databases/php5-pdo_mysql make install the console gives me this error: ...
0
votes
0answers
6 views

How should I upgrade php5.3.20 to PHP 5.4 or higher than in Centos 5.3?

I build a webs application by using Codeigniter3 which required PHP5.4 o higher than this version and hosted in Centos Linux 5.3. So how should I upgrade PHP5.3 to higher version? However what is PHP ...
0
votes
0answers
35 views

IP Adress is showing website instead of default Apache page [on hold]

I have a VPS server with DirectAdmin. The main IP adress of the server is 1.1.1.1. There are 4 users in DirectAdmin and everyone has their own IP address, e.g. user user1 has IP address 1.1.1.2. But ...
0
votes
0answers
7 views

How to set user creation limit on vtiger CRM?

I have installed vtiger latest version. In the admin panel how to set the user creation limit? I need to set maximum users = 10.
0
votes
1answer
11 views

Installing a different php version for a subdomain

I have a cPanel dedicated server installed with PHP 5.2.17. I need to use php 5.3 version for my subdomain and the directory needed php.5.3 is /home/website30/public_html/blog/. Can anyone provide ...
0
votes
1answer
83 views

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'

I am running PHP 5.6 on Linux. When I try to load a PHP page, I'm getting the following PHP error. PHP Startup: Unable to load dynamic library /usr/lib64/php/modules/php_mysql.so' When I look ...
0
votes
0answers
86 views

install php7 alongside php5 on ubuntu

I have installed php 5 as my main version on ubuntu 15.04 which i use to develop my current projects. I want to install php 7 alongside php 5 is there a way to install both??