I'm trying to install APC for PHP 5.3 in the easiest way possible. I love Homebrew so I started down that route. I was able to install PHP 5.3.6 with this command:
brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/php.rb --with-mysql
I think this is supposed to install PHP, Pear, and PECL. It seems to install these just…
I'm trying to get all request to:
http://mydomain.com/downloads/*
redirect to http://mydomain.com/downloads/index.php except if the requested file exist in /downloads/
ex:
http://mydomain.com/downloads = /downloads/index.php
http://mydomain.com/downloads/unknowfile = /downloads/index.php
http://mydomain.com/downloads/existingfile =…
I need both PHP 5.4.7 and 5.3.17 running on Windows 7 x64 with Apache 2.2.23. This is my virtual host configuration:
<VirtualHost *:80>
DocumentRoot "C:/WAMP/Apache/htdocs/php54"
ServerName php54.local
PHPIniDir "C:/WAMP/PHP54"
LoadModule php5_module "C:/WAMP/PHP54/php5apache2_2.dll"
php_value…
Hello and good morning to all. This is my second post on this subject because the first time, things still didn't work and I have now literally been trying to solve this for about 4/5 days straight...
I have a file, called 'edit.php', in this file is a form;
<?php
$company = $_POST["company"];
$phone =…
Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions.
At peak traffic times we're getting Apache segmentation faults on all three web servers and all HTTPD child processes segfault.
My gut tells me that the…
I'm trying to compile PHP 5.3.3 and after a lot of ups and downs, I finally did 'make' it followed by 'make install' which just shows this:
root@server [/tmp/php-5.3.3]# make install
Installing PHP SAPI module: cgi
Installing PHP CGI binary: /usr/bin/
Installing PHP CLI binary: /usr/bin/…
Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions.
At peak traffic times we're getting Apache segmentation faults on all three web servers and all HTTPD child processes segfault.
My gut tells me…
I've migrated Observium monitoring platform from CentOS 6.5 to CentOS 7 and I've noticed high CPU usage mostly caused by PHP, the CPU load increase when pooling script is running (poller-wrapper.py). Both VMs are running on the same physical host (KVM hypervisor) with exactly the same spec.
I also…
I have a Windows 2003 Server running IIS with php 5.2.8, I'm trying to use CURL, and it works in CLI mode (if i execute php.exe) but it does not seem to be registered when running under IIS.
The output of PHP info in both CLI and IIS show the same 'Loaded Configuration File', but under IIS it…
I have a web server that we use, apache, centos5, php
I have a file called 'include.php' that I need to include in multiple sites.
Eg. I have a site called testsite.co.za, now in the index.php i want to include the include.php file, the include.php is not in the root of testsite.co.za,
Now…
Just created a new install of Centos 6.0 64-bit on a virtual machine and running on Vmware workstation 8, windows host.
yum install php
service httpd restart
And when trying to run a html file from the var\www\html dir
which just has <?php phpinfo(); ?> in it or pointing browser to…
Hello peeps.
Im having an issues when activating my theme in wordpress. I got this error message:
"Parse error: syntax error, unexpected $end in C:\xampp\htdocs\xampp\wordpress\wp-content\themes\xit\functions.php on line 223".
Whats wrong, I totally dont understand. The script of the…
Hi,
I am executing a php call from javascript(jQuery), php sript is sending result back. The problem is that these php scripts are taking some time (milliseconds), and java script is not waiting for them to finish, thus variables are not getting initialized with correct values.
The code…
Some of you may be annoyed with this question, and claim it's unsafe blah blah.
I want to be able to put php into the database and run it. I have to do this because I store page layouts in the database and each our different for each other, however in some cases I want to use dynamic…
I have index.php which uploads a file to server and sets several PHP variables (like $target_folder_and_file_name).
index.php also has the following line (it was originally index.html):
<script language="JavaScript" src="main.js.php"></script>
After index.php returned…
I have some problems. Nginx doesn't work with SSI. Nginx listens 80 port (frontend), apache2 listens 81 port (backend). That is my nginx configurations:
server {
listen 80;
server_name test.dev www.test.dev;
error_log /var/log/nginx/error.log debug;
log_subrequest on;
…
I am having difficulty with the PHP SoapClient() function. The SOAP request is successful, but the response is returned as an object containing a single XML string with the key "any". For example:
<?php
$params = array('strUsername' => 'Test',
…
Hello.
I wanted to ask you about PHP/Apache configuration methods you know, their pros and cons. I will start myself:
---------------- PHP as Apache module----------------
Pros: good speed since you don't need to start exe every time especially in mpm-worker…
Hi, I've been tasked to create a PHP app which accesses an existing PostgreSQL database. This is my first time working with Postgre, not to mention the PHP has already been installed in the Linux box on which the app is supposed to run. I have no experience…
Hi-- I've written a PHP script that runs via SSH and nohup, meant to process records from a database and do stuff with them (eg. process some images, update some rows).
It works fine with small loads, up to maybe 10k records. I have some larger datasets…
I have a Red5 application which defines some public Java methods. When I start the server, an object of the application class gets created. I am trying to call the public methods of the application class from PHP using the existing instance of the Java…
I'm using suexec to ensure that PHP scripts (and other CGI/FastCGI apps) are run as the account holder associated with the relevant virtual host. This allows for securing each users' scripts from reading/writing by other users.
However, it occurs to…
I'm using suexec to ensure that PHP scripts (and other CGI/FastCGI apps) are run as the account holder associated with the relevant virtual host. This allows for securing each users' scripts from reading/writing by other users.
However, it occurs to…