My main domain(www.mysite.com) is pointing to a folder in my server (/home/user_name/htdocs/mysite.com). I have recently created a subdomain(m.mysite.com) through my hosting account. But it is pointing it to a new folder (/home/user_name/htdocs/m.mysite.com) in my server. I am not able to edit the path to which this new subdomain points to. All my files are hosted in my main folder path.
Tag: apache
Why would $_FILES be empty when uploading files to PHP?
I have WampServer 2 installed on my Windows 7 computer. I’m using Apache 2.2.11 and PHP 5.2.11. When I attempt to upload any file from a form, it seems to upload, but in PHP, the $_FILES array is empty. There is no file in the c:wamptmp folder. I have configured php.ini to allow file uploads and such. The tmp folder
XDebug not working with xampp
I’m using (or trying to anyway) use the bundled XDebug with XAMPP 1.7.2. It comes bundled with Apache 2.2.12, PHP 5.3.0, XDebug 2.0.5 and Zend (not sure on version) This is a totally fresh install of XAMPP, the only thing I’ve added to php.ini (at xampp/php/php.ini) is: (this is only one of many different configs I’ve tried) But try as
Pause-able download for Apache
I have an Apache server running which hosts a php web application. This server also provides provisions for downloading a file size of around 900MB from it. However, while testing the application I found out that it’s not possible to pause the downloads and resume them later on. Could someone help me? Is it an apache property I must change?
What is mod_php?
While going through a Zend tutorial, I came across the following statement: Note that the php_flag settings in .htaccess only work if you are using mod_php. Can someone explain what that means? Answer mod_php means PHP, as an Apache module. Basically, when loading mod_php as an Apache module, it allows Apache to interpret PHP files (those are interpreted by mod_php).
Best way to manage long-running php script?
I have a PHP script that takes a long time (5-30 minutes) to complete. Just in case it matters, the script is using curl to scrape data from another server. This is the reason it’s taking so long; it has to wait for each page to load before processing it and moving to the next. I want to be able
.htaccess deny access to specific files? more than one
I am able to disable access to a file with .htaccess, but I don’t know how to disallow multiple files to be viewed (directly, not from includes) They are .php so I can’t disable a file type (like the only tutorials online say..) Or something.. For example “home.php, file.php , test.php” how do I disallow access to all three files
netcat “Connection refused” on localhost
I’m trying to get a value from a netcat connection started at a php file, but it dies with: I don’t know why but it works well if I ssh it as apache user (www-data), this is what I’ve done: 1) Start an endless loop serving a date with a little delay: 2) Check if is working: 3) Create /var/www/test.php
Mcrypt installed but doesn’t show up on PHPINFO
I think I managed to install mcrypt lib. The files are in place, but it looks like the library doesn’t run at all. Tried to add: to PHP.INI; no good. Any help? Answer Have you tried restarting Apache? It won’t recognise the new installed module until you do so AFAIK. Also, you’ve written you “think” you’ve installed it – did
How do I throttle my site’s API users?
The legitimate users of my site occasionally hammer the server with API requests that cause undesirable results. I want to institute a limit of no more than say one API call every 5 seconds or n calls per minute (haven’t figured out the exact limit yet). I could obviously log every API call in a DB and do the calculation