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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
304 views

How to make APC work with PHP

I have installed APC for php using yum install pcre-devel pecl install apc restorecon /usr/lib64/php/modules/apc.so Everything installed correctly but still i can't see APC module in phpinfo
0 votes
1 answer
3k views

Why isn't FastCGI able to properly process PATH_INFO rewrites?

My current host uses FastCGI for its PHP setup, and this is apparently causing some issues when a mod_rewrite directive redirects to a URL with a PATH_INFO portion. For example, there are issues when ...
1 vote
2 answers
638 views

How to install Text_Highlighter PEAR package?

I've tried a lot of possible solutions but no one helped: pear install Text_Highlighter Failed to download pear/Text_Highlighter within preferred state "stable", latest release is version 0.7.2, ...
0 votes
2 answers
216 views

What to do when the server load over 1.0?

I noticed in cpanel that server load over 1.0 sometimes and that causes my website to take a long time to respond!! I am wondering now what to do. Should I limit access to my website through ....
0 votes
1 answer
2k views

apache server down after easyapache rebuild

I have rebuilt my apache server (running CentOS using WHM) to update my apache feature using easyapache. After the rebuild process which ended with build successful, my site become inaccessible with ...
2 votes
2 answers
792 views

How to run rails and LAMP simultaneously on ubuntu?

I just set up a virtual machine running Ubuntu Server, with a LAMP stack and OpenSSH installed. What now would be the best way to enable that server to run both rails and PHP applications? Would it ...
2 votes
4 answers
18k views

can't access the site without WWW in the url [duplicate]

Possible Duplicate: Enable access without “www.” on Ubuntu I just got set-up my first website and bought my own first domain name , but problem has showed up. I noticed that i can ...
0 votes
2 answers
441 views

Google Apps Mail & sendmail on web server [duplicate]

Possible Duplicate: Outgoing mail from linux not being delivered I'm looking into simplifying my web server setup and migrating from a Verio MPS dedicated machine to a rackspace cloud server. ...
-1 votes
1 answer
265 views

How to restore apache configuration?

I have placed .htaccess file in my server's root folder with following content, Redirect 303 /index.html http://mysite.com/index.php to redirect my index.html to index.php, but it has created one ...
3 votes
1 answer
12k views

How do I enable JPEG Support for PHP?

My Configure Command doesn't say anything about jpg, nor gif/png, but I can see gif/png support in the output of phpinfo(). I built PHP with --with-gd, but only GIF Support and PNG Support are in ...
1 vote
2 answers
2k views

centos 6 with webmin and virtualmin can't run php

i can't run php on centos 6 with webmin and virtualmin (fresh install) <? echo phpinfo ?> when run above php code, it is blank, but right click source code, i can see the php code that is "" ...
4 votes
1 answer
3k views

How to identify and remove unused files / directories from an apache web server

New Customer. Old server. Unused Files & Directories abound. 5 specific core directories (attached to differing domains). 10-20 possible extraneous directories w/ files on the same level as the ...
0 votes
1 answer
63 views

Apache security [duplicate]

Possible Duplicate: Apache security I've been reading up on server/apache security and I've run into a contradiction. I read that you shouldn't serve any files that aren't inside Apache's scope, but ...
1 vote
3 answers
215 views

Apache relaying to prevent DoS

I've been wondering, is there a technology that relays (slows down) responses to a given IP according to the rate It makes requests? E.g I have an apache server with a "heavy" API service that I want ...
0 votes
2 answers
4k views

PHP 5.3 mbstring install

I'm trying to install the mbstring module on PHP 5.3, CentOS 5. $ yum install mbstring --> Missing Dependency: php-common = 5.2.10-1.el5.centos for package: php-mbstring I do an rpm -qa and found ...
1 vote
2 answers
3k views

PHP-FPM Workers messing up php.ini loading?

I installed PHP 5.3.8 from source on Ubuntu Natty. I also enabled FPM during configuration. However, I've been having issues installing PHP extensions. When I add the extension to my php.ini file (e....
0 votes
1 answer
157 views

Permissions of httpd apache2 and running certain php commands

I ran some recursive linux command that changed the permissions to all my website files.. all files are now like -rwxrwxrwx and all dictionaries are. drwxrwxrwx I don't know if that has anything to ...
0 votes
2 answers
805 views

CentOS httpd downloading pages instead of parsing them

Okay maybe this question has been asked before, I couldn't find the solution I searched both StackOverflow and Serverfault. Fist of all I'm running CentOS release 5.5 (Final) I had by default PHP 5....
0 votes
1 answer
75 views

Apache/Lion not serving up site in local testing environment

Originally posted this over at superuser... Ive configured Apache for Name-based Virtual Hosting but I can't seem to get a local site to show in my browser. Is my httpd.conf misconfigured? Here's the ...
4 votes
2 answers
706 views

Installing PHP on linux

I'm trying to setup php with oci8 support. I think I've configured all correctly before starting with oci, here is how I tried to start the install : ./configure -prefix=/common_share/APACHE/server --...
0 votes
1 answer
157 views

PHP, Rails 2 and Rails 3 on the same server, on production mode

I am setting up a new web server (ubuntu 10.04 LTS), I want to get run on production mode: PHP, Rails 2.3.X and Rails 3, and each one should be accessible from diferent path, ex: http://localhost/...
1 vote
1 answer
967 views

User permission and executing adb from php

I am trying to run adb from PHP using: exec( 'adb devices', $output, $return_val ); but I get 126 error. I think the problem is that php is running as 'www-data' user and does not have permissions ...
0 votes
1 answer
739 views

amazon ec2 apache performance tuning php elastic cache and s3 buckets

I am trying to load test an amazon centos instance sitting behind the amazon loadbalancer. The application is written on php and uses the elastic cache and media is stored in s3 bucket. When the ...
2 votes
2 answers
2k views

Linux - CentOS6 - PHP - Compile command line only

I just setup a new server which will host a solr daemon. As it stands now the solr index is empty, but I have a php script available to pull data from a MySQL store and populate the solr index to ...
0 votes
1 answer
3k views

Upload big files?

I'm running Zend Server CE (http://www.zend.com/en/products/server-ce/) and i'm developing a project (Zend Framework) which requires uploading big files ( video, > 100MB ). I have been trying to ...
1 vote
4 answers
2k views

Server load spikes several times a day, load average for the past month is 5 times the load average all year

My Munin notifications set up for our (Debian) LAMP cluster have been notifying me continuously that our load on our production machine has been at dangerous levels. While the average load all year ...
0 votes
4 answers
183 views

What types of sites can be hosted on Linux Hosting servers? [closed]

I would like to know whether I can host ASP.NET site on a Linux Hosting server? Or is it that only PHP and HTML sites can be hosted on such a server? I am ignorant. Please guide me.
2 votes
1 answer
2k views

PHP may be executing as a "privileged" user

Ok once I installed piwik on a server I get the following errors: user_id - PHP may be executing as a "privileged" user, which could be a serious security vulnerability. group_id - PHP may be ...
9 votes
2 answers
749 views

My server Admin wants me to set public write permissions on a directory

I'm relatively new to web development, so please be patient. I'm primarily an iPhone developer, but have recently done a site for someone else using shared hosting. I could write to files in PHP on ...
1 vote
1 answer
1k views

How to set the string "value;othervalue" in php.ini with augeas?

i want to change the session.save_path in the php.ini with augeas default: session.save_path="/var/lib/php5" target value session.save_path="3;/var/lib/php5sessions" augeas returns quite ...
1 vote
2 answers
822 views

Front-end of our app is not working after migration from Apache to Nginx

This is our config file, we're having problems with the front-end functionality of the app that does work on Apache. Javascript POST method is not working anymore. server { listen 80; ...
1 vote
1 answer
3k views

suPHP not working

OS: Ubuntu 10.04 etc/suphp/suphp.conf: [global] ;Path to logfile logfile=/var/log/suphp/suphp.log ;Loglevel loglevel=info ;User Apache is running as webserver_user=...
0 votes
1 answer
1k views

Count specific php function calls executed by apache

Is there a way to count how often apache executes a specific php function? At the end I want I file like this: From 2012-01-01 till 2012-01-31 apache executed: system() : 10 printf() : 1000 ...
1 vote
1 answer
4k views

Set php environment variable for cron via Plesk admin interface

Within our application we make use of a environment variable named SERVER_ENV that is used to set whether we are in a production or development environment. This is set through the httpd.conf file ...
2 votes
0 answers
806 views

Truncated output from PHP, no errors

I've installed SugarCRM Community Edition on Debian 6.0.3 connecting to MSSQL with FreeTDS. I can use the system as normal except for one deal-breaker problem. On login, I get a blank page outputted. ...
0 votes
1 answer
297 views

Why isn't excluding a folder in mod_rewrite not taken in account

I would like to exclude mod_rewrite for a certain directory. I want the folder "phd_application" not to be rewritten, that is, when a url points to www.myserver.com/phd_application it goes to ...
0 votes
1 answer
2k views

apache virtualhost force email FROM address [duplicate]

Possible Duplicate: Configuring php mail() per domain I've many VirtualHosts on my Apache webserver with some different CMS (different services, different domain names, different administrators). ...
1 vote
2 answers
928 views

Can't login to phpMyAdmin

I am unable to log into phpMyAdmin after installation. Here is my config.inc.php file. Am I doing something obviously wrong? I'm sorry, this is the first time I'm dealing with PHP, MySQL, etc. Thanks ...
-2 votes
1 answer
680 views

Postfix not sending to Yahoo! mail in Ubuntu [closed]

I installed postfix on my Ubuntu server 11.04 (or is that 11.10?), so I could send mail using PHP. Everything works with GMail, Hotmail, etc, but Yahoo! mail users aren't getting any emails (even in ...
0 votes
1 answer
203 views

IIE 6.0 not recognizing index.php as Default document

This morning our server stopped recognizing index.php as th default document. It goes to the 404 error page. This has been working since we set it up several years ago. If you go to the index.php page ...
user avatar
0 votes
1 answer
676 views

setting up a local database to be updated from a master database

I'm looking for an efficient way to keep multiple databases (on different servers) sync with a master database (also on a different server). Mind you I only need a one way sync (from master to all ...
1 vote
2 answers
120 views

How do I find out how PHP was installed

Is there a way to work out if PHP was installed as part of a generic apt-get package, compiled from source or installed some other way on Ubuntu? I need to recompile it with some more options and I ...
-1 votes
2 answers
261 views

What configurations need to be set for a LAMP server for heavy traffic? [closed]

I was contracted to make a groupon-clone website for my client. It was done in PHP with MYSQL and I plan to host it on an Amazon EC2 server. My client warned me that he will be email blasting to about ...
0 votes
1 answer
57 views

how to configure apache server to allow other users to start/stop

I see inside config file the option to start server with certain username/group i.e.: User c0mrade Group c0m Now if I start the server with my username, nobody can stop it except me. How can I ...
1 vote
1 answer
7k views

PHP fopen fails - does not have permission to open file in write mode

I have an Apache 2.17 server running on a Fedora 13. I want to be able to create a file in a directory. I cannot do that. Whenever I try to open a file with php for writing fopen(,'w'), it tells me ...
4 votes
1 answer
177 views

making sure daemons are safe

So I was wondering, what steps should we take to make sure PHP daemons are safe? One of the things that I read about was assigning the daemon to run as a user with limited priveleges? But how can we ...
1 vote
1 answer
8k views

How to set PHP environment variables on Ubuntu

I'm sure this is easy if you know how, but I don't. I've got an ubuntu 10.04 server running PHP5 under apache, all defaults and stuff. The PHP needs some environment variables set. How do I do it? ...
1 vote
4 answers
2k views

Sending SPAM free mail through my website [duplicate]

I've been battling with this issue for couple of months. I need to send bulk mail (not spam) through my social network to users in situations like newsletters, site invitations (when user imports ...
0 votes
1 answer
1k views

Setting up virtual host by editing apache httpd.conf (for Zend framework) opens XAMPP page, not Zend's

Setting up a virtual host apache (for Zend framework application) opens XAMPP homepage, but I need Zend default project home page instead. Am I doing something wrong? I made a virtual host as ...
1 vote
3 answers
10k views

PHP script needs permission to run a sudo command with shell_exec()

I have a PHP script which contains a shell_exec() and the command it executes normally requires sudo. I've edited the sudoers with visudo to contain the following: www-data ALL = NOPASSWD: /var/root/...

1
116 117
118
119 120
159