Questions tagged [php]
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.
7,924
questions
1
vote
4
answers
5k
views
web based open source FTP
I need help on looking for a best solution of a web based open source FTP client that has a progress bar, e-mail notifications and easy file sharing with others.
I am looking to set up one for our ...
-1
votes
1
answer
2k
views
CentOs 5.8 php installation
I have recently downloaded and compiled the latest version of PHP on to my server. However, realized I did all of this as root. PHP shows as successfully installed, however php pages do not render, ...
1
vote
1
answer
1k
views
how can I effect DNS Caching on PHP/Memcache application
In a very high loaded Ubuntu/PHP web server I found that the PHP line:
$memcache->connect("int-aws_ec2.memcached.myapp.net",11211);
sometimes takes ~5 secs.
Replacing the url with the ip address ...
1
vote
2
answers
3k
views
Run commands in PHP with different user
I would like to be able to run PHP commands, in system-function exec or whatever, but with a different user then www-data.
OS: Ubuntu Server 10.10
Web Server: Apache2
I've searched for answers a ...
-2
votes
1
answer
221
views
Best way to structure filesystem for website to prevent direct access to files? [closed]
I have the following structure for my filesystem
public_html
css/
doc/
img/
js/
lib/
*.php
private_html
miscellaneous/
The document root in for my website is set in /etc/apache2/site-...
1
vote
2
answers
858
views
PHP weird characters after upgrade to 5.4
It seems PHP upgrade "broke" all the websites using PHP on my hosts. It adds junk characters in the footer on every page which uses PHP:
How can I fix this problem?
2
votes
2
answers
2k
views
PHP maximum memory limit and Apache process memory consumption
How does the PHP maximum memory limit affect the memory that an Apache process consumes? If for example I've set it to 256MB, does this mean that every process will try to allocate this amount of ...
0
votes
1
answer
1k
views
How to troubleshoot PHP mail problems
I'm building a PHP server backup script that sends me an email if errors occur. Now I have this code:
if (mail("[email protected]", "ERRRORRSSSS", "hello:)")) {
echo("<p>Message ...
0
votes
1
answer
381
views
PHP Version Conflict
I am having issues installing WordPress 3.2.1 from my available Web Applications in Plesk.
Screenshot1 http://www.brightslides.com/picture_library/screen2.jpg
and I click INSTALL and get this error ...
0
votes
1
answer
2k
views
PHP module "sqlite.so" failing to load
I have an email server (postfix and courier) along with a LAMP + MySQL server set up on Ubuntu 11.10.
I recently started getting an email with this error, and I get it every 30mins on the dot:
...
2
votes
1
answer
3k
views
Connect to a Windows Server 2008R2 using php, ldap, tls fails if server has NPS service
Servers:
DALCON2 (Windows 2008R2, DC, NPS)
DALCON3 (Windows 2008R2, DC)
DALCON-WWW (Ubuntu server)
Goal:
From DALCON-WWW, using adLDAP with TLS to connect to a domain controller LDAP service
If I ...
-5
votes
1
answer
1k
views
Upgrade from PHP 5.3.2 to PHP 5.3.10? [closed]
I have a VPS account from Linode.
I've installed Ubuntu 10.04 LTS with 'LAMP Stack' (StackScript).
How to upgrade the latest version of PHP version 5.3.10 from PHP 5.3.2?
I have even tried apt-get ...
1
vote
2
answers
570
views
Upgrade Pear Installer on a MediaTemple (dv) Dedicated-Virtual 3.5 server
All,
Sorry in advance - I'm pretty naive when it comes to these things.
Anyway, I'm trying to install the Pear Mail module.
So, from the command line, I try this:
pear install --alldeps Mail
Here'...
1
vote
0
answers
73
views
Requests to third parties (SOAP, Youtube API failing intermittently) on CentosBox
Our new site (LAMP) has been running w/o incident for about a month on a dedicated Centos 6 box at 1and1.
Intermittently (about 10 mins per most hours) starting last night the server has issues ...
1
vote
2
answers
295
views
How to install a newer version of PHP as a package?
I have been trying to install specific/different PHP versions from source but this causes problems when other packages depend on a "php package" to be installed. Last time I tried to install PHP as a ...
0
votes
1
answer
3k
views
How to synchronize local MySQL (full access) to remote one (PHP only)
Our scenario is a local Linux MySQL server on which we can do whatever we want including installing stuff and setting up cronjobs, and a remote one which we can access only via PHP. The remote one is ...
1
vote
1
answer
2k
views
SUSE - Install PHP APC
I am using SUSE Linux Enterprise Server 11, I followed a guide to install APC, but I can't do the command of phpize, can someone tell me how to use this command?
0
votes
1
answer
216
views
Running Apache in VDI / Terminal Services
My employer is looking to upgrade their IT infrastructure and wants to possibly use VDI (virtual desktops) / terminal services. I'm their only PHP web developer, so always run Apache locally for ...
0
votes
1
answer
310
views
Can a slow database cause a web app to hold up a memcache connection?
I have a php application that uses memcache and a back-end database
At times we see high "current connections" in memcache and can't determine why.
Why php "misses" from memcache and needs to go ...
-2
votes
1
answer
2k
views
Connecting to LDAPS with WAMP Server [closed]
What is required to get a WAMP Server to connect as a client to an LDAPS (LDAP over SSL) server? Specifically, where do LDAPS client certificates go on a WAMP Server, and what other elements need to ...
1
vote
1
answer
346
views
Postfix not properly routing through aliases to php
So I setup everything for postfix/imap properly by going through https://help.ubuntu.com/community/PostfixBasicSetupHowto and i'm able to send emails to [email protected]/[email protected]
however, I'm ...
0
votes
2
answers
411
views
xlsx fix - on the server vs in php
We have a php application, and xlsx files are getting downloaded as zip files.
I've seen many posts with solutions for handling this - with htaccess, httpd.cond, and mime.types files.
Our files ...
1
vote
1
answer
120
views
Having host problems, can anyone recommend a solution or another host option?
I have a PHP/MySQL web application that gets about 600,000 hits per month. It has been running well for the last few months, but more recently the server is OOMing and crashing. The times between the ...
1
vote
1
answer
9k
views
How to install mysqlnd for php 5.3.3 on Centos 6.2
I have just down graded my PHP-installation from 5.3.9 to 5.3.3. This in order to be able to use yum/EPEL instead of compiling everything myself.
Appearently, mysqlnd-support isn't available in 5.3....
0
votes
1
answer
138
views
MSSQL Support for PHP on IIS6
Trying to get mssql support for php working with IIS6
I require Microsoft Drivers 2.0 for SQL Server for PHP.
v3 was just released but requires NativeClient2012 (doesnt support win2k3)
All links ...
1
vote
5
answers
3k
views
Keeping Files Synced Across Two Servers
I have setup a web server running nginx and another server running php-fpm on Linode VMs. Nginx proxies all PHP requests off to the PHP backend and this works great.
The problem, is that the actual ...
4
votes
1
answer
961
views
How does php know what memcached node to look for its data in?
I am new to the world of Memcached clusters
If I have a php web application that is using memcache - how does it does its hash and decide what node to check for a particular value to avoid having to ...
0
votes
2
answers
2k
views
Does PHP script itself count as a process?
My server has a limited number of concurrent processes (20) it can handle. To make sure I don't exceed I need to understand:
When a user is waiting for a PHP script to finish loading, does the entire ...
1
vote
1
answer
2k
views
Optimizing Web Server(apache2+nginx+memcached+eaccelerator) for high-loaded heavy application
I have a server with (Apache2 + nginx as reverse proxy, memcached cache and eaccelerator). The application is Magento - it is very heavy, due to high modularity and a lot of php files(5000-10000+).
...
0
votes
3
answers
192
views
Creating backups securely
So I have the following setup:
Server A (webserver)
Server B (Xen Dom0 - with logical volumes)
Server C (backup server)
I want to create backups from server B to server C all automatically and ...
0
votes
1
answer
282
views
Error installing xcache '[processor.lo] Error 1'
I am trying to get xcache 1.3.2 installed on my centos 5.8final (64bit) machine. It's running nginx 1.1.13 and php 5.4.0.
This is the output of ./configure --enable-xcache --with-php-config=/opt/php/...
1
vote
2
answers
21k
views
How to Proxypass on Apache?
I googled and i couldnt come across anything that is directive on configuring apache for proxypass.
I did managed to find Transition domain to new web host without waiting for DNS propagation but i ...
1
vote
1
answer
620
views
MediaWiki Internal Error
I have been running a mediawiki server for many years now at my company. Recently to combat a problem I was having with PDF uploading when they contained metadata, I have moved to the latest revision ...
0
votes
1
answer
979
views
IIS/PHP, 2 Users, same permissions, different access?
I have a hyper-v server with 3 instances running under it, testing, production, and files. The production user can access the mounted files directory with the following permissions; 'read & ...
0
votes
2
answers
4k
views
Uncommenting lines in php.ini file on 000webhost
I recently asked a question about a php error
after playing with the php.ini file I found that after commenting
extension=php_soap.dll
I got the same error as I did on the internet
so I relized ...
2
votes
1
answer
1k
views
Prevent PHP from allowing php script uploads
Running Solaris/Apache/PHP.
Our user base needs to be able to upload files to the web servers, so we have to have php uploads enabled. Problem comes when users provide upload scripts that aren't ...
1
vote
1
answer
141
views
Mediawiki Math Extension it does work from the command line, but not from PHP
I have moved Mediawiki from old server (LINUX) to new server(LINUX). Once i have moved Math functions are not working. So i requested IT team to install the relevant software and package. When I was ...
1
vote
5
answers
4k
views
Move MySQL DB to another server
I have server with very big mysql database (160GB).
How easy way to move this DB to another server?
0
votes
1
answer
236
views
A few questions about working with PHP 5.4
I installed PHP 5.4 on Debian from source and I run php scripts on the PHP Built-in web server with new php features without any error but php scripts do not run with apache2 with new php features.
I ...
1
vote
2
answers
2k
views
How to prevent apache2 from accepting urls without a file extension?
I noticed apache2 will load a page, let's say info.php, even if the url is specified without a file extension like mysite.com/info
I thought you would need to do a mod_rewrite of some form to get ...
0
votes
1
answer
149
views
CNAME based php hosting
CNAME based php hostingI have an application that lets users get a *.onemobi.net account (ex. bob.onemobi.net). Now what I would like to do is give the user the option of being able to use their own ...
1
vote
1
answer
191
views
Apache/PHP unable to connect to external data after reboot, but works after service restart
I'm running CentOS 6, and lately I'm having trouble with the server not being able to load external data after it's rebooted.
In the PHP configuration, I have fopen URI enabled, and it works, but as ...
0
votes
1
answer
197
views
Disk usage on IIS, PHP5, performance problems
I'm quite worried with a performance problem that I'm facing in one of our production servers. I'm working for a hosting company, so you can imagine how heterogeneous the applications runnning here ...
-1
votes
3
answers
378
views
Good open source mailserver for linux [closed]
I'm looking for a good open source Linux mailserver for a small (internet) company. Which is still updated frequently. I'm developing the website with PHP and MySQL if that's important. Anybody any ...
3
votes
1
answer
15k
views
What is nginx equalant for my htaccess mod_rewrite?
Previously i was using linode VPS running Apache for my CodeIgniter website. Today i installed nginx and my website landing page is coming but the other pages that is using htaccess for rewriting URL ...
0
votes
1
answer
2k
views
using regex "\.php$" requires PCRE library in nginx.conf
I noticed while make install nginx, it told me PCRE is not available.
I installed PCRE: yum install -y pcre
When I restarted nginx, it shows this error:
using regex ".php$" requires PCRE ...
0
votes
1
answer
227
views
Detecting and halting PHP Mail() spam in progress
I'm testing some functionality for a new service I'm putting together. I have mail service setup powered by Postfix. I'm using Ubuntu Linux Natty (11.04)
I am trying to find a way to detect when the ...
0
votes
2
answers
3k
views
How do I get PHP to work with UserDir
I've got a fresh CentOS 5.5 box and have installed Webmin+VirtualMin 3.79. I've enabled UserDir in apache and the sites are visible via http://ipaddress/~user/ but PHP does not work. (PHP works fine ...
-2
votes
3
answers
1k
views
.htaccess redirect to maintenance page
I want to upgrade my site online, I want to show visitors maintenance page till I finish upgrade.
I tried this code
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance....
1
vote
3
answers
2k
views
Origin of Spam Email
I'm running Ubuntu with POSTFIX and I have spam mail continually trying to be sent out. I have blocked it all from the email server that they are going out on and now they are just continually being ...