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
0answers
7 views

fopen with a+ fails due to permissions

In php, I am calling fopen(filename, 'a+') in a directory that belongs to www-data and has permissions 777. The resulting permissions of the file created by fopen are 644, and so I get FALSE for the ...
2
votes
0answers
5 views

How can I build PHP5 Dependencies while having MariaDB installed?

I am trying to build php5 dependencies on Ubuntu 14.04.2 LTS. Unfortunately I get the following error message. % sudo apt-get build-dep php5 Reading package lists... Done Building dependency tree ...
0
votes
0answers
11 views

PHP file doens't reload

I'm running a lamp server to develop php. Everything was just working fine until I tried my script. I have a html form file which after being submitted to the server leads to a php file, the html file ...
0
votes
0answers
4 views

Server: problem with OPCache extension installation, PHP version conflict

On Ubuntu server i have problem with installation ZEND Extensions. Propably because i have two versions of PHP. Apache2 uses version 5.4.3 ... same returns when i use command "php -v" But when i ...
0
votes
0answers
6 views

GLPI dosen't work on browser

i'm running GLPI 0.84 on Debian Jessie, the solution is installed on a virtual machine.Since 2 days when i try to access to Glpi using the browser, a blanck page is shown and there's any word about an ...
0
votes
0answers
10 views

How do use .htaccess on Ubuntu 14.04.2 LTS?

I'm novice. I'm use Ubuntu 14.04.2 and I'm set .htaccess in directory /var/www/example.com/.htaccess But ny script hello.php can't work run error 500 internal server error. First Step : 1. change ...
-1
votes
0answers
14 views

how do use ubuntu 14.0 sent mail function php multiple mail in one file [on hold]

I'm beginner use ubuntu on my website but I don't know how to set ubuntu sent multiple mail? 1. I'm install **sudo apt-get install postfix** set by internet 2. after I'm use file bird.php sent mail ...
1
vote
0answers
21 views

How to install latest version of Imagick on Ubuntu 12.04?

I'm using Ubuntu 12.04 and I'm running PHP and ImageMagick on it. Of course, if I just want a working box, I would just install it via: sudo apt-get install imagemagick php5-cli php5-imagick But ...
0
votes
0answers
47 views

executable running without sudo but not with sudo

I installed xampp in my system and it is installed in the location /opt/lampp. After that i added the php location to path varialbe using export PATH=$PATH:/opt/lampp/bin. So when i run php -v using ...
-1
votes
4answers
32 views

How to set up an environment for executing PHP files in Ubuntu 14.04?

I am coming from Windows.In Windows,i used WAMP and Adobe Dreamweaver CS 6. In Ubuntu, I am going to use Bluefish Editor. I need to setup LAMP(Linux Apache MYSQL PHP) and Phpmyadmin.Please give me ...
0
votes
1answer
25 views

Xdebug with php5.6 not working

Until yesterday I used Ubuntu 14.04 with php5.5 and nginx, everything working perfectly including xdebug. I then updated to php5.6 via sudo add-apt-repository ppa:ondrej/php5-5.69 sudo apt-get ...
-1
votes
2answers
18 views

Can't find httpd.conf

I have installed Ubuntu 14.04 on a laptop and installed apache 2 (version 2.4.7) and PHP 5. I cannot find httpd.conf. I need to change it because when I try to open a .php page I see a download box. ...
0
votes
1answer
30 views

PHP returning blank pages

So everything was working fine after I changed some permissions of a folder inside /var/www/html. It was just a random project. IIRC I just did chmod u+x, that's it. This created the whole mess, I ...
-3
votes
0answers
13 views

Recurrent error in Ubuntu 14.04 Lemp Stack

I am running a tracker (CPVLab) on a Lemp based server, the php site appears to be functioning correctly but I have a recurrent error in the logfile: "2015/07/23 14:30:57 [error] 1302#0: *10 FastCGI ...
0
votes
0answers
12 views

Apache indexing options

OK so I've got my web server up and running and I'm really happy with it. Only thing is, the site software (PHP CMS type setup) I'm using is telling me to disable indexing on a particular folder for ...
1
vote
0answers
27 views

How to check if a cron job is running or not through php script?

Back to my question How to check if a cron job is running or not?, the answer there is valid which stated to redirect output to a file and test. 15 * * * * /usr/bin/php ...
0
votes
1answer
23 views

including datas from my database in dropdown [on hold]

I am creating a webpage in which person enters a name and the marketplaces registered under that name is displayed in a dropdown. Here's part of my code <form name="login" ...
1
vote
0answers
15 views

Is it possible to use APCu with XAMPP on Ubuntu?

I've spent two days trying to install it with my php5.5.15 on Ubuntu 12.04.4 LTS. Just curious if anyone out there ever got it to work. If so, please help.
0
votes
1answer
20 views

How can I stop another working webserver?

I get this error when I try to start Apache web server. I've been working on it for about a month and suddenly this error appeared today: error:: xampp: another webserver is already running. any ...
0
votes
0answers
30 views

Can someone please explain this mysql statement to me [migrated]

I am trying to learn mysql on my own by debugging a php program. However I am now stuck. I do not understand what this particular statement is or what it does: $StatusRequirements = array( ...
1
vote
3answers
50 views

How to check if a cron job is running or not?

I added the following command in crontab -e: 15 * * * * php /home/rizwan/PHP-workspace/mgstore/testcron.php I need to run testcron.php every 15 minutes; for testing purposes I used the following ...
-2
votes
0answers
49 views

PHP 5.3 Debian 8.1 Jessie? [closed]

I'm trying to install PHP 5.3 in Debian 8.1 Jessie, but I can't. I need to use register_globals and magic_quotes (not available on 5.4). Is it possible? How? Thx!!
1
vote
1answer
51 views

Apache 2 on Ubuntu Server 14.02 LTS - Apache won't load index.php

I've set up a development environment in which I have a LAMP stack running on Ubuntu 14.04 LTS (runs on raspberry PI 2 B) and NetBeans on my PC and laptop. The problem starts when Im trying to ...
-1
votes
2answers
35 views

php5.3.29 on Ubuntu 14.04

I want to install php5.3.29 with nginx and mysql-server from command line on Ubuntu 14.04 64 bit. Please give some step by step guideline to install php5.3.29.
0
votes
0answers
23 views

Set up PHP+Bootstrap3 environment (Lubuntu 14.04, LXDE)

I've yet to find a guide which explains it thoroughly. I'm running Lubuntu 14.04 LXDE on a crouton distro on a chromebook. Some root privileges are a bit of a mess, but otherwise 100% ubuntu distro. ...
0
votes
1answer
27 views

Why is apache2 .htaccess rewrite not working with /index/ [closed]

I have been through many of the questions/answers and can't find a solution that fixes this issue. My rewrite is working (for the most part). The following work no problem at all: ...
1
vote
1answer
107 views

Downgrade from PHP 5.6 to 5.5

I need to downgrade my PHP from 5.6 to 5.5 Here is what I've done so far sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` Then sudo apt-get install ...
1
vote
0answers
20 views

Why is my NGINX downloading files?

I've set up a redirect so I can serve my PHP files without the .php extension, but whenever I visit a "clean" url, my browser downloads the file, suggesting NGINX isn't hosting it as a PHP file. How ...
0
votes
1answer
20 views

How can I fix phpMyAdmin, broken after Ubuntu update?

I updated Ubuntu from 14.04 to 15.04 and during the update process it asked for my dba password so it could update phpMyAdmin, however it kept refusing it. Possibly due to it saying it was trying ...
0
votes
0answers
16 views

Difference between using mysql in xampp and using mysql seperately

I have used xampp on windows to do some php programming(basic) and now i'm trying to do some python/perl database connectivity programs(again basic) with mysql. The thing is when i used xampp, it ...
0
votes
0answers
24 views

Web services integration to new server

I currently have an apache server running my Drupal web site on an ubuntu 14.04 machine. Recently we had some development work done with the site and the developers created web services with API ...
0
votes
0answers
20 views

How to display .php pages?

I am new to LAMP in my Ubuntu 15.04. I just installed the LAMP stack and to get my php info, I made testphp.php which has the following code... <?php phpinfo(); ?> I placed the file in ...
1
vote
0answers
16 views

The connection has timed out when trying to access mediawiki page. Cant figure out why its not working

For some reason, I cannot access the mediawiki website I created, it says "The connection has timed out" whenever I try to access the main page.I started randomly about a week ago, and I cannot find ...
1
vote
1answer
35 views

How to upgrade to PHP 5.4 from PHP 5.3 in Ubuntu 10.04? [closed]

I came across some information that I'll have to upgrade Ubuntu OS in order to do so, but I want to know if there are any alternatives? Because upgrading Ubuntu would be a big job for us as we're ...
0
votes
1answer
17 views

How do i stop running webserver on my ubuntu?

i've been using xampp as my local host webserver for a while untill suddenly i tried to start it today for some tutorial it says "failed to start Apache...another web server is already running,, any ...
0
votes
0answers
26 views

how to enable PATH_INFO on apache 2.4 installed on ubuntu 14.04

I’m in the process of developing a small application with php , so I’m working with apache 2.4 server and php 5.6 , the PHP_INFO won't work for me , in other forum they told me that I have to edit the ...
0
votes
2answers
143 views

Can't apt-get upgrade

So apt-get tells me to use -f install guy@server:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done ...
0
votes
0answers
64 views

PostgreSQL functions undefined

Update: Have edited my question now after doing some more testing. I am trying to connect to a PostgreSQL server with PHP, but get the following error message: Fatal error: Call to undefined ...
0
votes
0answers
12 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (I'm 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
2answers
57 views

Need to install specific version of LAMP prerequisites on Ubuntu 14.04 desktop LTS

I need to install below specific version on Ubuntu Linux (desktop 64-bit 14.04 LTS) how can I do that please help PHP 5.3.28 Mysql 5.5.38 Apache 2.2.26 Any help will be highly appreciable Regards ...
0
votes
1answer
43 views

Problems using PostgreSQL with XAMPP

I seem to have trouble getting PostgreSQL to work on XAMPP (using Lubuntu 14.02). I am new to working with both PHP, servers and databases, but I get the following error message. Fatal error: ...
0
votes
1answer
60 views

Using Upstart / init with PHP daemon nohup php daemon.php

Till now I had no real need to learn bash and init scripts as I need to at this point. I have created a custom Twitter app that is persistently, or constantly, connected to the API. It does tasks like ...
0
votes
2answers
54 views

Why don't my php files work on my Apache2 server?

I am trying to get a survey (PHP files) to work on an Apache server. I tried it first with XAMPP, but then got the following error message: Fatal error: Call to undefined function ...
-2
votes
1answer
40 views

how to execute php script in ubuntu 14.04 [closed]

how to execute php script inside html in ubuntu 14.04? <html> <head> <title>Hello World</title> <body> <?php echo "Hello, World!";?> </body> </html>
0
votes
0answers
7 views

Apatana Studio3 configuration for php

I installed Apatana studio3. When I try to run a php script it asks for a php-interpreter. I am using Apache2. So what is the executable path and .ini file location for this configuration.
0
votes
1answer
18 views

How to create folder in mysql5.7?

I try to upload video php to mysql. i try to create folder but not success. below step i apply Edited phpmyadmin's config file nano /etc/phpmyadmin/config.inc.php Added the path for both upload and ...
0
votes
2answers
55 views

Setting permission for Xampp installation directory. see details

I know bit about setting permission but i'm little in a mess with it. I'm new to ubuntu so i get little confused and took much time to solve a little problem. I have installed xampp with installer ...
0
votes
0answers
19 views

Serve php RESTful server with apache2 (ubuntu)

I have a ubuntu machine on which I want to run a php rest server. Here is my default config file: ServerName localhost <VirtualHost *:80> DocumentRoot /var/www/html/otherSite ServerName ...
0
votes
0answers
15 views

Webpage download stops at <?php tag

Really strange problem. Website has worked fine under 12.04 (reinstalled server as 15.04 because it was running very slow). As page loads, all html code appears until first <?php and then ...
2
votes
1answer
159 views

Cant Downgrade php5.5 back to php5.3

I have tried to upgrade my apache2.2 to apache2.4 and php5.3 to php5.5 on my Ubuntu 12.04. For php5.5 I have used those commands below (I dont remember which PPA i used for apache upgrade) : ...