PHP is a scripting language, often used for websites.

learn more… | top users | synonyms (2)

1
vote
1answer
200 views

Run bash script from php

I want to run a shell script within a php webpage to check some processes running on my system (Ubuntu 12.04). Googleing I've found about shell_exec() but I can't manage to run the script when loading ...
0
votes
2answers
96 views

Unable to start my apache

After I downgraded my php5.5 to php5.3.10, I no longer able to start my apache2. Here is what I get: sudo service apache2 start [sudo] password for fcasili: * Starting web server apache2 ...
0
votes
0answers
89 views

Updated from PHPUnit 3.7.32 to 4.0.6, broke my UnitTesting

So I was unit testing some code with PHPUnit 3.7.32 or so and it was working fine but I tried to upgrade to version 4.0.6...big mistake it seems. I really don't know where to go at this point; wasted ...
1
vote
1answer
67 views

Apache restart after updating php pages

I have to restart apache every time i update a php file. It's not a client browser cache problem, I tried multiple browsers. The strange thing is I only need to do it with php files, html files ...
1
vote
1answer
30 views

Installing tomcat5.5 from source

I want to install PHP/Java Bridge. I installed Tomcat7 for it, but it failed: sudo dpkg -i /home/asif/jbridge/php-java-bridge-j2ee_5.4.4.2-3_all.deb Selecting previously unselected package ...
0
votes
1answer
90 views

How do I set up a Tor server?

I would like to host a tor hidden services website (aka .onion site) on my Ubuntu desktop with the LAMP stack installed. While the tor docs offer some guidance on running an anonymous server, the ...
0
votes
1answer
154 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 ...
0
votes
0answers
12 views

Unable to install php5-sqlite [duplicate]

$ sudo apt-get install php5-sqlite [sudo] password for umpirsky: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
0
votes
0answers
255 views

Ubuntu 13.10 install php-fpm with apache 2.4

I tried multiple tutorials on how to install php-fpm (cgi) with apache2. None of them worked with 13.10. I even installed ubuntu completly new after each one. This is one for example: How to configure ...
0
votes
1answer
27 views

How to config xdebug in ubuntu 12.04

I am trying to enable autostart for xdebug in php5 so it stops on errors when phpstorm debug is on. Problem is I cant find the [XDEBUG] section in /etc/php5/apache2/php.ini . I know that xdebug is on ...
0
votes
1answer
121 views

Ubuntu 12.04 Apache 2 - Inline CSS working but external CSS not working

In installed apache2 for use as a development server. Created my site, and it loads correctly in my browser, except that... External CSS stylesheets don't load. Inline CSS works, and the style tag ...
0
votes
1answer
67 views

'file --mime-type' vs 'mimetype' for php files

I'm trying to understand the difference between file --mime-type and mimetype. They are giving me different results on Ubuntu 12.04.4 LTS for this simple php file. <?php echo 'Hello world!'; ...
0
votes
0answers
57 views

Should I install Apache & PHP separately OR uninstall MySQL from a LAMP stack?

I'm developing a site for my customers to view their account transaction history, with the ability to make payments through a hosted pay-page. Our legacy system requires keeping our database ...
0
votes
1answer
224 views

Installation problem libssh2-php on Ubuntu 13.10

New here, be gentle... I am setting up a server using Ubuntu Server 13.10 64 bit. So far all went well, but now running into a problem during installation of libssh2-php. Setting up libssh2-php ...
0
votes
1answer
38 views

Where do I get PHP-CGI binaries for Ubuntu?

I want to set up an Nginx or Apache server which is PHP-capable. In order to use multiple PHP versions in parallel I need to use CGI. I can set up the CGI stuff, but where do I get PHP binaries from? ...
0
votes
1answer
19 views

Laravel serves a phtml file

I tried running Laravel php framework from my own custom folder (not in '/var/www'). I've set up vhost, and permissions and it seems to work correctly, but Instead of seeing the laravel welcome page, ...
0
votes
2answers
38 views

Is the latest provided php5 package in an LTS distribution secure?

I need to update php5 on a 12.04 LTS production server. The latest candidate provided is 5.3.10-1ubuntu3.9. Is that version patched to be secure for use in a production environment? PHP is up to ...
0
votes
0answers
62 views

Problems with Ubuntu One API and PHP

I have a PHP script that backups my servers and send the files to Ubuntu One. It was working fine until yesterday, but it's not working anymore. I found out there was a problem with the authorization, ...
1
vote
0answers
76 views

Apache: New files and folders does not get correct permissions

This is what i'm working whit. Ubuntu Server 13.10 /w Kubuntu Desktop 3.11.0-17-generic Apache/2.4.6 (Ubuntu) PHP 5.5.3-1ubuntu2.1 (cli) Module SuPHP Enabled My issues: I can install Joomla, and ...
0
votes
0answers
46 views

Wired behaviour of PHP SOAP Webservice on Ubuntu and apache2

We got a SOAP Webservice written in PHP. We also got PHPUnit Tests for this Webservice. Till last week we used Xampp on Ubuntu 12.04.4. Using Xampp the Webservice worked fine. Then last week we ...
0
votes
0answers
12 views

How to install Lamp in Ubuntu 12.4 LTS? [duplicate]

i am interested in php mysql web programing so i want lamp in Ubuntu Operating software.
2
votes
1answer
135 views

Upgrade php5-gd on 12.04

I'm aware there's already a post with the same title, but my question is different: as I explain it in a Stack Overflow post, I need to use a more recent version of php-gd in my 12.04 Ubuntu than the ...
0
votes
0answers
409 views

Installing PECL pthreads

I want to try threads in PHP on my Ubuntu 12.04 machine. I understand that I need ZTS support in PHP in order to use the pthreads PECL extension. I uninstalled PHP and built it from source with the ...
0
votes
1answer
62 views

how to install several php versions on ubuntu 13.10?

I switched to Ubuntu 13.10 and PHP version is 5.5. But the CMS I use is so far based on php versions 5.3 or 5.4. I tried phpfarm, phpbrew, php-version - nothing works !! I want to know how to ...
-1
votes
1answer
80 views

installing codeigniter on ubuntu 13.10 [closed]

i have a running apache mysql php xampp server on ubuntu 13.10 my path /opt/lampp/htdocs/xampp/www the correct path or directory inside /opt to unzip CI files
0
votes
1answer
41 views

Catch output from “nginx -t” with php

I'm trying to make a simple control panel for my webserver running nginx with php-fpm. I've managed to catch result of service php5-fpm restart and service nginx reload, but the output from nginx -t ...
2
votes
1answer
385 views

apt-get doesn't install latest PHP 5.4 from oldstable sources [closed]

I have two servers running 13.04, and at some point I added the oldstable package sources for PHP 5.4. For some reason I'm not able to update it anymore though — one server doesn't upgrade from 5.4.23 ...
0
votes
1answer
58 views

HTML doesn't show php script on Uuntu 12.04 ( PHP5, Apache2, mysql) all are installed properly

But info.php in /var/www/ does show the info. Only PHP embedded in html doesn't show the script. please help me.. I have tried the previous askubuntu questions and didnot get anything useful so ...
1
vote
1answer
209 views

Ubuntu 12.04 - Installing PHP with -fastcgi

Does anyone know how to install PHP on Ubuntu with fastcgi enabled? I've installed my PHP from the following site: http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/ ...
3
votes
2answers
76 views

browser tends to download php files nstead of displaying them, while using XAMPP for linux

I am using XAMPP for linux, but when i try to open a php file saved in a folder saved in home directory, the browser downloads the php file instead of displaying it, what could be the problem? ...
1
vote
1answer
194 views

object not found in lampp ubuntu 13.10 [closed]

I am a newbie linux user. I have installed xampp 1.8.3-2(lampp) on Ubuntu 13.10 and configured it. I paste my www folder to Ubuntu 13.10 in /opt/lampp/htdocs. Now that the owner of www folder is ...
1
vote
1answer
28 views

Getting issue with file permissions in Ubuntu 10.04

I've a development desktop having Ubuntu 10.04, Apache2 & PHP 5.3.2 installed. I've given 0777 permissions to my web application root folder and Apache2 is also running under current username. But ...
0
votes
1answer
46 views

How to set up PHP mail on Ubuntu Server? [closed]

I have tried to set up sendmail or postfix so many times, but never got it to work. I have Ubuntu Server 13.04 and I wont that server to send mail throw my mail-acount on One.com that is a ...
2
votes
1answer
68 views

Install both libmemcached10 and libmemcached6 ubuntu 12.04

Just wondering if someone can help me here, I'm still quite new to Ubuntu an Linux in general and seem to be having a problem with two packages: libmemcached10 is required for php5-memcached but ...
1
vote
1answer
220 views

Running PHP Cron Job with Arguments

Im trying to run a PHP script, once a day, on ubuntu 13.10 server with php5. I have cron jobs set up, via ajenti control panel, verified with crontab -l, for this command. php /path/script.php ...
0
votes
0answers
65 views

trying to understand libapache2-mod-auth-mysql

I'm trying to install mysql server, client and phpmyadmin. I was able to successfully install mysql server and the client.. on the phpmyadmin, from the video instruction i was trying to follow it says ...
2
votes
1answer
251 views

How can I get the `bcmath` plugin in php5 in Ubuntu?

I've seen a PHP BC-MATH installation for YUM but not apt-get. Does one know of a working apt-get solution? Unfortunately, from this SO thread, apt-get install php5-bcmath gives the error Unable to ...
0
votes
2answers
123 views

Problems with the /var/www folder

I am new to Ubuntu, I've installed 12.04. I used to use wamp server on Windows, and after changing OS I moved some files from www folder to /var/www on Ubuntu. But when I try to view that folder in a ...
-1
votes
1answer
125 views

How can I repair my PHP installation?

I try to test my php installation on a ubuntu server without gui. Therefore I follow the 3rd this howto for LAMP(!). This includes to install php5 et al. with sudo apt-get install php5 ...
1
vote
1answer
43 views

How to make PHP run on other folders?

I have a PHP project in /var/www/myproject I am wondering if I want to have my projects in /home/myusername/Projects/myproject and be able to run PHP on it, what should I do with Apache? What if I ...
0
votes
1answer
74 views

Problems with instalation of Zend-framework

When I type this command: apt-get install zend-framework I am getting this error: dpkg: error processing zend-framework (--configure): dependency problems - leaving unconfigured Errors were ...
0
votes
0answers
57 views

Step by step installation of mediawiki math extension

I struggle with the installation of the mediawiki math extension. I recently downloaded mediawiki and everything works well. Now I want to display math equations, so I downloaded mediawiki-math via ...
1
vote
1answer
179 views

How can I install different versions of PHP in xampp

I installed the latest version of xampp i.e. 1.8.3-2 in ubuntu 12.04. I found that it include php 5.5.6 and I want the lesser php version to work on my site. How can i install the new version or ...
0
votes
1answer
34 views

upgrading pdftk 1.41 to 1.44 how can I check for breaking changes?

I have the wonderful task of finding out what ( if any ) breaking changes are if we upgrade from PDFTK 1.41 to 1.44 Here is our use-case We use PDFTK on the command line from a PHP application ...
0
votes
1answer
45 views

Can't run PHP script accessing my Mysql databse

I've created LAMP server in my ubuntu desktop. I've also made a sample database in Mysql having 6 columns. I can access it through the terminal. I've also created a php script for accessing the same. ...
1
vote
0answers
170 views

Ubuntu Server 12.04 php5enmod

For the life of me I can not figure out why php5enmod can not be found in 12.04. I can not use it to install php modules like mcrypt. Any suggestions?
1
vote
1answer
349 views

Ubuntu 12.04 PHP5.3 opcache.so installtion problem

I got this error when i call php -v Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory PHP 5.3.10-1ubuntu3.9 with Suhosin-Patch (cli) (built: Dec 12 ...
0
votes
1answer
1k views

How can I install and configure an SMTP server?

How can I go about setting up an SMTP server to send email as *@mydomain.com? How can I then use this SMTP server with a PHP script that grabs data posted from my website's contact form and send it ...
0
votes
0answers
34 views

How could I set the Apache DNS?

I have an Ubuntu Server 13.10 and I think that I'm having problems with the Apache/PHP DNS. The computer has a perfect connectivity. I can send mails from shell with PHP, but I can't send from the ...
0
votes
2answers
959 views

How to install php IMAP for php5-fpm?

I'm trying to install Vtiger CRM on ubuntu. This require IMAP. How to install PHP IMAP for php5-fpm?