PHP is a widely-used general-purpose scripting language that is especially suited for Web development.

learn more… | top users | synonyms

0
votes
1answer
1k views

How to install PHP 5.3.18 on Amazon EC2?

I am googling for a while but with no luck. I am looking for quickest way of installing PHP in 5.3.x version on Amazon EC2. Could someone give me any advice?
3
votes
1answer
102 views

Installed mysql from source on linux and then how to get it work with php?

I installed apache and php from source and got them working together a month ago. Because I'm learning both of them this term. Now I need mysql to do more works. And I installed mysql from source just ...
0
votes
1answer
745 views

web server very slow, bombarded with php-cgi processes?

I have a Parallel Plesk 11.0.0 with CentOS 6.3. Lately, I've noticed that my web server runs VERY slow (not the norm), CPU average at 80% no matter what kind of traffic, and my top is filled with ...
0
votes
1answer
642 views

Slow PHP over ubuntu server | VirtualMachine

I have an Ubuntu-server 12.04LT-64x installed on VMware Player (I found VMWare works better than Virtualbox after few installations over vb). My host computer is an Intel i3 with 6GB-RAM and ...
0
votes
3answers
1k views

How do I debug an Apache web server failing to load on windows?

On my dev environment I upgraded php with an msi, and my apache wouldn't load anymore. Where can I find information about the reason it failed? I have the error logs for each virtual server, but no ...
3
votes
1answer
3k views

Nice commands in a .sh script for cron jobs

I have this php script that I need to run on shared webhosting. I have created a cron job that executes an sh script. The command for the cron was: /bin/sh /home/user/script.sh So I'm assuming it is ...
0
votes
1answer
87 views

How can I run Bitnami OSQA with other web service (wordpress, joomla)?

I installed OSQA Bitnami on my VPS. And I also point 3 domains to this VPS. Now I want each domain point to different web service (I have another PHP website I want to host here). How can I run php ...
-2
votes
1answer
629 views

How to increase page loading speed in PHP? [closed]

I am developping a website for watching movies online using php and I want to know how to increase page load time for pages. Because my pages contain a lot of content I do not know how I can get more ...
0
votes
1answer
341 views

Can't Start Apache on on Snow Leopard. “libphp5.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0”

To cut a long story short, I was trying to compile and get ImageMagick working on my Mac running Snow Leopard. One thing led to another and now I am stuck with the following error message when I try ...
0
votes
2answers
483 views

How do I run php scripts on a host's server via command line?

I have a hosting provider with mediawiki installed, I am trying to install an extension and I have to navigate to a directory on their server and run an install.php script. How do i do this? I have ...
1
vote
0answers
908 views

EnterpriseDB ApachePHP - PHP not working

I realize there are a million 'php not working threads' on superuser, but none of them cover my situation, and none of the answers have solved my problem. I installed apache/php on windows 8 as part ...
1
vote
0answers
84 views

Libpdf_php complaining about non thread safe binaries

I installed libpdf_php on MAMP v2.0 and after restarting Apache I get following error: [11-Jan-2013 11:48:21 UTC] PHP Warning: PHP Startup: pdf: Unable to initialize module Module compiled with ...
-2
votes
1answer
58 views

Looking for a program like php formater [closed]

I got a php project which I have to develop but problem is last developer didn't care about readability of his work. So I ended up having hundreds of php files which are impossible to read. Look at ...
1
vote
1answer
713 views

Giving write permission to a directory linux

I have a strange problem. I gave a directory ci with chmod 777 ci permission. The ls -l command shows drwxrwxrwx. 5 root root 4096 Jan 1 18:08 ci But when I tried to create a file innetbeans, it ...
0
votes
1answer
834 views

Plesk SSH chown root:root admin by mistake

I have a Plesk server running the domain geekwiz.com. I was trying to run cronjobs using the scheduler on plesk however I was receiving emails of the cronjobs saying: permission denied. I SSH into ...
1
vote
2answers
643 views

Interpreting PHP offline?

I'm trying to learn PHP, and it's getting annoying having to upload a file to the server every 30 seconds. Is there a way to get a browser (I use Chrome on Mac 10.6.7) to interpret a PHP file (browser ...
-1
votes
1answer
202 views

Is it possible to save a folder with SFTP? [closed]

I've uploaded a folder with extension .zip via a web interface and I want to save via SFTP so that a perl script can retrieve the folder, unzip it, and execute some instructions. I've found these two ...
1
vote
1answer
941 views

PHP: mkdir(): Permission denied

I've php script that should create two new folders in "albums" and "pl". in "albums" apache can create a new folder but not in "pl", even though they have the same permissions. I can't understand what ...
0
votes
2answers
995 views

Linux (Ubuntu) Run program in background

I am trying to run a PHP script in background on my Linux server over SSH (Putty) but I'm not getting this to work. The command I want to run in background is: php buildscript/build_css.php as ...
2
votes
1answer
34k views

How do I disable ALL error messages via php.ini?

Despite the following settings below, I often see the path to the file producing the error. How do I turn off ALL errors no matter what? error_reporting = E_ALL display_errors = off log_errors = off ...
1
vote
1answer
146 views

How do I setup a website on Ubuntu Server 12.04 with PHP, MySQL, and webmail?

I have a computer in my room running Ubuntu Server 12.04 and I would like to know how to run a website off of it. I already have installed PHP and MySQL but I don't know how to install webmail or how ...
0
votes
1answer
136 views

php -S not working (development server on LMDE with Firefox)

PHP 5.4 comes with a built-in development webserver: http://php.net/manual/en/features.commandline.webserver.php When I try to start the server like documented everything looks fine: php -S ...
1
vote
1answer
360 views

Why cannot I upgrade phpunit_selenium package in PEAR?

Currently I have PEAR v1.9.4 installed. If I perform pear list -a I see: PHPUnit_Selenium 1.2.8 stable in the middle of the response. While the latest version is 1.2.11. I've already updated ...
3
votes
2answers
78 views

What are the .php~ files?

I am working on one PHP project, and I am having some files for that. Some of the files have anextension as file_name.php~ What does it mean and how do those files get created?
0
votes
1answer
471 views

Unable to install ssh2 lib for php on centos

I'm trying to install the ssh2 lib on my centos os server as per this tutorial : http://blog.dynamichosting.biz/2011/01/10/installing-ssh2-extension-for-php-on-centos-5/ Everything seems to go fine ...
0
votes
1answer
1k views

Crontab is using some sort of hidden cache?

I used to have a crontab that ran like this * * * * * /usr/bin/php /var/www/vhosts/default/htdocs/agent/time_keeper.php > /dev/null 2>&1 It worked fine. Now I moved that php script to a ...
4
votes
3answers
6k views

How to log php error in a separate file?

I just did an upgrade of my server to Fedora 17 and merged some configuration files containing .rpmnew into the existing ones. I have been successfully logging my php errors in a separate log file by ...
0
votes
1answer
577 views

mac os x terminal php command not found

I am using Mac OS X 10.6.8. In Terminal, when I enter php -v, I get below message: Last login: Sun Dec 16 20:22:05 on ttys000 You have mail. -bash: e: command not found ~ $cd / / $php -v -bash: php: ...
0
votes
1answer
5k views

PHP: Installing mbstring - package unavailable

I want to install mbstring in PHP. I used these commands in ssh: sudo yum install php-mbstring I tried all the below repository, but I always get: No package php-mbstring available. sudo nano ...
0
votes
1answer
463 views

Scanning php uploads in tmp directory with clamdscan fails

I can't seem to get this thing to work, some permission problem maybe, but i can't even run clamdscan normally form console with root the result is always Permission denied. for example i create a ...
2
votes
2answers
2k views

Cannot change default path to php on OS X Snow Leopard

I have installed MAMP on OS X Snow Leopard (10.6.8) and I want to change the default path for PHP. I tried both of the answers on this question, and on this question, and in this thread but when I'm ...
0
votes
1answer
556 views

HTML5 websocket-support for NGINX

I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them. Is there a possibility to install a plugin that brings me the support ...
0
votes
1answer
78 views

What can I do if I overwrote my system PHP?

I deleted my system PHP on OS X Lion by installing a fresh copy of PHP 5.4. I can't seem to restore it with Time Machine. What do I do next? When I type which php I still get /usr/bin/php. But when I ...
1
vote
0answers
247 views

I get a 403 when I go to http://localhost/~admin/

I'm running mac osx 10.8. when I go to localhost or 127.0.0.1/ my browser says: "It Works!". However when I go to localhost/~admin/ or 127.0.0.1/~admin/ my browser says: "Forbidden You don't ...
1
vote
1answer
4k views

XAMPP: Requests take far longer when connecting to a MySQL database

I'm developing in PHP and MySQL locally using XAMPP on Windows. The web site is fairly fast when not connecting to any database. However, when I connect to the MySQL database, a simple request now ...
0
votes
0answers
105 views

php memory usage - how does it work?

I have a wordpress blog, with complicated plugins and theme. I recently hit fatal error cannot allocate memory error on 256mb. 256 itself is allot, so I got rid of 1 plugin and it went back to 60MB, ...
1
vote
2answers
465 views

Error installing php-5.4.9. on OSX

I have tried to install php 5.4.9 a few times and I can't seem to understand the problem. Here is the error of the installation of process and it did came with a report which I sent my email I am ...
1
vote
0answers
746 views

Aptana issues with HTML and PHP code

I use Aptana Studio 3 and I have two questions: The index file of my website is a PHP file and in this file I use HTML code and some php scripts. Aptana recognizes the PHP code and allow me to ...
0
votes
1answer
70 views

Fedora lower vesion not allowing php upgrade

I have php 5.2.9 installed on fedora6. Now I want to upgrade php on it's latest version. But lower version of fedora not allowing I tried with yum and rpm commands. Please help me how can I upgrade ...
0
votes
0answers
62 views

Several PHP versions on Mac

I have several versions of PHP on my Mac. Problem is, whenever I try to install new libraries, I'm not sure which version I'm installing them to. I'm using the command line on Mac OSX, and I read ...
1
vote
0answers
129 views

Vim PHP ctags for $['array'] C+]

So far I have this (Which is sufficient enough for me at the moment): ctags -R --languages=php --langmap=PHP:+.tpl --tag-relative=yes --PHP-kinds=+cf However, I still can't press "C-]" when I want ...
-1
votes
1answer
245 views

Azure's Ubuntu 12.0.4 fails to install PHP5

Similar to this article from Azure themselves: http://www.windowsazure.com/en-us/manage/linux/common-tasks/install-lamp-stack/ I am trying to install PHP5 on Ubuntu 12.0.4 virtual machine. However, ...
0
votes
1answer
770 views

relative include_path in WAMP installation

I just installed WAMP on my new computer, and have set everything up so that localhost and my alias website works. I am having trouble setting up the include_path. It was set up to .;C:\php\pear and ...
-1
votes
2answers
135 views

Test whether svn REPO changes are reflected in Working Copy

Requirement Changes will be made to the REPO directory and this should get updated to wc(working copy) as opposed to the normal way of WC > REPO. Senario: My svn repo- /var/www/svn/drupal My ...
3
votes
2answers
113 views

According to current knowledge where should you store passwords on your server and how do you protect them?

Given is a system of PHP and MySQL on a virtual server. I want to save passwords there. Frequently you hear people speak about their system being hacked and credit card information being stolen. ...
2
votes
1answer
62 views

find amin to retrieve executed php files by apache

So I have a massive legacy app that consists of half a million php files. For a single request, I would like to know which php files are used by apache to respond. I can look at the apache logs, they ...
1
vote
0answers
123 views

how I can set Xdebug in php.ini for my mini server to seen the error in uniserver?

I tried uniserver portable to get php server run on my computer. [xdebug] zend_extension="C:/UniServer/usr/local/php/extensions/php_xdebug.dll" xdebug.remote_autostart=on xdebug.remote_enable=on ...
-1
votes
2answers
99 views

Torrentflux broke after upgrade [closed]

A working torrentflux setup seems to have gone broken after upgrading PHP to 5.3 and Postrgres to 9.2beta3 on a FreeBSD 8.2 server. The login screen will show up fine, but after clicking the login ...
0
votes
1answer
49 views

Cannot connect to database

I created a php file to connect to my database hosted on ipages.com with the following simple code: <?php mysql_connect('hostname', 'username', 'password'); ?> When I load this page, I get ...
0
votes
1answer
131 views

Trying to switch to linux as a PHP developer, can't move my development environment

I'm using Windows for my development operations but i'm deploying to Debian/Ubuntu based distros. So i thought if i move my development to a linux distro it will be more comfortable. I'm using XAMPP ...