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
4answers
77 views

How to setup an environment for running php scripts in Ubuntu?

In Windows,i used WAMP and adobe dreamweaver. In Ubuntu,i am planning to use bluefish editor. I hear that WAMP server equivalent is LAMP in ubuntu. I need detailed and simple explaination to ...
0
votes
1answer
80 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
105 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
47 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 ...
0
votes
0answers
16 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
57 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 ...
1
vote
0answers
29 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
23 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 ...
1
vote
3answers
110 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 ...
1
vote
1answer
89 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
69 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
30 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
43 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
424 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 ...
2
votes
0answers
77 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
38 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
36 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
29 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
22 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
30 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
89 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
21 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
43 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
193 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
95 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
18 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
87 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
78 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
130 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
72 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
57 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
8 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
22 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
65 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
27 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
20 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
351 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) : ...
0
votes
0answers
18 views

libapache2-mod-php5 : Depends: php5-common [duplicate]

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) : ...
0
votes
0answers
97 views

How to enable PHP APC in ubuntu 15.04

i am new at ubuntu and i am moving from windows, i am starting to make PHP sites and one of them requires me to enable APC, the site uses a PHP Framework called YII and whenever i visit it throws an ...
0
votes
1answer
307 views

How to downgrade php version in ubuntu 15.04 [duplicate]

I am working on a codeigniter project where the system requires php version < 5.6 that is 5.5, but few days ago I have installed ubuntu 15.04 with having LAMP stack installed using tasksel;the ...
0
votes
0answers
50 views

How to setup phpDocumentor 2 web interface in Ubuntu 14.04?

I have followed all the instructions both from the phpdoc website and from the phpdoc manual website . The commands I entered are: sudo pear channel-discover pear.phpdoc.org sudo pear install ...
0
votes
0answers
28 views

How can I solve problem with Jomla installation on EC-2 server?

My name is Igor, I woold like to install joomla on Amazon EC-2 Ubuntu server free tier, but I could not do this. After a week of probe and tests I deside to write you. This letter I send to Amazon and ...
0
votes
2answers
45 views

How to install SourceGuardian Software

I have this file (SourceGuardian-10-Evaluation-Linux-x86_64-Install) on my system, How do I install it in ubuntu 12.04lts
0
votes
1answer
39 views

how to get emacs24 to highlight PHP

Any emacs veterans able to assist? I can not find the files that the various websites that claim to show you how to obtain or make the settings for emacs24 to highlight PHP. I read contradicting ...
0
votes
1answer
26 views

apache2 RewriteEngine subfolder configuration is off / not wroking as expected / not sure how to fix it

The rewrite engine appears to be "functioning" but not as expected. Here is the dir tree of my public_html folder (serving using apache2 in my userdir) ┌─[admini@linuxbox][~/public_html] │ [13:16:45 ...
0
votes
2answers
42 views

How to allow lamp and apache2 service run parallel?

I have a php project in var/www/html. It runs when I start apache2 service is started. But I cannot access phpmyadmin where I have a database that is being used in my php project. (I had to stop lampp ...
2
votes
1answer
117 views

How to set default folder of php in netbeans?

On running php project in netbeans opens the URL localhost/html/ProjectName/file.php. I should correct this every time by removing html/. Is there any setting to change the default folder to run in ...
0
votes
0answers
9 views

save files in /home/user1/public_html to /home/user2/public_html

I am at a stand still. I am trying to figure out how to allow a php script on /home/user1/public_html/* to save file to /home/user2/public_html/images Everything goes well but the file is never ...
1
vote
0answers
19 views

Gedit PHP syntax highlighting

Does anyone know how to fix this issue? I have PHP inline to HTML. There's an opening quotation and the inline PHP also has a quote, but Gedit thinks it's the closing quote for the HTML. Add this to ...
0
votes
0answers
32 views

php files connected with mysql server not working

I started a php project in netbeans and connected it with a database in localhost/phpmyadmin. But on running it gives this error on browser.. Why does this happen? How to avoid it? Here are the ...