0
votes
0answers
25 views

Server load spikes after yum update and Laravel installation

The Platform: Centos 6.3 PHP 5.4.30 Apache 2.2.15 mysql Ver 14.14 Distrib 5.5.37, for Linux (x86_64) using readline 5.1 4 CPUs 12 GB RAM 1TB Hard Disk Prefork Settings for Apache <IfModule ...
2
votes
1answer
42 views

How to run HTTPD as specific user(s) and not by nobody?

Currently, top shows me that almost all httpd processes are run by nobody. "Almost" because 2 of them are run by root. How can i make it in such a way that given i have users say: dartagnan, porthos, ...
-1
votes
1answer
24 views

Overload Protection

Is there a simple way how I could redirect a visitor (via .htaccess or PHP script) to a static page when the server is overloaded from too many requests? It doesn't have to be a protection against ...
0
votes
2answers
596 views

Apache fails to start after PHP upgrade on CentOS 6.5 x64

I have a developer server with CentOS 6.5 and PHP 5.5.11 (latest from REMI repos). Today I did: yum --enablerepo=remi,remi-php55 update That updated Apache and some other libraries like Mongo for ...
3
votes
1answer
1k views

why isn't laravel's php artisan serve server being accessible from the WWW on IIS

I have a laravel application running through the laravel artisan server: php artisan serve and it works just fine if I go on my localhost:8000.. Further, I added an inbound rule in the IIS server ...
0
votes
1answer
321 views

CentOS 6 Httpd failed to start

I am using CentOS 6.5. The Apache HTTP server (httpd) is dead for an unknown reason. I cannot visit http://localhost/ anymore. When I tried to restart httpd, it failed (Error message shown below). ...
0
votes
1answer
160 views

MSSQL PHP cannot connect over apache's account

I'm fighting with this for a day now, hope someone already faced with this problem and can help me out: I have a CentOs server [root@XXXXX ~]# cat /etc/redhat-release CentOS release 6.5 (Final) ...
0
votes
0answers
24 views

Use Openconnect and Httpd at the same time

My httpd service is working properly, however when using OpenConnect through the box I can no longer connect to the box's webserver, it's giving me a timeout error. Connecting with: openconnect -s ...
0
votes
0answers
19 views

OpenConnect causing problems with httpd service

My httpd service was working properly, however whenever using OpenConnect through the box I can no longer connect to the box's webserver, it's giving me a 522 timeout error. Maybe I'm going about ...
1
vote
0answers
52 views

intermittent AWS Linux AMI server error “File does not exist: /var/www/html/var”

Intermittent error "File does not exist: /var/www/html/var" from all areas of a Zend MVC app resulting in pages occasionally failing to load - when normally they load perfectly. Our Set-up MVC app on ...
0
votes
0answers
305 views

HTTPD (Apache) fails with error on Windows Server 2008 R2

I have setup HTTPD and PHP 5.5 on a Windows Server 2008 R2. I have also set the user for this service to be a standard user other than the default network service to improve security. I now get some ...
0
votes
1answer
67 views

Configuring php to work with httpd, Autostarting mysqld and apachectl

I am very new to Linux Environment. But for my client I've designed the website which uses php and mysql. Now I want to install the site on his RHEL 5.0 server. He already have httpd installed on it. ...
-1
votes
1answer
22 views

Odd httpd behavior while uploading a file

OK, so I'm uploading a 350meg zip file. The file one uploaded is unzipped and the contents are processed. The processing consists of reading in a data file, then copying and thumbnailing images, the ...
1
vote
1answer
161 views

Apache forkbombing randomly

Recently, seemingly out of nowhere the Apache2 daemon on our VPS has random issues with what looks to be forkbombing. First log entries before things to go hell [Tue Jun 25 23:07:18 2013] [error] ...
0
votes
1answer
52 views

Httpd process still hanging memory after background script finishes

I'm calling a php script to run from apache. I'm using the exec function in php to call the script. Once the script ends, httpd is still sitting with 8.9% of memory usage while all other processes ...
0
votes
3answers
253 views

Apache httpd offline installation on Debian

how can I install Apache HTTPD offline on a Debian Linux distribution? On this case I have no internet access at all on this machine, so I was searching for binary distributions of Apache Httpd and ...
0
votes
1answer
370 views

suphp error Directory / is not owned by admin

I'm trying to run a test phpinfo page from: /home/admin/testdomain.com But it displays such error: Internal Server Error Directory / is not owned by admin suPHP 0.7.1 My /etc/suphp.conf is like ...
-1
votes
1answer
2k views

Can't restart my httpd service

I just made a change to my PHP.ini file. (my Linux dist is CentOS). I figured I need to restart apache for that to take effect so I issued the command: service httpd restart When doing that I get ...
2
votes
1answer
69 views

Temporarily stop everyone from accessing mysql DB

I am going to migrate a LAMP server tonight, it uses php and mysql with apache on centos. I want to stop people from accessing the site/database while I back it up. Will stopping httpd be a ...
-2
votes
2answers
368 views

Apache Alias / VirtualHost run as different user

I tried to create an alias or virtual host to run as different user. Well below is part of apache httpd.conf that doesn't work. Or, is it even possible? <VirtualHost blah:80> user ...
2
votes
1answer
736 views

Apache httpd processes and PHP out of memory

I have a VPS running apache-php-mysql on centos and a single drupal website installed. The VPS has 256MB of RAM (could be the root cause of all my problems... maybe I just need more). Whenever I try ...
0
votes
1answer
432 views

How to use the correct PHP version? phpinfo says another version

Fedora 17. I have a PHP version installed on my system, let name it as phpMain. And I've compiled another PHP version from source using this option: ./configure --prefix=/opt/php/5.x.y I will ...
1
vote
3answers
473 views

Calling sudo within a script that was called with sudo prompts for password even with NOPASSWD

A PHP program I am working with (LConf) calls a script using sudo. I have allowed the user apache to run the script and have tested with sudo -u apache /usr/local/LConf/lconf_deploy.sh. I am being ...
0
votes
3answers
412 views

Httpd process consuming loads of memory

I have a server which is giving me headaches. It hosts a couple of sites: these are either php based, or java based. I have a setup that uses apache2 + suPhp for the php sites, and apache2 + mod_proxy ...
1
vote
2answers
608 views

Apache's “OPTIONS * HTTP/1.0” running 100% CPU - Runaway httpd process

I have this recurring issue where an httpd processes will randomly start running at 100% CPU. Often other httpd processes will join in, and it will continue until I restart Apache. Oddly, the thing ...
1
vote
2answers
379 views

'/var/spool/cron' is not a directory, bailing out. when trying to work with crontab via PHP's shell_exec

I am creating a web application. Part of the functionality is depending on that the user can start/stop a cronjob that imports emails. It doesn't work. Just to make sure I'm on the right track, as ...
0
votes
2answers
333 views

Apache 2.2 on CentOS 5.5 doesn't serve PHP files after upgrade to php53

I just upgraded a CentOS 5.5 server (using Apache 2.2) to PHP53 (using the php53u set of packages). All of a sudden, Apache doesn't appear to recognize .php files. It's just delivering the source. ...
3
votes
3answers
1k views

PHP-FPM and APC for shared hosting?

We are looking into finding a way to get APC to only create one cache per account / site. This can be done with Fastcgi (last update 2006…) but with Fastcgid APC will have to create multiple caches ...
0
votes
2answers
265 views

Apache 2.4 and SuExec configuration

If I want PHP and other scripts to run as their own user when accessed from a web browser, is this the right way to configure apache? ./configure --enable-so --enable-deflate --enable-expires ...
1
vote
3answers
796 views

Shared PHP Sessions in Load Balanced httpd environment

I have two httpd servers running PHP on RHEL 5.7. Initially I was sharing PHP sessions between the servers using a common NFS share that was hosted on a third server. This was causing slow downs and ...
0
votes
3answers
174 views

Scripts has stopped working after apache/php update

I have updated php to 5.3.1 now some of the scripts hosted on my vps have stopped working. This includes whmcs and fantastico. All these scripts are showing a blank page. now debugging each and every ...
1
vote
1answer
169 views

PHP won't run on Fedora 15

I have followed this exact tutorial on installing php on a Fedora 15 system. I have all the necessary packages installed with no errors. Yet the simple phpinfo() test page will show - it will show a ...
4
votes
1answer
510 views

Apache + PHP-FPM = random “Error parsing script headers” + Seg Faults

I have PHP-FPM setup with Apache 2.4 using proxy_fcgi, all works fine, but every one in 4-6 requests, Apache returns a blank page. This happens on my main site http://danielhe.com/, but not subdomain ...
-1
votes
1answer
116 views

Php files won't open

I installed everything using powerstack and yum. I've checked over config files and havnt noticed anything. My phpinfo worked once then stopped. http://93.174.91.26/content/serverinfo.php. All other ...
0
votes
1answer
89 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
2answers
177 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 ...
0
votes
1answer
209 views

Apache uses more memory than PHP's memory_limit

I am having some issues on a server where multiple Apache processes are being spawned and eating up the physical memory and swap. Each httpd process consumes around 130MB of RES. However, PHP's ...
1
vote
2answers
477 views

CPU Utilization LAMP stack

We've got an ec2 m2.4xlarge running Magento (centos 5.6, httpd 2.2, php 5.2.17 with eaccelerator 0.9.5.3, mysql 5.1.52). Right now we're getting a large traffic spike, and our top looks like this: ...
0
votes
2answers
507 views

Showing httpd.exe application error on server

I am running an online examination website on my localhost server. When I have attached eight other machines to the LAN to conduct a test, it generate an error message: httpd.exe Application error ...
2
votes
3answers
389 views

Secure http transfer with ssh (tunnel)?

I have two servers which communicate over http. I wish this transfer be secure. How can this be achieved? I do not wish to use use https (that would require ssl certificate,right?) [SERVER-I] --> ...
0
votes
3answers
131 views

load a php page with a cron job

I am using a cron job to reload my httpd service after a subdomain is created. I have the problem that when the reload happens the page that registers the user throws a server error. I was wondering ...
1
vote
3answers
266 views

is it possible to reload httpd from php

I have a LAMP server running on CentOS 5.5 64-bit and would like to reload my httpd service after making new subdomains. I have 3 servers mounted onto my web server, and depending on what resources ...
0
votes
1answer
38 views

Getting PHP5 To install

It seems I am stuck with a 4yo build of PHP (PHP4.3.9 Built: 2007) and I am trying to upgrade. Right now, it's like a traffic puzzle, or a vicious cycle, whatever you want to call it. I try to upgrade ...
0
votes
1answer
415 views

Only my default Virtual Host will execute PHP scripts--500 error otherwise

This should be a simple thing to find, but I've spent over an hour on it--time to ask for some assistance. I have a very basic CentOS 5.5 box running two virtual machines. The first machine has been ...
1
vote
1answer
204 views

Will private dirty RSS used by mod_php ever be made available to other processes?

I've got PHP processes running that occasionally have to briefly use large amounts of RAM. After PHP uses the large amount of RAM, the httpd process seems to keep the same private dirty RSS ...
0
votes
2answers
105 views

php not working after apache directory change

I have a dev box running and i changed the path of the vhost from /home/username/www to /home/username/public_html. Retarted apache and now the site is giving me a 403 when i visit the site and php ...
0
votes
1answer
499 views

PHP in Mac OS X: PHP loads source code in browser rather than executing…

I don't know what to do. I read the related question on stackoverflow just like mine but those changes didn't work. I asked again on stackoverflow and they sent me here. They sent that I need to load ...
0
votes
3answers
1k views

dev/null and dev/null 2>&1?

What dose mean dev/null and dev/null 2>&1 ? if i run php -q /http/get_pdf.php sorry for my short question when we run this file from url it will create a .pdf file and mail, we are looking to ...
1
vote
2answers
331 views

IDN and HTTP_HOST

So, when I want to link my users to a specific page I always use (in php): "http://" . $_SERVER["HTTP_HOST"] . "/page.php", to be sure that the link points to the page they're currently surfing (and ...
1
vote
4answers
1k views

Apache: reverse proxy to process PHP from another server

I have the following setup: Plain-Server: Delivering php-files as plain text Proxy-Server: Asking the Plain-Server for the php file and parsing it. Now my question: How do I configure the ...