Questions tagged [php5]
PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.
864
questions
2
votes
1
answer
3k
views
centos cron job running php file
I have a php file under php called test.php set to run every 5th minute of the hour.
When ever I run the file manually (by going to the web browser and runnint the path) it works fine. But when the ...
0
votes
2
answers
143
views
Server for Intranet with 14K visits per day
I have an intranet with maximum 10-14k visits per day. It is developed with PHP, Rails and MySql. If I will moved from a shared server to a dedicated one, which server do you think I should need? I ...
0
votes
1
answer
324
views
send mails from a php applciation using SMTP to internal exchange server
I have one Linux server which is connected to my local network and also internet in another network. I host some PHP applications on this server. All the PHP applications should able to send mails to ...
2
votes
2
answers
10k
views
unknown directive "fastcgi_pass" on nginx
I have very few experience in configuring servers and stuff, so I'am totally lost in this.
I tried to add php support to a nginx installation, but when a put this in nginx.conf.
location ~ \.php$ {
...
0
votes
2
answers
148
views
apache 2 and php5
I have created a webserver with apache2 and it seems to run fine . I have also installed php5 on the server .To test if php is working , i have created a test.php with a phpinfo() function call and ...
1
vote
4
answers
821
views
how optimize small linux server?
I have a small Ubuntu server with 512MB of ram and several php/mysql websites (~20) running on it.It's been running for 2 years now without a single issue. But I think the moment for some optimization ...
0
votes
1
answer
521
views
PHP with FastCGI on IIS6 behaves differently than ISAPI
I am working with Moodle 1.9 running on Windows Server 2003, IIS 6. I am trying to switch from PHP's ISAPI extension to FastCGI, hoping for a speed improvement.
I installed FastCGI for IIS 6 just ...
1
vote
1
answer
2k
views
Limit APC opcode caching to specific sites? Nginx + PHP-FPM + APC
Is there any way to enable/disable APC on a per virtual host basis? I'd rather not use precious apc shared memory on caching my PHPmyAdmin subdomain or lesser used sites. Setup is Nginx, php-fpm, and ...
0
votes
1
answer
275
views
Apache 2.0.55/PHP 5.3.5 Hangs
Recently inherited a Windows 2k3 server running XAMPP, including ancient copies of PHP, MySQL and Apache.
I'm attempting to install a second, up-to-date PHP installation on the machine so I can ...
1
vote
1
answer
2k
views
Upgrading PHP, MySQL old-passwords issue
I've inherited a Windows 2k3 server running an XAMPP-installation from the stone age. I needed to upgrade PHP to facilitate an upgrade to MediaWiki to facilitate a new MediaWiki extension (to ...
10
votes
5
answers
22k
views
Optimize apache for 10K+ wordpress views a day on 2GB RAM E6500 CPU
I have a dedicated server with apache/php on ubuntu serving my Wordpress blog with about 10K+ pageviews a day. I have W3TC plug in installed with APC.
But every now and then server stop responding or ...
0
votes
1
answer
261
views
Installing Apache2 and PHP5 on a XServe G5 running 10.4
I have an Apple XServe G5, running OS X Server 10.4. I want to update my Apache installation from 1.3 to 2 and PHP to 5. I also want to install PHP GD support. I have scoured the internet for a guide ...
6
votes
7
answers
34k
views
What causes PHP pages to consistently download instead of running normally
I'm running a Ubuntu Server on a VM, to test out different web forum solutions. I have set up a ~/public_html/ to be accessible with the apache2 web server, and that works fine.
However when I go to ...
0
votes
2
answers
6k
views
How to downgrade from PHP 5.3 to PHP 5.2 on Ubuntu Server 10.10?
After moving my website to the new Ubuntu Server 10.10 it started to work with errors. I know the problem is in the PHP compatibility. Insead of fixing the website I prefer to downgrade from PHP 5.3 ...
8
votes
3
answers
15k
views
Nginx + Php5-fpm not rendering php files
I've spent hours figuring out how to install Nginx + Ruby Enterprise Edition + PHP5-fpm and MYSQL, finally it is all installed and all seems to have started fine.
But for some reason php files are ...
7
votes
1
answer
2k
views
How to configure PHPStorm to debug on IIS
I installed PHP 5 on IIS on a Windows 7 64 bit machine using the Web Platform Installer. I am using PHPStorm as my PHP IDE but cant find any documentation on how to get debugging to work. PHPStorm ...
7
votes
3
answers
6k
views
Running phpmyadmin and suphp
I have a Debian Lenny web server. It is running apache2 with libapache2-mod-suphp. Unfortunately, suphp makes impossible to use phpmyadmin, as phpmyadmin is installed in /usr/share/phpmyadmin and ...
15
votes
2
answers
42k
views
configure: error: Cannot find php-config. Please use --with-php-config=PATH
I'm trying to install a program called phraseanet. I ran the ./configure command and run into this error:
configure: error: Cannot find php-config. Please use --with-php-config=PATH
I am using ...
14
votes
1
answer
19k
views
How is memcache distributed?
I've got memcache running on 5 web servers all of which are on the host list in php and which are load balanced on the front end. So since memcached is supposed to be distributed the php client will ...
1
vote
2
answers
151
views
Simple to follow guidance on update PHP from 4.3.10 to at least 5.1.1
I need to update my version of PHP to at least 5.1.1, via SSH and need simple to follow advice on how to do it. We have a VPS (with Plesk) with webfusion, who won't update it for us and we need to get ...
3
votes
5
answers
23k
views
Find (or enable?!) php.ini on Ubuntu 10.10
Hiho!
Today I leave my comfort zone and want to edit my php.ini file and... guest what? It doesn't exist!
$ php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: ...
0
votes
1
answer
6k
views
How do i enable curl support for php 5.3.3?
Hi I have installed curl and curl-devel, but i still can't get curl to work with php.
My php config line:
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gd' '--with-mysql' '--with-...
2
votes
1
answer
7k
views
PHP module installed but does not appear in phpinfo()
Im tying to install php5-ffmpeg module on my ubuntu server. I've typed:
sudo apt-get install php5-ffmpeg
Everything was installed and web server was reloaded. Now, the fallowing line is added to ...
0
votes
1
answer
1k
views
disable absolute path in php errors
Is there anyway to disable absolute path which appears with php errors.
i.e.
/domain.com/www/user/html/index.php on line 179
I don't want php to show "/domain.com/www/user/html". Only the file name ...
3
votes
1
answer
4k
views
"Unable to initialize module" fileinfo php-pecl-Fileinfo.x86_64
I have a brand new server server that I am trying to get setup up. This is a 64 bit machine that I can not install "fileinfo" or "memcache". I have uninstalled these and reinstalled them using yum ...
0
votes
2
answers
879
views
php mail() on IIS6 not sending
This is related to an IIS server problem, or a PHP configuration, not php code.
I'm running an IIS6 server with PHP installed on it, the following php code will never send an email:
mail("user@...
1
vote
3
answers
2k
views
Nginx + PHP5-FPM repeated cut outs 502
I've seen a number of questions here that highlight random 502 (Nginx + PHP-FPM = "Random" 502 Bad Gateway) and similar time outs when using Nginx + PHP-FPM.
Even with all the questions, I'...
0
votes
1
answer
1k
views
How can I manually install pecl_http on Ubuntu 9.10?
This is essentially a repost of https://stackoverflow.com/questions/4159369/ubuntu-9-04-pecl-extension-downloads-but-does-not-install. Hoping maybe someone can help me here.
I've done this:
sudo ...
0
votes
3
answers
2k
views
Apache2 refuses to process php files - "Snow Leopard" OSX 10.6.4
I have a macbook pro i5.
my understanding is that by default it should be able to serve php5.
i have uncommented the relevant line in /etc/apache2/httpd.conf
LoadModule php5_module libexec/...
0
votes
1
answer
349
views
MySQL Driver for PHP PDO
Are PDO drivers available for download for Win64? I'm looking for a MySQL driver, but all my Googling seems to suggest that my PHP binary should have been compiled with this support. Is that the ...
-1
votes
2
answers
1k
views
install PECL JSON in PHP 5.04
It's OK (compatible) to install PECL native JSON (from here) in PHP 5.0.4, on a production server running FC4 where unfortunately I cannot update PHP to at least 5.2 ?
If there is a good chance to ...
0
votes
3
answers
5k
views
PHP mail() is not working, need help setting up exim4
I have the symbolic link setup for /usr/sbin/sendmail which points to my exim directory /usr/sbin/exim4/ and my php.ini pointing to /usr/sbin/sendmail. My mail isn't sending. I don't know what to do, ...
3
votes
2
answers
23k
views
Where can I get php_mysql.dll for Windows?
I just installed Apache 2.2.17, PHP 5.2.14, and MySQL 5.1.51 on Windows XP. Apache is working and is loading PHP properly, but when I try to connect to MySQL, I get "Fatal error: Call to undefined ...
0
votes
1
answer
749
views
What's with suphp?
I inherited a web server running Apache/PHP on a CentOS 5 machine. This is a hosted server so I am still familiarizing myself with the environment. There is really no user activity on this machine, ...
1
vote
1
answer
482
views
How do I connect Apache2 and PHP5?
I'm trying to install the LAMP stack on a server running Ubuntu 10.10.
Whenever I browser to a PHP file on the server, my browser will download it as a file named "download" (with no extension). I ...
0
votes
1
answer
139
views
PHP5 not running under IIS 6
I have a Windows Server 2003 VPS running IIS 6 and .NET Framework 4 and PHP.
I have a client that needs to run a custom PHP application. But their files wouldn't run as PHP script.
I run Wordpress on ...
0
votes
1
answer
520
views
fatal error allowed memory size in php page
m getting following error while executing following url
URL
http://vcoders.in/Scraping/test/readData.php
Error
Fatal error: Allowed memory size of
50331648 bytes exhausted (tried to
...
183
votes
18
answers
1.1m
views
How do you restart php-fpm?
I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0
votes
2
answers
5k
views
How to reinstall a LAMP server?
I want to reinstall the whole LAMP server under Debian Lenny. This means, using 'apt-get remove' is not enough, I want to remove completely all components, and start again.
I tried but files are ...
0
votes
2
answers
187
views
FFMPEG strips audio while converting video
I have Ubuntu server 8.04 installed with the Multiverse repos enabled.
I have installed FFMPEG, with its PHP extension also.
When I try to convert videos into the flv format, I find that the audio ...
0
votes
1
answer
366
views
Ubuntu Server apt-get upgrade - will it downgrade PHP?
I have PHP 5.3 installed on an Ubuntu Server using the Debian packages.
I've just run the commands apt-get update and apt-get upgrade - the latter wishes to upgrade certain PHP5 related packages "...
1
vote
1
answer
933
views
www-data user doesn't seem to have the access to use php-curl
I'm trying to get the simpletest module for drupal to work, which relies on php-curl to fetch its requests.
When I as the user root do the following it works fine:
root@server:~# php -a
Interactive ...
1
vote
1
answer
885
views
Using aptitude to install extra php modules (after php has already been installed)?
I recently setup an Ubuntu Server 10.04 LTS server for a client which uses a PHP based forum. It's all gone well, but now it seems I need to install a new php module to enable spell checking in the ...
1
vote
2
answers
1k
views
PHP in snow leopard
Snow leopard comes with PHP already installed and configured
I am running a web application on a development server which has MAMP and the system runs fine however when I put the application on a ...
0
votes
2
answers
3k
views
CentOS 5.5 , Apache2.2, PHP 5.2.14, Fastcgi 2.2-4 and 5xx Errors
I am running the version of softwares mentioned in subject. Apache was installed from standard centos repo, fastcgi was install from http://centos.karan.org/kbsingh-CentOS-Extras.repo and PHp was ...
13
votes
2
answers
17k
views
Where is php.ini-development on Ubuntu LAMP?
On my development machine I run Ubuntu 10.04.1 LTS. Following the official documentation, I used the following command to install Apache, MySQL and PHP in one go:
sudo tasksel install lamp-server
...
0
votes
3
answers
2k
views
Problem with php and apache
I am having trouble using the php module with apache2. At the moment, testing with a phpinfo script, only php code is displayed as though it were text, no output at all.
I have the line LoadModule ...
0
votes
1
answer
974
views
PHP5-fpm fails to start
When i start my debian box, php5-fpm says that it's failed to start.
When i check the logs it says that port 900 is taken. But that couldn't be becouse there's nothing else runnong on port 9000. And ...
1
vote
1
answer
247
views
How to use xdebug with eclipse IDE for PHP?
Hi my PHP project is set up on a remote test machine. I need to debug it using eclipse IDE. How shall I progress. I came to know i should prefer Xdebug rather than zend debugger.
Please clarify my ...
1
vote
1
answer
1k
views
why won't php 5.3.3 compile libphp5.so on redhat ent
I'm trying to upgrade to php 5.3.3 from php 5.2.13. However, the apache module, libphp5.so will not be compiled. Below is a output I got along with the configure options I used. The configure ...