1
vote
1answer
53 views

Physical memory usage issues with WordPress plugins

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress ...
0
votes
1answer
28 views

Check to see if emails are getting automatically sent

I have a Drupal site that is supiosed to send emails every time new content is created. The emails are sent to admin users so that they can check the content. None of the emails are making it to the ...
1
vote
2answers
38 views

Redirect domain.com:81 to domain.com

I need to redirect www.domain.com:81/site/ to www.domain.com. I have used mod_rewrite a few times, is it possible to solve this in a similar way?
0
votes
0answers
6 views

On line email form hangs on php mail() function. What server issue could be causing this? [migrated]

I have a contact form on my website that has a dead simple php mail() function. I am 99% certain the php is not the issue as I have the exact same function on other sites that works fine. However, ...
4
votes
2answers
71 views

Best process for upgrading a live server

I just recently started at a new company, and their live server has PHP v5.2.6 (yes, circa 2008). A site I recently designed for them actually wouldn't work on it because PHP is so old, so I've now ...
0
votes
0answers
5 views

Webhosting server Frontcontroller support [duplicate]

I am currently using XAMPP to code my websites, but i want to host it online now. I came across some hosting servers and they had restrictions, one didn't allow the use of a PDO and another didn't ...
0
votes
1answer
83 views

How to make better RESTful links SEO on static content website with Apache and PHP Router

I have a pretty old website (running on Apache) that serves around 50 static HTML pages. And so I want to change it and add PHP Router to help me serve content in a RESTful way. Now I have tried ...
2
votes
1answer
512 views

Apache VERY high page load time

My Drupal 6 site has been running smoothly for years but recently has experienced intermittent periods of extreme slowness (10-60 sec page loads). Several hours of slowness followed by hours of normal ...
0
votes
1answer
176 views

htaccess redirect pages that don't exist

I have a website that has a little over 100 members. Each member gets a replicated website, and by default the software we use sets up their replicated website at a url like: domain.com/?username ...
1
vote
2answers
146 views

Serving proper 404/410 error codes on dynamic database driven site

a developer I'm working with is having a difficult time serving 404 errors on dynamically generated pages (they get created when the request is made by querying the database to see if the content ...
4
votes
2answers
152 views

Website hack resulting in auto redirect - where to start looking?

My website is being redirected to a non-existent page (/showpage.php) for some users when they hit the homepage. For other users, the site works fine. I have looked in the index.php files and some ...
1
vote
1answer
51 views

CMS fails at finishing setup with PHP-FPM and Apache, but why?

I have installed Apache and PHP-FPM by following this tutorial. Unfortunately when I try to set up Drupal or PHP-Fusion it simply fails at the end of the setup. I mean it accepts everything and at ...
1
vote
1answer
153 views

Getting the masked URL values in Mediawiki

I have successfully masked the URL in Mediawiki. By using the following scripts in .htaccess and localsettings.php files in Mediawiki, i.e.: .htaccess: Options +FollowSymLinks RewriteEngine on ...
1
vote
4answers
489 views

Setting up a LAMP VM server for Development and Testing?

Info: I would like to set up a VM server on my local computer which will serve pages in the exact same way as my current hosting (but only to me on my local computer). I currently pay a big web ...
0
votes
2answers
192 views

Issues with Apache and loading PHP files [ubuntu]

I just installed PHP and Apache2 on my laptop (ubuntu 12.04), but I can't get my PHP files to load. I have followed this tutorial: ...
1
vote
1answer
6k views

Set the “servername” directive globally to suppress this message

I am setting up PHP for the first time and I am getting this error from the Apache server: Set the "servername" directive globally to suppress this message. This is the content of my httpd.conf ...
1
vote
1answer
54 views

Redirecting previous domain subfolder links

I've recently bought a domain that was unregistered. After looking in Google webmaster tools, Google is trying to crawl random pages that don't exist. Turns out it did have a previous owner. The ...
1
vote
2answers
343 views

Change name of audio file for download

I have some mp3 files which are named "my-audio.mp3" but now the client wants the visitor to be able to download and save these files to their desktop. He doesn't like the name with the hyphen and ...
2
votes
0answers
92 views

How many connection can my website have? [closed]

As the traffic increased my website hangs quite regularly. The page visit is now averaging 50k per day. The static page loads fine, but when the page has mysql request it takes too much time to ...
0
votes
2answers
60 views

mod_rewrite issue, won't work when links contain “-”

I've been looking into mod_rewrite for my simple PHP CMS for a couple of days now and I found a rule that was supposed to work for me: RewriteRule ^(\w+)/?$ view_post.php?url=$1 This is supposed to ...
2
votes
1answer
114 views

How to find data usage of a user on my website?

I have a website (project) where users get logged in, do their work and then they log out. I need to build a report that displays how much each person has used of data. (bandwidth, how much was ...
4
votes
3answers
1k views

using .htaccess to redirect .asp to .php?

Ahoy all! I've been racking my brain with this one. I basically just converted all of my pages from ASP code to PHP code. Kept the same filenames. So, here is the htaccess code I have so far, but ...
6
votes
3answers
162 views

Use Apache to prevent a PHP script from connecting to a specific domain

Is there a way to prevent apache from connecting to a specific domain e.g. somesite.com? I have a PHP script that trying to connect to specific host, and I would like to prevent that.
4
votes
1answer
155 views

Apache create index for directories without one specified.

Currently, I use a PHP script to list the contents of a directory that does not have an index file, but I don't want to have to copy it to every directory without an index. Can Apache do it ...
3
votes
1answer
236 views

Difficulty enabling caching on inherited site

I have been asked to work on a corporate website a previous employee had created. The site is on shared GoDaddy hosting. One of the first things I noticed (after the 140KB JPEG on the front page, ...
2
votes
2answers
679 views

Is making my PHP files read-only a useful security measure?

Up until now I've been "protecting" my website's PHP files by making them read-only with chmod. Is this a useful security tactic? Or is it some "old wive's tale" and I'm wasting my time? I'm ...
0
votes
3answers
528 views

Make Apache treat ASPX as html

I've swapped from ASP.NET to .PHP for cost reasons. As such, I want the people to be redirected from .ASPX to its equivalent .PHP. If I create the .aspx with HTML, the file is simply displayed in ...
0
votes
3answers
182 views

Subdomain Is Redirected and Causing an Error Because www. is Added

On my site, say example.com, if I try to access test.example.com, Firefox automatically adds www. to test.example.com, making it www.test.example.com, which causes an error. However, if I visit a site ...
1
vote
1answer
434 views

SSL on multiple directories

I have a website that is http, but has a port set up for https for a specific directory that is for the shopping cart. Now I'd like to use our SSL on a different directory in the same site as well. ...
0
votes
1answer
699 views

How to use different php.ini files for different VirtualHosts?

I have my site and it's staging subdomain running on the same CentOS machine running apache. The subdomain is created using a VirtualHost, and I use it to find any bugs before I push to production. I ...
2
votes
3answers
197 views

Redirect to same site but add things into the URL

I have a PHP file, index.php, that is set as the index file for my site. If someone wants to pull up a value for a, as an example, then they would type http://www.website.com/?value=a. Is it possible ...
1
vote
0answers
127 views

Best practice for suEXEC on complex sites?

What is best practice for using suEXEC on complex sites? We've got a site running under a single vhost, and we want to be able to run different PHP web apps eg /forum /wiki /crm as their own UIDs, to ...
1
vote
1answer
121 views

Links don't work on new server

I've recently moved from server with php4 to php5. Now I cant open content in my page. Links look like this "page.com/news-it-is-rainy-day-1.html". But when I try to open link I just get the archive ...
5
votes
1answer
1k views

Why has Apache begun running a single process as root, and another as root and the wwwdata user?

I am running Apache Worker-MPM, PHP 5.3.2, and FCGID. Apache runs better than before, but I noticed that there is an apache process running as root and a second process that runs as both root and ...
6
votes
3answers
3k views

How to restart Apache without reseting users sessions?

User is logged-in a PHP website > I restart Apache > User needs to log-in again. How to prevent this? (I don't want user to need to log-in again)
1
vote
3answers
497 views

Why isn't my PHP file running?

I recently installed Apache and later installed PHP too. When I browse to http://localhost/index.html it displays the default Apache page "it works". But when i try to run ...
1
vote
1answer
636 views

.htaccess is not working in vps hosting

what is solution to create a .htaccess file in vps. I have tried most of the .htaccess file.but it doesnt work in vps. What is the solution? here is the code of htaccess file. RewriteEngine on ...
0
votes
1answer
155 views

Most common Apache and PHP configuration for portable Web Applications

I always create web application using PHP but I always distribute and deploy my works to different kinds of server platforms and web server configurations. Thus I always encounter problems in ...
6
votes
3answers
3k views

What are the pros and cons of running PHP as an Apache module or a FastCGI?

My VPS is giving me the option between running PHP as an Apache Module or a FastCGI. How should one make this decision? Performance? Security? Ease of use? Compatibility? I'm using PLESK.
5
votes
1answer
8k views

How to pass GET parameters to rewritten URL?

I have an .htaccess rewrite rule like this: RewriteCond %{SCRIPT_FILENME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^search/(.*)$ search.php?q=$1 What this does is, if someone visits ...
1
vote
2answers
6k views

NginX redirect to PHP file if image does not exist on file server

This is what I am trying to do. I am not familiar with Nginx enough to create custom rewrite rules like you can with Apache. It would be greatly appreciated if someone could help me with the Nginx ...
1
vote
2answers
41 views

Blocking path scanning

I'm seeing in my access log a number of request very suspicious: /i /im /imaa /imag /image /images /images/d /images/di /images/dis They part from a known resource (in the above example ...
0
votes
4answers
1k views

Configure PHP and Apache in Windows 7

I installed Apache successfully on a Windows 7, 32bit system. It showed "It works" in the webpage. I also configured <?php phpinfo(); ?>file as info.php. But when I tried to open ...
2
votes
1answer
2k views

Extend depth of .htaccess to all subfolders and their children

I need to be able to use .htaccess in all subfolders for full depth. E.g. I have .htaccess in public_html folder: \public_html\.htaccess How I make it to work for the folder small as well? ...
0
votes
2answers
588 views

Monitoring load/resource drain of individual scripts on apache

We have a website and for some reason lately its been grinding our server to a halt. It has had a spike of traffic, but even still that spike is only possibly 1k or 2k. We installed eAccelerator PHP ...
2
votes
1answer
204 views

Put files outside of directory, so none can access it (Apache, PHP, MySQL)

I have a file structure like this: public/admin public/some folder includes/ I set up a sub-domain page.mysite.com and I pointed the directory to be mysite.com/page/public/admin. I thought that ...
0
votes
1answer
489 views

lfd on ns3.domain.com: Excessive resource usage: Account (26661)

We lease a dedicated server with the following specs: Dual Hyperthreaded Quad Core 12GB RAM 750gb RAID1 We recently upgraded from a Dual Core/2GB RAM due to server load issues. We are ...
3
votes
1answer
3k views

Setting file permissions on linux to allow PHP to write to a directory

I have a website built with Codeigniter and hosted on a Linux box. I am trying to follow "best practices" when it comes to my file permission settings, but I'm not sure if I completely understand the ...
2
votes
1answer
546 views

Magento - Unable to access remote site but able to access a simple index.html file

I'm building a store (magento 1.6.0.0-rc2) and have a home server to host the site. It is behind a modem/router with redirection of port 80 and 3000 active to server box. 1. I can access the ...
1
vote
0answers
2k views

Error 504 with Apache and php [closed]

My web application works fine in development environment, but on production server gives off: 504 Gateway Time-out The server didn't respond in time. Edit: I have traced the problem to a ...