PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

learn more… | top users | synonyms (2)

0
votes
2answers
961 views

pecl install zip giving error ubuntu 12.04

I am trying to install zip using this command pecl install zip but I am getting below error running: make /bin/bash /tmp/pear/temp/pear-build-root9LqSPb/zip-1.12.4/libtool --mode=compile cc -I. ...
2
votes
1answer
251 views

How to develop application for OpenStack

I have installed OpenStack and everywhere I see tutorials about installing and deploying but no example about how to develop a simple app on OpenStack? using PHP Can anyone guide me?
0
votes
0answers
260 views

gpgkeys: HTTP fetch error 7: couldn't connect to host [duplicate]

I am trying to upgrade my PHP version 5.3 to 5.4 but it is throwing the error I am using Ubuntu 10.04 LTS - the Lucid Lynx Please help me to resolve this root@shanmugam-desktop:~# sudo ...
1
vote
0answers
331 views

Subdirectories Show 404 Not Found on 13.10 web server

I recently set up a web server on Ubuntu 13.10 and when I enter the external IP it works fine showing the index file of var/www/ but whenever I try to add a folder, say one called test, and I go to ...
1
vote
1answer
299 views

How to connect to SQL SERVER using php?

I have Microsoft SQL Server 2008 on Windows PC but my PHP is on Ubuntu, hosted by webfusion. I haven't configured anything at all but I want PHP to connect to SQL Server. What drivers do I need and ...
-1
votes
1answer
743 views

Cannot run PHP after upgrading from apache 2.2 to apache 2.4

Im trying to upgrade Apache from 2.2.22 to Apache 2.4.x on Ubuntu 12.04. I have PHP5.3.10 running on my server for the application. When i install the new version of Apache 2.4 it uninstall the ...
1
vote
1answer
126 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 using these parameters in the configure command: --enable-intl --with-openssl --without-pear --with-gd --with-jpeg-dir=/usr ...
0
votes
1answer
291 views

Website not running on Ubuntu after installing LAMP Stack

I did it... I moved to Ubuntu today for the first time. I've been loyal to Windows for quite a while, but here I am. Anyway, I'm not used to all the command line tools and I'm facing some trouble with ...
0
votes
3answers
2k views

error (13: Permission denied) in nginx 1.4.1

I am facing this issue on my nginx setup on ubuntu 13.10 I got these weird error on the log of my local domain 2014/04/06 21:29:37 [crit] 18065#0: *3 stat() "/media/user/Backup/Sites/sp/" failed ...
1
vote
0answers
76 views

PHP - Notice: Undefined variable: [closed]

I created header.html file where I want to include php, if I run this code: <?php for($i;$i<10;$i++) echo $i; ?> it shows: Notice: Undefined variable: i in ...
1
vote
2answers
1k views

Xamppp No Mcrypt.ini when intalling Lavarel

I tried to install Laravel on Xubuntu 14.04 I searched for every method, they all go like this. By the way, I tried installing php and apache without xampp and didn't as well so it's not about ...
0
votes
2answers
434 views

cant update to php 5.4 ubuntu 12.10

I am trying to install php 5.4 in ubuntu 12.10 but its not working. I keep getting php5 is already the newest version. (5.3.10). I tried to add the ondrej/php5-oldstable but still, it wont do the ...
1
vote
0answers
128 views

Install PHP 5.3.2 or any 5.3x on Ubuntu 13.10 [closed]

I am new to linux and installed Ubuntu and Apache2 by searching on Internet. Everything goes fine up to Apache installation. Now like to install php5.3.2 On searching found command ...
1
vote
1answer
935 views

Unable to locate package php5-readline

samitha@ubuntu:~$ sudo apt-get install php5-readline Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php5-readline What ...
2
votes
2answers
3k views

Can't install Phalcon extention on Ubuntu

I'm trying to install Phalcon frameworks and I can't get this part done right Add the extension to your php.ini: extension=phalcon.so Finally, restart the webserver I've changed my ...
0
votes
1answer
260 views

Can't install PHP extension sdo on Ubuntu 12.10

I'm running Ubuntu 12.10 with PHP Version 5.4.6-1ubuntu1.7. I have tried the standard instructions to install sdo: http://us2.php.net/manual/en/sdo.installation.php as well as the instructions in the ...
0
votes
1answer
43 views

PHP codes of Unix in Ubuntu

I am using windows7 . and VM VirtualBox for Ubuntu 12.04. I have one PHP project which is written in Unix. But now I have to host it through Ubuntu 12.04. I have already imported that project into ...
1
vote
0answers
31 views

How would I tell the last time Apache served a file?

I'm trying to figure out how to tell the last time a .php file was served by Apache. I have written an application on an Ubuntu Lamp stack with Mysql & PHP. I have 1000s of files and I'm trying ...
3
votes
3answers
16k views

How to know what version of PHP is used on my xampp?

I am using xampp on my Ubuntu OS. And I need to know what version of PHP my xampp is using. How do I do that?
0
votes
2answers
1k views

owncloud -problem installing packages

I have just installed these packages for building my owncloud, but always get an installation aborted error: rqie@rqie-VirtualBox:~$ sudo apt-get install apache2 php5 php5-json php5-gd php5-sqlite ...
2
votes
4answers
1k views

Unable to send data to mysql database. It is not taking by my php code [closed]

I am new to PHP in Ubuntu 13.10. But I am pretty much able to handle Ubuntu. However my question is that I can't add any data to phpmyadmin through a PHP code, though my code is perfect. Because I ...
2
votes
1answer
385 views

Prevent www-data from running scripts and programs

I discovered this little PHP script that allows you to enter GET requests manually from the browser address bar and execute commands. I played around with it and discovered that I could do all kinds ...
-1
votes
0answers
452 views

How can I safely downgrade from php 5.5 to 5.4? [closed]

I'm wondering if theres safe steps to downgrade from 5.5.9 to 5.4. I upgraded earlier this morning, this was purely accidental as I was trying to fix some package issues and now some pages aren't ...
2
votes
1answer
7k 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
2k 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
1answer
307 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
87 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 ...
2
votes
1answer
453 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 ...
-1
votes
1answer
6k 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
0answers
653 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
2k 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
2answers
1k 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
308 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
1answer
4k 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
144 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
64 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, ...
1
vote
2answers
61 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 ...
1
vote
0answers
780 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
1answer
273 views

Weird 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 ...
2
votes
1answer
1k 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
1answer
360 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 ...
-2
votes
1answer
737 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
1
vote
1answer
94 views

Catch output from “nginx -t” with php [closed]

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 ...
4
votes
1answer
3k 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
194 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
1k 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/ ...
2
votes
2answers
595 views

Browser tends to download PHP files instead 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? XAMPP ...
1
vote
1answer
673 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
46 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
166 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 ...