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

learn more… | top users | synonyms

0
votes
0answers
5 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
19 views

ispconfig PHP not parsing on apache2 virtual host

I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04. I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from ...
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 ...
-2
votes
1answer
35 views

Errors trying to execute a Metasploit script

I'm trying to run this exploit in Metasploit on Kali Linux. I have the file in the exploit folder, I just need to execute the script, but I'm getting some errors. This is the description from the ...
-3
votes
0answers
19 views

How to switch 2 scripts based on browser size? [migrated]

I'm new here. I'd like to ask if you can switch 2 scripts using a script? Currently, I have 2 different sizes of banners which are being called using invocation codes. Invocation code for 728x90 ...
0
votes
1answer
81 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
84 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??
1
vote
0answers
26 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains ...
1
vote
1answer
91 views

PHP mail (using Postfix) send out to Gmail marked as SPAM

I'm totally new to "Email Systems" and it's concepts. I just use a simple email sending codes via PHP, like: mail("recipient@gmail.com","my header","my body"); I understand this is going through ...
-1
votes
0answers
17 views

Php Problem with mysql_query() [migrated]

I've been having problems with my php code. I seem to be getting an error from @mysql_query(). Here's my code for php: <?php // A simple PHP script demonstrating how to connect to MySQL. // Press ...
0
votes
1answer
29 views

Enable centos server to make FTP connection to other windows based server via php

When i am running this same code from my local wamp.Works fine and prints the result. //connection to a ftp server across proxy putenv('TMPDIR=/tmp/'); $ftp_server = "SERVER IP"; $ftp_user_name = ...
0
votes
1answer
46 views

find returns 'No such file or directory'

Continuously getting so many warnings yet my command is working fine. find: `api/PlayersImpl0.smali': No such file or directory find: `api/PlayersImpl1.smali': No such file or directory find: ...
1
vote
2answers
35 views

how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?

I have an Apache webserver. I have some PHP scripts on it. Scripts are run as the user www-data - it is as the user that runs Apache. I want to configure Apache so that PHP scripts are run with ...
1
vote
0answers
30 views

nohup not working when called from root folder

When i execute nohup command from the same folder it's working fine (server.php is used to listen to a port 7070) root@servername:/var/www/html/admin# nohup php server.php & [4] 2803 ...
0
votes
2answers
68 views

how to Check a php script is running if not run

i am running a php file using nohup php server.php & this listen for a particular port and do action according to the input. The problem is sometime the script stops and I can't use cron job ...
0
votes
1answer
35 views

How can I configure my server to avoid information leakage from the SERVER header of its HTTP response

I have a centos 7 server with apache v2.4.6 php 5.4.16 and OpenSSL 1.0.1e-fips installed. I was just doing a scan to it to see how secure my server is. I found out that my server is giving out ...
0
votes
0answers
24 views

enforcing php version based on git branch

Is there a way similar to .rvmrc to automatically set the php version used while developing in a branch? I think phpbrew will do what we want, however we are uncertain how to enforce a specified ...
0
votes
0answers
90 views

PHP 5.6.10 Bad Installation on CentOS 7 using Plesk 12

I upgraded the PHP version from 5.4 to 5.6.10 with remi and while I am trying to access to a file.php I can see the full code in "Source code". I was reading about that and it seems that the ...
2
votes
3answers
63 views

Run a task in background and know the time of its termination

I need to run a unix shell script (my_script) in background and monitor it from web interface. I start the actual script from php like so: $command = 'my_script'; $pid= exec("nohup {$command} > ...
0
votes
1answer
43 views

php drop down menu to execute script with argument

I have shell script which I run like this /var/www/test.sh 2015 or /var/www/test.sh 2014 When this script runs, it actually takes data from freeradius and generates gnuplot base graph for the ...
1
vote
1answer
78 views

Cannot install composer on FreeBSD 10

I have a FAMP SERVER I'm setting up. FreeBSD 10.1 Apache 2.4 MySQL 5.6 Php 5.6 Everything working ok so far. I installed symfony no problem but now trying to install composer. curl -sS ...
1
vote
0answers
96 views

Install php apache module from source in CentOS 6.6

I tried running yum install php on my centos box however it kept installing an older version. Therefore I installed apache 2.4 and php 5.4 from source. However, I'm not sure how to install the ...
1
vote
1answer
33 views

Activate PHP commands on login

Everytime I login into my centOS box. I need to run source /opt/rh/php54/enable to be able to run php commands. What do I need to do to my installation for this to work without running this command? ...
0
votes
1answer
75 views

Php shell_exec() : for non root user, how to access root command

I have a tricky step to walk for my system (openvpn, 20 clients - raspberries, 1 server CentOS). I want to make an auto install, from clients, for their keys. They call a php page on the server, ...
0
votes
0answers
75 views

(noob) script works from root ssh <-> php shell_exec() does not

A nooby2death question: In a vpn project, I generate keys automatically for clients. I do this with a script file containing : pkitool clientNameForKey This line : - does work if I execute the ...
0
votes
3answers
94 views

Get MAC of a client request?

I have a network with 20 raspberries (clients) and 1 server. I'd like to check MAC of client request, is that possible ? Further, possible without being known (nor visible) by the client ? NB : I ...
0
votes
0answers
35 views

FreeBSD php (cli) in host system with application jail

Case: platform with FreeBSD (10.1) on the host system and multiple application jails. One of the important goals for multiple jail - multiple php versions. Users have access only in host system. ...
0
votes
1answer
80 views

PHP script to monitor process and write status to a file

I want to write a php script for monitoring particular process using top command and write into the file. I use top -p pid for monitoring a particular process and also i write a shell script for ...
0
votes
1answer
53 views

How to Install or enable PHP-FTP support on Linux Apache server?

In my PHP code I am using the below function ftp_connect() But it throws an error, FTP is not enabled for PHP. Can any one tell me how to enable/install FTP in RHEL, Apache2.2 server,PHP Version ...
0
votes
2answers
65 views

Generate a list of installed PHP extensions

My goal is to write an as simple as possible (but not more simple) that generates a list of currently installed PHP extensions (*.so files) that the user can simply copy/paste into their php.ini. It ...
-1
votes
1answer
53 views

Encrypt PHP script to a domain (RSA)

I have a php script I want to share with someone but only limit them to be able to use it on one domain. I have found http://phpseclib.sourceforge.net/ - I think I can do this with RSA encryption but ...
1
vote
1answer
102 views

Postfix with smtp authentication failing

I'm currently in the process of updating my new server to do the same tasks as my original older server (new server is running Debian wheezy, old server is running Debian squeeze). The issue I'm ...
0
votes
1answer
42 views

apache2 debian mod folder location

I have apache folder on Debian with configuration (apache2.conf file, not httpd.conf) in /etc/apache2. On another configuration I hasn't this folder, but it was located in /usr/local/apache2/bin. ...
0
votes
0answers
51 views

PHP sendmail_path not getting updated

Environment: Debian 7; PHP 5.4.39; Apache 2.2; ISPConfig Using the Perfect Server Debian guide from howtoforge, I built a web server to serve some PHP applications. My intention is to use an external ...
1
vote
1answer
106 views

Pass SNMP trap packet to a php daemon on Ubuntu

I have a Ubuntu server which is collecting incoming SNMP traps. Currently these traps are handled and logged using a PHP script. file /etc/snmp/snmptrapd.conf traphandle default ...
0
votes
1answer
114 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
0answers
33 views

File permission issue with web server

Our project files is hosted in Linux server using root user, i tried find the user for Apache/PHP, here is what i got by running ps aux | egrep '(apache|httpd)' [root@server tmp]# ps aux | egrep ...
1
vote
1answer
63 views

linux commandline can connect but webserver (or php) can't connect

We can connect to a specific url with linux (centos 6) commandline (curl, wget,...) But we can't connect to it by webserver (apache) or php. I did 'setenforce 0' command, after that webserver and ...
0
votes
3answers
29 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
458 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) ; ...
1
vote
1answer
33 views

How do I get the filename and job numer of an “at” job

We have a script (generator) that is creating a series of at jobs. The at jobs fire another PHP script. The generator script loops through and does something like this: exec('/usr/bin/at 5:00 May 11, ...
2
votes
1answer
101 views

Operation not permitted

I'm on OS X and I'm trying to write an interface for for an interpreter, the communication with the interpreter looks like this in PHP: $f = fopen('mmascript.m', 'w'); fwrite($f, ...
2
votes
1answer
63 views

Getting sendmail to send mail at a specific time

We have a stock PHP ecommerce application that sends notification emails out whenever a successful purchase is made. We want one of the notifications to be sent 2 weeks after the purchase is made. ...
1
vote
0answers
44 views

Correct/Efficient/Reliable way to import log file entries to a MySQL database?

I'd like to be able to query our server access log files to identify abuse patterns. Log files really aren't very queryable, and it would be fairly easy to do what I wanted if each hit was a row in a ...
2
votes
1answer
47 views

Why was it necessary to restart apache webserver to copy files via php on newly mounted filer?

Scenario allready running Apache Webserver 2.4.2 on Solaris 5.10 newly added nfs mount as target for copying files via php executing cp via shell with the same user as the webserver works copying ...
4
votes
1answer
70 views

How can I launch a command, wait 2 seconds and return the output without killing the command?

I'm trying to launch a command from php with shell_exec which calls a bash script that launches a program that stays running, but sometimes this program throws an error and exit, what I need is a way ...
2
votes
3answers
57 views

Can system time be paused?

This may or may not be the right approach, but it's feasibility was requested of me: We have a demo server that we update from time to time in order to keep the statistical calculations up-to-date. ...
1
vote
0answers
82 views

Can't run php cli at webuser but will run as root

I am running a Magento application on a Nginx server. nginx + php-fpm running as webuser:www There are some function in the shell directory of Magento which run fine as root and the import run fine ...