1
vote
3answers
166 views

Run PHP from the command line

I have installed XAMPP v1.8.3 for my PHP development. I am new to Ubuntu, so I don't know how to set environment variable for PHP which is located at /opt/lampp/bin/php. I can run PHP scripts from ...
0
votes
1answer
145 views

Cannot run cron job for a php script

I want to run a php script using cron job on localhost my script is situated at - /opt/lampp/htdocs/rrugd/myscript.php now as opt is under root, i tried adding the cron job for root as well as ...
1
vote
1answer
652 views

How to enable OpenSSL for PHP Cli?

There is no major difference in the php.ini files located at /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini. But <?php phpinfo(); ?> when accessed from a browser says OpenSSL support ...
1
vote
1answer
3k views

How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal?

I'm relatively new to the world of unix command line web server management/administration. Many hosts with control panel administration options allow you to change how PHP is run with a simple ...
0
votes
0answers
18 views

Pointing to the latest php version on ubuntu terminal [duplicate]

I am new to ubuntu. Just installed lampserver using: sudo tasksel install lamp-server Problem is that the output of $ php -v is still 5.3, expecting to see 5.5 and when i run $sudo apt-get ...
0
votes
1answer
45 views

Can you place a variable in command line

I have a command running in cron sudo snmpbulkwalk -v 2c -c public -0Xsq 10.0.0.98 .1.3.6.1.2.1.1.2> textfile 10.0.0.98 is a variable and i would like whichever value is placed there to be read ...
4
votes
1answer
56 views

How can one call programs that are not “rooted” in the operating system

I am currently trying to install a php extension on my computer. I am in the process of developing a new site and I am using LAMPP. I used PECL to install the syck YAML extension so that I can parse ...
5
votes
3answers
655 views

Unable to Execute VLC from PHP

I am running uBuntu 12.04.3, 32 bit OS on a 8 CPU, 8GB RAM 64-bit Intel Xeon machine. I have installed all backports as well. I have this problem which is eating my head for the last 3 days. I ...
0
votes
0answers
44 views

Postfix command line with php page

We created a php page that sends mail with Postfix. It sends email when someone loads the page using Firefox. Now we'd like to automate that process and have Ubuntu load the page once a day, which ...
0
votes
1answer
166 views

How do I setup php and mysql cronjobs on ubuntu 12.04 server?

just made a lamp install adn got sftp working. My question now is how do I setup cronjobs in ubuntu server? I need to make some cronjobs for my php/mysql application. Look for un-activated users in ...
0
votes
1answer
252 views

PHP cli hangs after ppa update to 5.5

I remember having the exact same pb on my other machine, and I know I fixed in then, but I don't remember how... After installing php/apache/mysql/phpmyadmin from the usual repositories, I added ...
0
votes
0answers
130 views

How do I remove Dotdeb version of PHP and replace it with official Ubuntu repo

I'm a UBUNTU and CLI Noob. I'm running UBUNT 12.04 LTS I'm trying to get CURL to work for my PHP install and come to find out that PHPCURL does not work with the Dotdeb version of PHP that installed ...
2
votes
1answer
130 views

PHP interactive interpreter: Delete and Ctrl +Aarrows keys don't work properly

When running PHP interactive interpreter with: php -a Delete button doesn't work (produces ~ instead), jumping over words with Ctrl+Left Arrow and Ctrl+Right Arrow doesn't work either (;5D and ;5C, ...
0
votes
1answer
100 views

How to copy a website inside my WWW to another computer and make it work?

I have designed a website to create and sign certificates (.csr, .key, .crt, .p12) in my netbook using Ubuntu 12.04. Now I have to demonstrate that it works but my teacher wants to test it using a lab ...
0
votes
1answer
291 views

How to call php or apache to render a page from the command line?

I am running apache2 as a web server. I have a local file, example.php, which I need to see as rendered by apache. The easiest way to do this would be to move or link the file to the folder apache ...
0
votes
1answer
251 views

Is it possible to install Gimp on Ubuntu Server and use it in command line from a php script?

I have a project where the users will be able to upload images from their browser. The project is coded with PHP. We need to process the uploaded images with some advanced filters and we need a good ...
3
votes
1answer
414 views

Launching php script through comman line - keeping terminal window open after execution

Oh, my girlfriend really likes it when I launch php scripts! There's something special about them, she says ... Thus, I coded this script to run throught the CLI (Command Line Interface) - so it's ...
0
votes
1answer
267 views

Getting configure command of php

I am using an ubutnu OS, I have installed LAMP stack using "tasksel", I am not able to find the "Configure Command" while I am going through phpinfo. But , in the same OS I am able to see the ...
1
vote
1answer
1k views

Is it possible to execute terminal commands using PHP?

Is it possible to execute terminal commands using PHP? I need to display cores alloted to each VM and some other details of the virtual machine. Am using KVM. can anyone help to do so. Am using Ubuntu ...
0
votes
3answers
638 views

Shell Scripting for Linux Server Administration

I recently started learning Linux(Ubuntu), and i'm aware that Linux has it's own form of language i.e Shell Scripting. What i'll like to know is that is this language enough to administer a Linux ...
1
vote
1answer
2k views

PHP shell_exec() in ubuntu

I am using ubuntu with libreOffice. I have installed unoconv for convert a *.odp file to *.pdf. When i run the command unoconv -f pdf myfile.odp from terminal then it works very fine. I want to do the ...
2
votes
2answers
8k views

Call a shell script from PHP, run as root

I'm running ubuntu 11.10. I want to be able to call a shell script from php and run that script as root. When my php attempts to call the shell script as root --like this: $output = shell_exec('sudo ...
0
votes
2answers
757 views

Terminal says 'Broken package' when using apt-get to install phpMyAdmin

I have tried to install phpMyAdmin using the sudo apt-get install phpmyadmin command> The terminal says that there are "uninstallable" dependencies, therefore the package is broken.Perhaps the ...
10
votes
2answers
832 views

Can a server handle simultaneous shell commands?

I'm writing a very simple browser based MP3 player in PHP. Part of this project requires that every MP3 file is converted to a WAV file. There's a function in PHP called shell_exec that allows you to ...
1
vote
1answer
2k views

How to check if a user is logged in?

how do i check from within a php script, if a user is logged in? My current way is, to get the output of w | grep <username> and check, if there is output. It works, if a user is logged in ...
9
votes
2answers
3k views

What does .: mean in php include_path?

I'm trying to install Zend on a machine running xampp. Zend's help file says that in order to set up the command-line tools, I need to make sure that the contents of the /library directory are placed ...