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
12 views

Can not create text files with PHP code into /var/www/html folder using 14.04 LTS LAMP

I am using Ubuntu 14.04 LTS & installed LAMP successfully & its working perfectly. But, i am unable to create a folder & a text file within /var/www/html folder using PHP code. Gets error ...
0
votes
1answer
20 views

Cannot install libapache2-mod-php5 because of unmet dependencies

I have a vagrant box that installs php 5.3.28 and most php libraries dpkg -l |grep '^ii' |grep php ii php5-cgi 5.3.28-1~dotdeb.0 server-side, HTML-embedded ...
0
votes
0answers
22 views

Install PECL_HTTP

I'm close to the madness with this problem. I need to use the HttpRequest class on PHP, I've followed the steps on this site Ubuntu PECL HttpRequest installation, but when run the sudo pecl install ...
0
votes
1answer
25 views

to render a simple html file in localhost

I am going through the david malan lecture on php,, So I have created a simple google.html file on /public_html/google.html which is as follows: anupam@JAZZ:~/public_html$ more google.html ...
-1
votes
1answer
36 views

Best IDE for php/web developement in Ubuntu

Can anyone suggest an IDE for php development in ubuntu 14.04. In Netbeans fonts looks narrow and ugly. Is there anyother alternative ? What about Aptana Studio 3 ?
0
votes
1answer
17 views

PHP5-FPM w/Apache2 FastCGI Error -1 Copy file failed

I'm using php5-fpm with apache2 and I'm receiving the below error message. FastCGI: comm with server "/var/lib/apache2/fastcgi/php5.fcgi" aborted: error parsing headers: invalid Status '-1 Copy file ...
-2
votes
0answers
16 views

I m not able to download apache2-prefork-dev [duplicate]

I m using ubuntu12.04 I use command: sudo apt-get install apache2-prefork-dev error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you ...
0
votes
0answers
28 views

Unmet dependencies when installing apache2-prefork-dev [duplicate]

I m trying following command: sudo apt-get install apache2-prefork-dev And getting this error: The following packages have unmet dependencies: apache2-prefork-dev: Depends: libaprutil1-dev but it ...
1
vote
0answers
32 views

Crontab not executing script with cURL

I have a cron that's set to run every ten minutes that works fine if I execute the file manually by entering php register.php But, my cron will not execute this file once it includes anything cURL ...
0
votes
0answers
16 views

Installing PHP 5.4 instead of 5.5 on Ubuntu Server 14.04 [duplicate]

Any one please suggest commands to install PHP 5.4 instead of PHP 5.5 that comes default with Ubuntu server 14.04 For some compatibility issues i want to install PHP 5.4 not 5.5. I have a fresh ...
0
votes
1answer
17 views

apache broke after upgrading

I tried to upgrade my php version with the help of this and somehow the apache version also upgraded. After this upgrade I got a lot of errors obviously and I managed to solve lots of them except this ...
1
vote
1answer
18 views

Can I debug PHP scripts running in Apache on Ubuntu?

Coming from the Microsoft world, where Visual Studio, Windows, and IIS seemingly play nice together, I can attach the Visual Studio debugger to the IIS process and debug code in play. When a web ...
0
votes
0answers
28 views

“php-clamav: depends on: phpapi-20090626+lfs but it is not going to be installed”

I want to install "php-clamav" . But... msy@msy-Inspiron-One-2020:~$ sudo apt-get install -f php-clamav 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是 ...
1
vote
1answer
35 views

Why won't this php script execute bash script?

Why am I not able to execute this bash script using php? I have tried exec() as well as shell_exec(). index.php <?php $old = getcwd(); echo $old; chdir($old); $message=exec("a.sh"); ...
0
votes
0answers
13 views

how to Optimize ubuntu 64bit for best PHP efficiency

I am PHP programmer. I want to work at my script in localhost but I want I haven't any proble after upload The script in Host. I now have problem about permission. I wan't to config my ubuntu 64it ...
0
votes
0answers
28 views

PhpMyAdmin wont let me log in without password

I am preparing a Vagrant box to develop websites and I wanted to install phpmyadmin, to log in just as "root", no password needed, since it is just for development, but whenever I try it, I get the ...
0
votes
1answer
32 views

testphp.php 404 Not Found

I installed LAMP Server. I can access http://localhost. I can also run successfully phpmyadmin. But when I go to http://localhost/testphp.php, I get a 404 not found. The file is in ...
0
votes
1answer
42 views

Downgrading PHP from 5.5 to 5.3 on Ubuntu 14.04

now, I know that this question has been asked tons of times over the internet, but I followed lots of tutorials on the argument without being able to get to the answer. This is my situation: Ubuntu ...
1
vote
1answer
57 views

Apache + php5 problem after 12.04.3 to 14.04.i do release upgrade (server)

I did a 'do-release-upgrade' Most upgrade went fine. But the upgrade from Apache 2.2.22 to 2.4.7 went wrong. There seems to be something wrong with the php5 apache module. I get the following error ...
0
votes
1answer
57 views

Installing mysql-server gives 504 Gateway Time-out

So I have this site im coding on that requires a database and is based on PHP. So for this site i installed phpmyadmin that also installed mysql-server. Before I installed phpmyadmin I didn't get a ...
0
votes
0answers
43 views

I'm not sure if LAMP on my Ubuntu 14.04.1 works correctly

I installed LAMP on Ubuntu 14.04.1 following this guide. However, when I go to http://localhost/testing.php/ from the browser, all I get is this: Not Found The requested URL /testing.php/ was not ...
1
vote
0answers
158 views

Updating Php 5.6.0 on Ubuntu

my question is how to update Php 5.6.0 on ubuntu if my folder with php5 is at: etc/php5
0
votes
0answers
36 views

Uninstall PHP 5.3 Ubuntu 14.04

I recently followed instructions given by AgentCool in Installing PHP 5.3 in Ubuntu 14.04. And I have PHP 5.3.28 as >PHP PHP 5.5.9 as >PHP5 How can I undo these steps and go back to original ...
0
votes
1answer
66 views

Php.ini file change not reflecting in phpinfo()

My php.ini settings are not reflected in phpinfo. It still shows upload_max_filesize as 2M but I have set it to 50M in php.ini. Can you please tell how to change php.ini properly? I'm using Ubuntu ...
1
vote
1answer
37 views

Location to edit xdebug.max_nesting_level in ubuntu 14.04 PHP using Lighttpd

I am getting fatal error maximum function nesting level of '100' reached aborting.. It seems I have to edit xdebug.max_nesting_level from 100 to more. But I am unable to find the correct file ...
1
vote
1answer
56 views

php not running on ubuntu 14.04

OS: ubuntu 14.04 Apache2: 2.4.7 php: 5.5.9 I've just made a fresh install a few days ago. Then install LAMP, set up apache virtual hosts, etc. Everything seem to be running fine... except for php. ...
1
vote
0answers
27 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 ...
0
votes
0answers
11 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 :) ...
2
votes
1answer
194 views

Should I upgrade to “Ubuntu 14.04 'Trusty Tahr'” from “Ubuntu 12.04 LTS” and what care do I need to take if I upgrade? [duplicate]

I'm basically a Web Developer(PHP Developer) by profession. I mainly work on PHP, jQuery, AJAX, Smarty, HTML and CSS, Bootstrap front-end web development framework. I've also installed and using ...
0
votes
0answers
21 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
21 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
2answers
60 views

Compute folder size for a given file extension only

I have a folder containing all my PHP projects, I'd like a command that would output the folder size of each project but only for the *.php files inside it. Ideally the output would be something like ...
1
vote
1answer
52 views

Config test failed when restarting Apache

When I tried to restart apache2 i got the following error. * Restarting web server apache2 [fail] * The apache2 configtest failed. Output of config test was: ...
0
votes
1answer
39 views

Install php tidy to sublime on ubuntu 14.04

I am using sublime text version build 3059 on ubuntu 14.04. I want to install php tidy in my installed sublime. So can someone tell me how to install php tidy. I am using sublime text for the first ...
-1
votes
0answers
51 views

How to access /var/www/ directory on ubunto 14.04 [duplicate]

I can't access this directory, and also not creating any file delete or remove why ?
1
vote
2answers
35 views

Do higher level scripting languages use shell scripts to work?

I'm just learning about bash and when I saw that bash uses 'echo' I tried to search for the relationship between PHP and bash and it seems like people are building programs were bash script and PHP ...
0
votes
0answers
17 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
40 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 ...
1
vote
1answer
48 views

How to remove all traces of curl installed using libcurl package (.tar.gz)

I have installed curl package in ubuntu 12.04. I tried the sudo apt-get install php5-curl method but it did not work. I downloaded the curl-7.37.1.tar.gz package from ...
0
votes
0answers
23 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
2answers
50 views

Unable to upload files (pdfs, images) larger than 1 MB

I have recently started PHP and Mysql project development on Ubuntu. In one part of the project I need to upload files. But my script is not uploading anything larger than 1 MB nor does it show any ...
0
votes
3answers
82 views

How to access a website under Ubuntu

I am newbie to Ubuntu and trying to migrate from Windows but there is something I can't understand in web developing. In windows I just install the server and make a folder in the www folder or ...
0
votes
0answers
71 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
1answer
57 views

call shell script from php when ubuntu 14.04 (rightly) disables the shell for www-data

I just migrated from 12.04 to 14.04. 14.04 (sensibly) disables login / shell for www-data. But my php site needs to run some shell scripts to run stuff like kindlegen, rsyncing files to another server ...
2
votes
1answer
42 views

DISABLE all mail functions in Ubuntu [closed]

I have a standard staging environment on a Ubuntu server (LAMP), with a couple of webpages on it. There are some webpages that send Emails on particular workflow events. I have to run few tests on ...
0
votes
1answer
27 views

How to configure zend framework 2 with vhost?

I followed the tutorial of zend framework 2, but the following error occurs when I try to view the page of the application . I configured vhost like this: <VirtualHost *:80> ServerName ...
0
votes
2answers
379 views

Mcrypt PHP extension required. Laravel, Xampp error

I'm having trouble with Ubuntu 14.04, Xampp and Laravel. I'm getting Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error when ...
0
votes
2answers
143 views

nginx and php5-fpm not working

before anything i searched everywhere and tested everything but still not working i install php5-fpm and nginx when i open localhost in browser i see this page : Welcome to nginx! so its working ...
0
votes
0answers
58 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 ...
1
vote
0answers
26 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 ...