PHP is a widely-used, general-purpose scripting language that is especially suited for web development.
4
votes
2answers
540 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
16 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
6 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
25 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
99 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
30 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
26 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
26 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
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
11 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
25 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.
0
votes
0answers
19 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
24 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
26 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
27 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
67 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
129 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
165 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
108 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
35 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
75 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
54 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
52 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
28 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
119 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
204 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
68 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
106 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
50 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
143 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
160 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
507 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
42 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
49 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 ...
2
votes
1answer
445 views
Installing PHP 5.3.3-24 on CentOS 6.5 (Final)
I require a slightly older version of PHP for my server because I need to be able to exploit a CVE (CVE-2006-7243) that was patched in the newer versions. NOTE: This is a legitimate use case where ...
1
vote
2answers
465 views
I get a “command not found” error, though the script file is shown by “ls”
I want to run yii console commands in shell.
I run protected/yiic in the console, yet it fails, yielding -bash: yiic: command not found
What's the problem?
See the shell commands and responses I ...
1
vote
1answer
44 views
How to install mutliple PHP instances and configure for Apache
I need to upgrade my PHP installation on CentOS 6 from 5.3 to 5.5. While I have a couple of webprojects running I like first to install the new PHP in parallel and switch back to the old one if ...
0
votes
1answer
33 views
PHP on NetBeans IDE
I have installed netbeans on my laptop running elementary os luna.
I installed netbeans with this command:
sudo apt-get install netbeans
After few minutes the software was successfully installed in ...
0
votes
0answers
72 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
1answer
348 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
1answer
34 views
similar content Project access from a single file [closed]
I create three different project which are access different three different database.
Except that all project files are same. so, I want that in a project folder all project files and in other two ...
2
votes
1answer
113 views
mdadm inconsistencies when run programmatically
Update #1:
I just gave an extra layer of testing, writing a shell script (.sh, #!/bin/bash) and a php script to be executed by php's cli.
Bash works.
It seems that it's not the Apache's HTTP ...
0
votes
0answers
70 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 ...
3
votes
2answers
352 views
Updating PHP to Gaurd Against Mayhem Malware
How will making sure my PHP version is updated thwart the Mayhem Malware?
Will updating PHP on my Ubuntu server prevent the Mayhem Malware from being able to make it onto the server, prevent it from ...
2
votes
1answer
643 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
660 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 ...