Apache :: Localhost Doesn't Update When Change Directory Files

Jul 15, 2013

I'm new to Apache. I'm using a version 2.4 for Windows 7. It didn't come in as an .msi so I had to configure the appropriate web-server name via the httpd text document.

Each time I go to http://localhost, I am present with a page with the content "It works." I tried adding a different .html file into the directory to see if I could access that also, but I was not able to navigate to it via the address bar. So I edited the content of index.html from 'It works!' to "It works?!!!" but sadly, the actual page is still showing 'It works!' for its content (Rather ironic, huh?).

So, for whatever reason, the actual 'localhost' page isn't updating or even noticing any of my edits in what I presume to be the correct directory.

Here's my httpd document for referenc [URL] ....

View 7 Replies


ADVERTISEMENT

Apache :: HTAccess Doesn't Work On Localhost

Mar 12, 2013

I need to modify a web that is working in the server. I'd like to download it to my computer and test it. For this reason I have to change the htaccess file to change the redirects, but it doesn't work, appears 404 error

This is the code.

RewriteEngine On #rewritecond %{http_host}
^camps.es [nc] rewritecond %{http_host}
^camps [nc] #rewriterule
^(.*)$ http://www.camps.es/$1 [r=301,nc] rewriterule
^(.*)$ http://localhost:8887/camps/$1 [r=301,nc]

View 3 Replies View Related

Apache :: Domain Name Doesn't Work On Localhost

Aug 4, 2013

I have a home server set up with a couple of things going. Here is the weird thing that I can't figure out. I can access everything just fine from an INTERNET connection external to my LAN using my domain name, let's say "domain.com". So, if I type into my computer on my LAN www.domain.com, it searches without actually finding it's destination giving up after a period of time saying the server cannot be found.

But, if I type www.domain.com on my mobile phone using my data connection, it connects without a hitch and everything functions fine. I have done this set up before at a different home, but since I moved, I have come across this problem and either don't remember having this happen before or don't remember what I did to resolve it. What I should look for?

View 5 Replies View Related

How To Change Php Files Permissions In Directory And Subdirectory At Once

Nov 9, 2007

How to Change php files permissions in directory and subdirectory at once ?

I want to change the permissions of php permissions to be 644 in /home/user/public_html/forum and all forum subdirectory using SSH.

View 2 Replies View Related

Apache 2.2 / Php 5 Update: Calling Files Behind Root

May 24, 2008

With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5?

the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image.

PHP Code:

        if ($private == 1) {
        header("Content-type: image/jpeg"); 
        $im = imagecreatefromjpeg('/home/site1/private/' . $type . '/' . $mid . '-' . $iid . '.jpg'); 
        imagecolorallocate($im, 255, 255, 255);
        imagejpeg($im); 
        imagedestroy($im);
        } 

View 1 Replies View Related

Apache :: Mod Rewrite Rule To Disallow Direct Access To Files From Some Directory

Oct 26, 2014

in wordpress is wp-includes folder, i dont want anyone just execute file from this directory so it just serve wordpress not any malicious file be executed from there,

so i added this rule into /wp-includes/.htaccess:
RewriteRule ^(wp-includes)/.*$ ./ [NC,R=301,L]

View 2 Replies View Related

Apache :: Accept Files In Home Directory - Development Server Access Denied

Jul 19, 2014

I have recently switched from Ubuntu to Mint because I would like to enjoy out of the box functionality. I installed Apache, PHP and Mysql. When I go to localhost, the page displays correctly indicating that the server is functioning. In /var/www/html I created devPages. In devPages I created a symlink to a directory in my home directory where I keep all of my html/php files.

When I point my browser to http://localhost/devPages/1/ I get "You don't have permission to access /devPages/1/ on this server". This appears to be a permissions/ownership issue. I don't want to change the permissions for the directory or files in the home directory because they are set to work properly on my production server. Is there a way to get apache to accept files in my home directory?

I have set owner and group for devPages and the symlink to www-data. Set permissions to 755 for devPages.

By the way, under Ubuntu, I have always used a symlink and it always worked without any issues.

View 1 Replies View Related

How To Configure Apache To Update Access Logs Files In Real Time

Jul 19, 2014

I'm trying to configure an custom access_log file for an custom file called "extra.php"

How I can make an log file that's log only "extra.php" ....

View 1 Replies View Related

Disable This Error When A Directory Doesn't Exist

May 23, 2009

When i go to a directory that doesn't exist i get this:

Quote:

Apache/2.2.3 (Debian) mod_jk/1.2.18 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Server

How can i disable it?

View 5 Replies View Related

CPanel Just Setup, Doesn't Want To Update Mysql

Aug 22, 2007

I finally broke down and just got a cPanel license to fix my multiple account problems, and had it installed... But now I have a problem that I can't seem to fix - MySql won't update to 4.1.21, its stuck at 4.1.18 which means I can't use PHP 5+... I can't update to MySQL 5.0+ because my databases (Which I have yet to move over) are 4.1 and should probably stay 4.1 until I know for sure it won't break anything.

Does anyone know whats going on and how I can fix this? I've tried "/scripts/mysqlup" and "/scripts/upcp --force", as well as Apache update in WHM, and manual cPanel update in WHM.

Heres what it says when I use mysqlup:

Quote:

MySQL Setup Script Version 7.0
This is the MySQL installer for OS FreeBSD
mysql-client-4.1 (4.1.18_1) is already installed.
mysql-server-4.1 (4.1.18_2) is already installed.
Install Complete

View 14 Replies View Related

Plesk 11.x / Linux :: Try To Update 11.5 To 12.0.18 But KB Doesn't Work

Sep 22, 2014

I try to follow this: KB: Customer & Business Manager stuck on post-upgrade processing like the warning tell me to do:

Code:

Parallels Panel pre-upgrade check...
WARNING: SSO start-up script has wrong execution priority. Please, check [URL] .... for more details.

But I try to proceed the first step (for Centos 6.5):

Code:

[root@mydomain conf.d]# for i in `find /etc/sw-cp-server/applications.d/ -type f -name *sso-cpserver.conf`; do mv $i $i.moved.kb.112666; done
[root@mydomain conf.d]# rpm -q sw-sso | xargs rpm -e --nodeps --justdb
[root@mydomain conf.d]# /usr/local/psa/admin/sbin/autoinstaller --select-release-current --upgrade-installed-components
Doing restart of Parallels Installer...

[code]....

View 5 Replies View Related

Plesk 12.x / Linux :: Emails Synchronization Doesn't Work After Update

Feb 23, 2015

All of my email clients stops working after tonight Plesk update. Some known issues?!

After server restart It's work only for 30 secs and again stops working.

View 1 Replies View Related

Rsync Doesn't Want To Transfer Files

May 16, 2008

i have a client machine which requires backing up, and the server. For some reason, rsync doesn't want to transfer files...

i've already set up keys, it logs in fine without asking for password.

server config:

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[backup]
comment = Rsync backups
path = /secondary/client
read only = no
list = yes
uid = nobody
gid = nobody
auth users = root

client command:
rsync -vz --recursive --progress --stats -e "ssh -i /root/.ssh/rsynckey" root@server.com:/backup/ /home/usertobackup

it keeps saying cannot find the backup folder, even thouhg it does exist on the server and is what is specified in the path above?

View 7 Replies View Related

Loading Localhost With Apache

Dec 9, 2007

I've had a localhost server setup for awhile now, and all of a sudden when I access [url]it wants to download my "index.php" file. However, when I access it via [url]is loads fine.

View 7 Replies View Related

Apache :: No Localhost On 2.4.9 After Upgrading From 2.4.6

May 20, 2014

I have Apache 2.4.6 running without problem on Windows 7 Ultimate.

I upgraded to Apache 2.4.9 by:

Stopping Apache;
Renaming the 2.4.6 directory to "old";
Extracting the files from the zip to the Apache directory; and
Copying the old httpd.conf to the Apache directory.
After rebooting I found that I could not access localhost (or 127.0.0.1).

I then reverted to Apache 2.4.6. Localhost is now working.

View 2 Replies View Related

How To Change Chmod Directory With Ssh

Jun 12, 2009

How to change chmode directory with ssh?

what best rootkit cheker for centos 5.3?

View 2 Replies View Related

Configuring Subdomains In Apache On A Localhost

Apr 27, 2006

I'm currently trying to configure apache 2 to handle subdomains. This is on a local machine (not tied to any domain names) and I'm only doing it to research how the final structure of a site 'could' be setup.

Basically I have a single install of Apache 2 running. The outcome eventually should be to have specific sub domains that all point to the same document root as the actual domain name. So eventually I will have:

http://www.mydomain.com
http://subdomain1.mydomain.com
http://subdomain2.mydomain.com

with both subdomains showing the content at mydomain.com (there is reasoning behind this but I'm not gonna go into that).

I have apache setup as follows:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>


<VirtualHost *:80>
ServerName subdomain1.daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName subdomain2.daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>

Now on my local machine, only the top one works - the subdomains dont. if I add the following into my hosts file in windows, they all work:
127.0.0.1 daneastley
127.0.0.1 subdomain1.daneastley
127.0.0.1 subdomain2.daneastley

the problem being, that I wish to test this enviroment on the local network. How would I go about having every computer being able to access this? I'm assuming it comes down to DNS stuff.

View 0 Replies View Related

Apache :: Redirect URL To Localhost / Images

Oct 10, 2013

I have a simple app where i am currently downloading some images from the internet. I want to use a local web server to host some of these images when i am not connected to the internet. I installed the apache web server and added the images folder under htdocs - my document root.

Now, i want something like when i continue to query images from www.examplesite.com/xyzimage.png within my app, it should be redirected to localhost/images. Is this possible? I tried doing this

In C:WINDOWSsystem32driversetchosts i added this line URL:...

Also in the httpd.conf i set the foll -

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?examplesite.com$ [NC]
RewriteCond %{REQUEST_URI} !^/examplesite
RewriteRule ^(.*)$ /images/$1 [L]

but it doesnt seem to work.

View 1 Replies View Related

Apache :: 2.4.3 - Localhost Responses Very Slow

Aug 4, 2013

I've very slow response (from 1-2 seconds to tens of seconds) from http://localhost using Apache 2.4.3/Win32 service on Windows 8/32bit (6.2 build 9200). It doesn't depend on the browser used. Responses from all other sites are much faster.

Because it seemed to me to be a DNS issue, I tried to uncomment "127.0.0.1 localhost" and/or "::1 localhost" line in the hosts file, put "http://127.0.0.1" or "http://[::1]" instead of "http://localhost" into the browser, flushing dns by ipconfig /flushdns, stopping DNS Client by "net stop dnscache", disabling IPV6, etc. but nothing worked.

It seems that hosts file is ignored and "localhost" is passed to external DNS. Ping localhost yields to "Reply from ::1: time<1ms" response, ping 127.0.0.1 yields to expected "Reply from 127.0.0.1: bytes=32 time<1ms TTL=128" response.

Finally, "unplugging the network cable" is the only solution I've found: then the connection to localhost is much faster.

How to get instant response when connected?

View 6 Replies View Related

How To Change Default Directory From Httpdocs

Feb 11, 2008

How Can I point [url]to httpdocs/MyFolder instead of httpdocs...

I am running a Plesk cp with apache web server.......

View 2 Replies View Related

How To Change Default Directory From Httpdocs

Feb 11, 2008

How Can I point [url]instead of httpdocs...

I am running a Plesk cp with apache web server.......

View 3 Replies View Related

Apache :: Localhost Works - Remote Fails

Nov 22, 2013

My customer wants a Windows system - but I'm rusty at best in Windows.I downloaded VC11 x86 Thread Safe (2013-Nov-13 20:57:44), unpacked it, moved it to it's own directory, edited httpd.conf (no auto installation) and confirmed it was working (localhost/index.html)

I added PHP and ran a PHP info - a little trouble getting the php.ini found.Apache seems to work fine on the local system - either localhost/index.html or nn.nn.nn.nn/.But remote browsers timeout when attempting to connect.

1. I've opened command as administrator and run httpd.exe directly

2. I've installed httpd.exe as a service, opened it's properties window and started it from there

3. Changed the listen port to 8080

4. netstat sees the remote browser with a waiting connection - and the local service

5. The Windows system is on my Mac network (same systems where the remote browser is) and I have transferred megabytes of files between the two systems.

In Component Services - the Apache2.4 service shows Log On As 'Local Service' - I'm guessing it should show as 'Network Service.I tried changing this - used the local user login - restarted the service. I didn't see any way to change it to 'Network Service'. Perhaps this is the problem?

ODDLY - the remote browser worked briefly - then failed with the same 'time out'.I'm guessing this is something simple that I don't understand about Windows - (then again, since I don't understand much about Windows, it could be complicated too).

View 4 Replies View Related

Apache :: Localhost Is Randomly Loading Forever?

Mar 12, 2015

my local host is just taking incredibly long to load. At work I've set it up no differently and it works like a charm, but at home, it works.. But at times it doesnt load instantly until I restart my browser. I have to press refresh or enter to login a million times for it to load after the first few seconds I use it.

View 1 Replies View Related

NS IP Change...Instant Update

Feb 15, 2007

I know it takes 24-48 hours for new domains to resolve and all that stuff.

But I was wondering. Say I am using my Registrar's DNS and I made 2 subdomains NS1.DOMAIN.COM and NS2.DOMAIN.COM and their A records point to my server.

Say I switch my websites to another server and my domains have the same name servers, NS1.DOMAIN.COM and NS2.DOMAIN.COM, but I change their A records instead, shouldn't the update be INSTANT? I mean, people should be instantly be able to access the new server as soon as I change the A records, right?

Because, currently, when I use the registrar's DNS and nameservers NS1.MYREGISTRAR.COM and NS2.MYREGISTRAR.COM and if I want to switch server, I just change the A record of WWW.DOMAIN.COM and I can INSTANTLY access the other server through my domain.

Shouldn't the same rule apply if I make custom NS1.DOMAIN.COM and NS2.DOMAIN.COM and use them as my nameserver istead of NS1.MYREGISTRAR.COM and NS2.MYREGISTRAR.COM?

View 6 Replies View Related

How To Change VZ SSL To "localhost.localdomain"

Aug 24, 2008

I'm planning to buy a high end VPS for reselling as a whole.

Does any one know how to change the VZ SSL to localhost.localdomain as shown in the attachment? I asked many providers and non of them like to change this. I got one provider willing to change this for me but he's not very sure how.

Someone told me that "Ask your provider to study how VZPP is handled by apache in the service container and they should find his way through"

I'm already aware that this should be done from the main hardware node not from the clients VPS itself.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved