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

How do I save an uploaded file in PHP?

In PHP, I'm trying to save a file to the /var/www/upload directory, but whatever I try, it doesn't work. I've tried giving www-data ownership of /var/www and subdirectories. I've tried modifying the ...
2
votes
0answers
86 views

Coordino permission issues?

I have downloaded the Coordino and wanted to run it on Ubuntu, tried to run it but its giving the following errors Warning: require(app/webroot/index.php): failed to open stream: Permission denied in ...
2
votes
0answers
321 views

Trouble with local server, URL not found errors with some, but not all local sites

I am setting up my Ubuntu laptop for my new job and I am having a strange issue. They have a crazy environment setup that I got working on my local Ubuntu 12.10 machine with Apache and PHP 5.3 (had to ...
1
vote
0answers
12 views

Cannot load /usr/lib/apache2/modules/mod_mpm_itk.so

I ran tasksel to install lamp server, but I accidentally delete everything, when I got everything work as before I noticed that apache is not working and here is there message I get while trying to ...
1
vote
0answers
18 views

After Xampp install php files downloading when called

I recently installed xampp and when ever my html file calls a php script firefox downloads the script instead of running it. I have the php5 module installed and this is what my apache hhtpd.conf file ...
1
vote
0answers
78 views

Installing Php-java-bridge in ubuntu 14.04 i need two servers apache and tomcat both

When I copied JavaBridgeTemplate621.war to /var/lib/tomcat7/webapps and started the tomcat7 server and trying to go to http://127.0.0.1:8080/JavaBridgeTemplate621/ I'm getting following errors. HTTP ...
1
vote
0answers
23 views

Apache2 and PHP error logging

I've been running a local apache2 on a Ubuntu 12.02 LTS with the latest PHP version installed. I do need to debug some WordPress code to find out why certain values are not set in the database. I ...
1
vote
0answers
76 views

Problem with Apache - not starting?

I was trying to install ion cube, I was looking at an instruction online, and just copying and pasting commands to Putty I realized that I was trying to install a 32 bit version on my 64 bit ...
1
vote
0answers
43 views

Error message odbc_connect(): SQL error: [unixODBC][FreeTDS][SQL Server]

I'm trying to get my Ubuntu server to connect to my SQL server, without a lot of luck. I keep getting the error: Warning: odbc_connect(): SQL error: [unixODBC][FreeTDS][SQL Server]Unable to connect ...
1
vote
0answers
60 views

How do I downgrade php5.5.3 to 5.4?

I am trying to downgrade php from 5.5.3 to 5.4. I tried to find a 5.4 version using aptitude versions php5-common Package php5-common: p A 5.5.3+dfsg-1ubuntu2 saucy ...
1
vote
0answers
45 views

Why my apache service does not work correctly?

I am just a newbie using Ubuntu 12.04 LTS. In the beginning, I just want to install mcrypt, I followed this solution: cd /etc/php5/mods-available ln -sf ../conf.d/mcrypt.ini . php5enmod mcrypt ...
1
vote
0answers
30 views

Why the php statement “require” shows in the browser the content of the PHP file after upgrading my Ubuntu server from 10.04 to 14.04? [SOLVED]

In my old web server everything worked properly. After upgrading to Ubuntu 14.04,the PHP statement "require" displays in the browser the content of the PHP file pointed, instead of read it and load ...
1
vote
0answers
46 views

XAMPP (LAMPP) on Ubuntu Touch

Can I install and run XAMPP (LAMPP) on Ubuntu Touch on a Nexus 10 in order to host a local website (that needs PHP and MySQL)?
1
vote
0answers
456 views

Apache Timeout (Problem loading page) on localhost

I am running a php script locally in my Firefox web browser. After exactly 300 seconds I get an error page. "Problem loading page. The connection has timed out. The server at localhost is taking too ...
1
vote
0answers
177 views

Apache2 + Php + Pthreads HowTos

04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl install pthreads. ...
1
vote
0answers
54 views

PHP Mysql connection works but no data can be displayed

I wrote this simple php script that just to import basic information from mysql table. As a result, not even a error message, but a blank screen. Something to do with the PHP - Mysql connection, but ...
1
vote
0answers
149 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
0answers
27 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 ...
1
vote
0answers
171 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 ...
1
vote
0answers
297 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
0answers
522 views

nginx with hhvm - Not found

I'v set up nginx with hhvm but, any file .php returns me "Not found" except index.php that returns me Running on HHVM version 2.3.2. Some of my configurations /etc/nginx/sites-enable/default ...
1
vote
0answers
121 views

Executing pdftk with php exec on Ubuntu 12.04.3

exec("cd /var/www && PATH=$PATH:/usr/bin/ pdftk 1.pdf 2.pdf 3.pdf 4.pdf output final.pdf"); I'm trying to execute this command on Ubuntu 12.04.3, it's working fine when I'm connecting via ...
1
vote
0answers
518 views

php-fpm high memory and cpu usage

My Real Ram and Virtual Memory is of each 1 GB. but php5-fpm uses very high memory approx 885MB. I searched for solutions but there is no effect. I have wordpress site and currently at a time there ...
1
vote
0answers
144 views

Integrate ImageMagick & MagickWand with php ubuntu 12.04

I have installed both ImageMagick and MagickWand in my ubuntu system by refering to the detailed instructions provided in Install ImageMagick From Source and MagickWand For PHP. When I chack whether ...
1
vote
0answers
482 views

Problems with php-Server (Now: Broken Apache2) - “Unmet Dependencies" - Ubtuntu Server with Plesk

I have a Ubuntu Server with Plesk insalled. My Englisch and my "linux" ist not very great! Since a few Days my PHP doesn't work. If i load a php site my Browser download the php file instead of ...
1
vote
0answers
467 views

Disable Zend Optimizer PHP 5.4

I am trouble-shooting an installation of Anahita, which requires APC to be installed and Zend Optimizer to be disabled. I have PHP 5.4 running on a Ubuntu 10.04.4 LTS server. I've been trying changes ...
1
vote
0answers
246 views

Setting up Virtualmin with PHP 5.4 or 5.5

I've tried various ways of getting a later version of PHP than 5.3 with Virtualmin. Each time breaking the server. I've tried adding ppa:ondrej/php5 and installing 5.5 both before and after installing ...
1
vote
0answers
285 views

Problem after installing phpmyadmin

I installed apache, mysql, and php on my Ubuntu 12.04 server but after logging in all I see is a white screen displaying a forward slash. Is there something else I need to configure or enable? / ...
1
vote
0answers
273 views

Need PHP5.3, lamp server is PHP 5.4.9

So I installed Ubuntu and installed lamp-server however this gave me PHP 5.4.9 and I want 5.3.25 to mirror a production server. I managed to use the dotdeb repos and get 5.3 installed, however its ...
1
vote
0answers
358 views

Website + LDAP + TeamPass, how to configure?

Got a small issue using my web server where I host a TeamPass website (http://www.teampass.net). I am using Ubuntu 13.04 Server and installed LAMP and I have a Windows 2008 R2 with Active Directory ...
1
vote
0answers
309 views

PHP-FPM dynamic vs ondemand Speed

In terms of speed, which is better? dynamic or ondemand? I just switch from apache to nginx so I need to know which of the two is better.
1
vote
0answers
150 views

How do I install the PHP gearman library in Ubuntu 13.04?

It doesn't appear to be a package in the repository and installing the PECL extension seems to fail. Is there a way for me to do a managed installation of this library without having to download a ...
1
vote
0answers
435 views

Setting up Mail server on Ubuntu 12.04.2 Server

Based on this article http://iain.it/linux/how-to-install-php-fpm-and-nginx-on-ubuntu-12-04 I've built my LEMP web server. I need one more function to work: mail. It's production server and I can't ...
1
vote
0answers
49 views

Can I change to lighttpd without problems?

I've purchased some new 'cloud hosting space' with VMs running 12.04.2 server. I'm looking for a LAMP stack, but I'm considering switching out Apache for lighttpd - for the speed and resource-usage ...
1
vote
0answers
148 views

stty doesn't reset with sudo after Ctrl + C

Let's say I have following simple PHP script: misan@thrope:~/tests$ cat stty.php <?php shell_exec('stty -icanon -echo'); // exit; $fh = fopen('php://stdin', 'r'); while (!feof($fh)) { $c = ...
1
vote
0answers
102 views

Intermittent slow intranet

I have a Linux server (Centos 6.2) running apache2, Mysql and PHP. Everything runs fine when accessing a page from any browser (all clients are ubuntu 12.04) but begins to get slow after say about 2 ...
1
vote
0answers
772 views

xdebug to work with aptana

How do you get xdebug to work with aptana? I've successfully installed xdebug and added the necessary ini directives to the /etc/php5/conf.d/xdebug.ini file: ...
1
vote
0answers
266 views

XAMPP ORACLE 11g

I have downloaded XAMPP for Linux. Have installed it. It works fine. But I have problem with oci8 extension. I have downloaded oracle instant client for linux and extracted it to /opt/lampp/lib. Then ...
1
vote
0answers
84 views

Why won't my code work in Ubuntu Server 11.10? Is it because of gd library?

I get this error when running the following code: No such file found at "widgets/104-text.png" I know that the code works because it works on my other non-ubuntu server. I do not know if it is gd ...
0
votes
0answers
6 views

Temporarily unable to connect to database

I've got a fully patched Ubuntu 12.04 Server VM that I'm using to host a few low traffic sites. My site is PHP (WordPress) and uses mysqli to connect to a MySql database - pretty standard stuff :) ...
0
votes
0answers
10 views

Joomla with postfix php mail not working

I am getting this error in mail.log (after trying to submit a contact form): fatal: Recipient addresses must be specified on the command line or via the -t option Its worth mentioning that I have ...
0
votes
0answers
16 views

phpmyadmin not longer working after updating ubuntu LTS12.04 to ubuntu LTS14.04

After I upgraded Ubuntu 12.04LTS to Ubuntu 14.04LTS, I found that phpmyadmin is no longer working by calling http://localhost/phpmyadmin. It did work on before upgrading. Now I get this when trying ...
0
votes
0answers
11 views

PHP script might be prevented form uploading file because of permissions

I recently had issues with a PHP upload script that refused to move uploaded files to a permanent directory. After numerous alterations and debugging attempts to the script (that previously worked on ...
0
votes
0answers
31 views

Enable php script to delete file

I have Ubuntu 12.04 on my server. I am trying to delete files using a PHP script. but It does not allow me. every time I use unlink it gives me Permission Denied message. I am not allowed to use ...
0
votes
0answers
18 views

Immediate “Maximum execution time” in php5 on Ubuntu 14.04 without parsing the script

I'm running a webserver on my pandaboard with ubuntu 14.04. At the moment lighttpd is installed with php5 (release: dfsg-1ubuntu4.3). After a fresh start of lighttpd everything works fine. All php ...
0
votes
0answers
39 views

Downgrade to PHP 5.4 on Ubuntu 14.04

I need to downgrade to PHP 5.4 mostly because of the mysql_* functions support. This question was already asked but the answers seems to be old and not working anymore. I've been searching for ...
0
votes
0answers
32 views

Application doesn't launch on startup (autostart) inside docker's container

the problem I faced with is none of applications doesn't launch on the system boot. I have image based on ubuntu:14.04 installed Nginx, Php5 and Mariadb. On every boot (!) I have to start services ...
0
votes
0answers
41 views

captive portal and squid3 transparent mode

http://aryo.info/labs/captive-portal-using-php-and-iptables.html I did at practice. but squid (transparent mode should be) entered in the access.log s pages can not see. I use the following iptables ...
0
votes
0answers
31 views

PHP mail not working on Ubuntu server

I have set up a development server using Ubuntu Server. I have configured postfix to send mail and I am able to send mail through the command line using for example: echo testing | mail -s Bla ...
0
votes
0answers
37 views

Error While Accessing Custom Class in PHP-JAVA-BRIDGE on tomcat7 in ubuntu 12.04

HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: ...