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)

2
votes
2answers
271 views

Does the apache/php5 package include Zend?

I'm loading up a fresh development computer for one of my new hires. As a standard, I put in a very basic LAMP server on all of our development computers. The one I'm currently loading is running ...
-1
votes
0answers
24 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 ...
50
votes
5answers
107k views

Global Installation of Composer (manual)

I followed composer manual (global installation of composer (manual)) to install composer on Ubuntu. $ ll /usr/local/bin/ total 4760 drwxr-xr-x 2 root root 4096 2012-03-29 08:29 ./ drwxr-xr-x 10 ...
0
votes
0answers
6 views

Remove index.php in url on ubuntu server 14

I just set up my ubuntu server 14 on local network complete with lamp and a test codeigniter php framework with an .htaccess containing, RewriteEngine on RewriteRule ^$ /index.php [L] RewriteCond ...
0
votes
0answers
10 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
10 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 ...
-1
votes
2answers
37 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
18 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 ...
1
vote
0answers
51 views

How to run php files in ubuntu?

I installed apache2, php5 and mysql. http://localhost/ url in browser shows it works. I saved a php file in /var/www/ as testphp.php. Code in the file is.. <?php phpinfo(); ?> Now on entering ...
0
votes
0answers
5 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 ...
-1
votes
0answers
7 views

GLPI dosen't work on browser [on hold]

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
12 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 ...
0
votes
1answer
26 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 ...
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 ...
2
votes
2answers
5k views

How to fix phpMyadmin login?

I've isnstalled phpMyAdmin with apt-get install phpmyadmin. When I open "http://localhost/phpmyadmin/", enter "root" as the user name and my MySQL root password and press go, then if I use Firefox, I ...
-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 ...
1
vote
2answers
3k views

Permission denied while writing a file in var/www inspite of adding me to user group

I gave permissions to read and write files in /var/www to the working user(me) through the steps given in Whats the simplest way to edit and add files to “/var/www”?. It works fine when I try to ...
0
votes
1answer
31 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 ...
8
votes
7answers
30k views

Unable to set password for the mysql “root” user

I am new to Ubuntu. I am running Ubuntu 12.10. I am trying to install apache,php,mysql. However I have installed apache and it is running perfectly. sudo apt-get install apache2 But when I tried to ...
-1
votes
2answers
19 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. ...
1
vote
1answer
3k views

Call to undefined function sqlite_open() in CLI mode

12.04 AMD 64 apt-get install sqlite php5-cli php5-sqlite php -r '$x = sqlite_open();' PHP Fatal error: Call to undefined function sqlite_open() in Command line code on line 1
-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
13 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 ...
0
votes
1answer
4k views

Error in apache configuration

Initially my PHP was running well and after that when I installed perl CGI modules in order to run my CGI programs, there was problem. From the local host, I am not able to compile my PhP files nor ...
1
vote
0answers
28 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
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 ...
0
votes
1answer
23 views

including datas from my database in dropdown [closed]

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" ...
3
votes
5answers
2k views

After upgrading to 12.04 from 10.04, can't login to PHPMYADMIN

I just can't login to PhpMyAdmin anymore, it says bad logins. PHP works perfectly. Please help. Thank you. 2002 Cannot log in to the MySQL server Language Log in Username: Password: Connection for ...
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( ...
-2
votes
0answers
56 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
53 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 ...
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. ...
7
votes
5answers
51k views

how to correctly install apache2, php5, mysql and phpmyadmin

What is the most correct method of installing apache 2 server, php5, mysql and phpMyAdmin? I installed it this week, and I had a lot problems without solutions, so now that I reinstalled Ubuntu 13.04 ...
2
votes
1answer
64 views

Error while installing phpmyadmin package in ubuntu 14.04 [closed]

root@anonymous-20-a213l:~# apt-get -y install phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may ...
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
109 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 ...
1
vote
1answer
1k views

Debugging PHP in Ubuntu (Xdebug)

PHP Vim Debugger: Configuring Apache I am trying to install Vdebug to debug PHP in Vim. Unfortunately, when I press F5 this message appears after a few seconds Waiting for a connection (Ctrl-C to ...
0
votes
0answers
17 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
2answers
149 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
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 ...
3
votes
1answer
4k views

pg_connect(): Unable to connect to PostgreSQL server

I have read multiple articles detailing this fix for this exact issue. I have tried all kinds of variations of editing the pg_hba.conf file but no luck I still get the following error in my Apache log ...
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 ...
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 ...