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


ADVERTISEMENT

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 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

Calling All Colocation Providers

May 26, 2007

where I should place my server. I hear good and bad things about all kinds of companies, and endless forum posts, so at times I get quite confused in which places are really good and bad.

I currently have a full tower (not rackmount server) that I would like placed on a gbit link. I would need around 20mbps in bandwidth, and have a budget of 800$/month. Where should I go for such needs?

View 14 Replies View Related

Getting Files Off The Root Server That Is Outside Web Access

Aug 15, 2007

I am actually very inexpirience in server management. I have a small - I believe - problem. I need to get config file onto my computer from my root server. I can access it through terminal, but it is not very confortable. The config file is on root server.

the file is located at //etc/xxx.conf

Do I need to use web browser to do it? If so how?

Or is there a way that I log to my root server through ssh and transfer onto my computer?

View 2 Replies View Related

Network Solutions - Locate Files Outside Of Doc Root

Apr 24, 2008

if anyone knew if with Network Solutions advanced hosting package on unix there was a way to store the documents outside of document root? If not is there a good way to secure a folder/files that is in the document root from users?

View 1 Replies View Related

How To List Down All Files Owned In 'root' Inside /home

Jun 3, 2008

I wanted to list down all files owned by 'root' inside /home directory and all users directory inside /home/users including subfolders and everything!

the command below works but only works when executed within the working directory.

ls -l | awk '{print $3" " $9}' | grep root

View 4 Replies View Related

HOWTO Cron Job To Copy Files From Folder To Root

Feb 5, 2008

how to setup a cron job to copy files & directories from one folder to the root folder. I have CPanel X.

My root directory is public_html/
I have another directory public_html/uploads containing both files and directories.

I need a cron job that will copy all the files & directories from public_html/uploads to the root public_html/

If it helps, here is some system info

General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.6.22_hg_grsec_pax
Apache version 1.3.39 (Unix)
PERL version 5.8.8
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.4
MySQL version 4.1.22-standard
cPanel Build 11.17.0-STABLE 19434
Theme cPanel X v2.6.0

View 1 Replies View Related

Plesk 11.x / Linux :: Update Installation - Can't Download Needed Files Necessary To This Operation

Sep 2, 2014

I was trying to update my Plesk Panel installation and got the following error:

It seems the auto updater can't download the needed files necessary to this operation.

OS: CentOS 5.7
Panel version:10.3.1
Trying to update to version: 12.0.18

ERROR LOG

Code:
Installation started in background
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www7.atomicorp.com
* epel: mirror.23media.de
* openvz-kernel-rhel5: mirror.fastvps.ru

[Code] .....

View 13 Replies View Related

Apache :: Permissions For Web Root

Sep 1, 2014

My web server starts from /var/www/xxx/xxx/

I have installed phpmyadmin, and i tried placing the folder both in /var/www/xxx/xxx/ and /var/www/ and neither seem to work.

How I can get it to show up in the /var/www/xxx/xxx so i can just access from my.site.name/phpmyadmin

Even more preferred would be keeping it in the /var/www/ folder, but still being able to access my site at my.site.name/index.php and my phpadmin by my.site.name/phpmyadmin

View 1 Replies View Related

Apache Parent Owns Root

Jul 15, 2009

Why apache parent process still owned by root user.

=========
root@server:~# ps aux | grep apache2
root 30161 0.0 0.8 35588 8368 ? Ss 17:41 0:00 /usr/sbin/apache2 -k start
www-data 30166 0.0 0.7 36080 7196 ? S 17:41 0:00 /usr/sbin/apache2 -k start ...

View 5 Replies View Related

Apache Document Root On Linux

Sep 5, 2007

Basic question: does it matter where I set the document root for apache on a Linux system? I've googled this but haven't found a good answer.

This is for a VPS server running the Ubuntu (Debian) server os that I'm configuring. I'd prefer to simply create a new directory off the root and set that as the document root in the apache config file. Would this present any kind of security issue?

If that's no good, what's the best choice -- stick to the default?

View 3 Replies View Related

Apache :: Cannot Change Document Root

Oct 26, 2013

I just made a fresh install of the following :

Apache 2.4 (x64)
PHP 5.5.5 Thread Safe (x64)
OS: Windows 8.1 (x64)

And I think everything is working. When openingen 127.0.0.1 I see the apache message that the server is running and when executing phpinfo() it displays the PHP info.

My problem is that I'm trying to change the document root.

I have change the following in the httpd.conf:

DocumentRoot "C:/Apache24/htdocs"
<Directory "C:/Apache24/htdocs">

The lines abowe have been change to:

DocumentRoot "D:/www"
<Directory "D:/www">

After this I did a reboot of the apache server using the CMD httpd -k restart. I even tried restarting using the apachemonitor and rebooted the whole server. But apache still loads the files from c:/Apache24/htdocs

I can't find any more entries with htdocs to change. What am I missing?

View 2 Replies View Related

Apache :: How To Use Data Outside Of Root Directory

Jan 2, 2014

I have home a server Apache. I want to put all my party songs in one partition and can listen from anywhere without having to take CDs. I have my site in C:Site and the songs I put it in D:Songs.

In php I see the D:Songs directory, I can read subdirectories, I see the .mp3 and .Wav files, I created the playlist, but the audio player doesn't start.

If I move the songs files in C:Site or C:SiteSongs goes perfectly, I can listen my music, but I do not want to be there.
Why I see in D:Songs, but does not want to go? In httpd.conf I have:

DocumentRoot "C:/Site/"
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

and

<Directory "C:/Site/">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

I try to put also:

<Directory "D:/Songs/">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

bud does not work. "What Can I Do"?

[URL] ....

View 7 Replies View Related

Apache :: Document Root Must Be Directory

Jun 2, 2014

In httpd.conf I have

DocumentRoot "C:/Programme/Apache_Group/Tomcat-8.0.5/webapps/ROOT/"

2.4.9 is complaining about this having to be a directory. It is definiteley. I can browse it with explorer.

When I change this to "C:/Program Files/..." it works.

Why is that? In the stock Win32 server I downloaded from the apache site I did not have to make this change.

View 4 Replies View Related

Apache :: Redirecting Only Root But Not Subfolders

Feb 5, 2013

For now I have this

RewriteEngine On
RewriteCond %{http_host} 7eh.net|www.7eh.net
RewriteRule ^/?$ http://www.secretdesignart.com/ [L]

But some folders are redirected.

You can check here:

[URL] .....

View 2 Replies View Related

Apache :: Need To Redirect Root Of Server

Oct 9, 2014

creating a basic redirect. What I need is to redirect the root of my server 173.x.x.x to a file called test.php in the root of my folder.example: when I go to http://173.x.x.x I get redirected to http://173.x.x.x/test.php..

View 3 Replies View Related

Apache :: HTAccess Redirect Root To Folder

Nov 28, 2006

I searched URL....but I still could not get this to work.I need a redirect to a certain folder when people visit the root directory of my site.

View 7 Replies View Related

Apache :: Redirect To Domain Root When Not Logged In

Sep 12, 2013

I would like to do do following using basic authentication:

1. non authenticated users have access to the index page: [URL] .....
2. there are other pages, e.g: [URL] .... but these would require basic auth
3. if users are not authenticated they would be redirected to [URL] .... otherwise authenticated users would have access to [URL] .... or anything else under that domain

View 1 Replies View Related

Apache :: Virtual Host Not Using Its Web Root Doc Folder

Jul 29, 2014

I use Webmin (1.69) to work on my development environment. I am using Ubuntu Desktop 14.04 right now. I am not exactly an Ubuntu newbie but I would not call myself an expert either.

I created a virtual host (newdomain.local) with webmin. I filled in all the fields and saved the new VH definition. I added newdomain.local to my hosts file with an ip address of 127.0.0.1 and restarted apache.

When I go to [URL] ...., it is not taking me to the VH's home page but to the default home page.

Why this might be happening?

View 2 Replies View Related

Apache :: How To Figure Out Root Cause Of Cpanel Crash

Aug 23, 2014

Cpanel Server is crashing frequently and customer suspecting that it should be a hardware issue, what are all the logs and tools you need to check to figure out the root cause of the crash?

View 1 Replies View Related

Apache Do Not Update

Aug 4, 2009

i enable Mbstrings and Soap in easyapache in Cpanel.
after 24 hours i restart my server and some things get eror.

tmp folder become read only.

easy apache give below eror :

Code:
Died at /var/cpanel/perl/easy/Cpanel/Easy/Utils/BackGround.pm line 40.
and all site have eror for tmp and mysql.
i change tmp folder but some eror don't solved.

Code:
Can't create/write to file '/tmp/#sql_1f42_0.MYI' (Errcode: 30) SQL=SELECT m.*, sum(case when p.published=1 then 1 else 0 end) as cnt FROM jos_menu AS m LEFT JOIN jos_menu AS p ON p.parent = m.id WHERE m.menutype='mainmenu' AND m.published='1' AND m.access <= '0' GROUP BY m.id ORDER BY m.parent, m.ordering
Warning: Invalid argument supplied for foreach() in /home/music/public_html/modules/mod_tpmenu/tpmenu/dropdown/menu.php on line 127

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/music/public_html/modules/mod_tpmenu/tpmenu/dropdown/menu.php on line 150

this is mount command :

Code:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,usrquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
and this is fstabs :

Code:
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0

View 14 Replies View Related

Apache :: Applying Root Directory Attributes To All Subdirectories

Feb 18, 2013

I am running Apache2 server (version 2.2.16) on Debian Linux.

My document root for directory listings is set and in that folder I have a few other files to configure the formatting and visual effects. These are:

images(folder)
sorttable.js
style.css
index.php

These files make the root directory look very nice. If I navigate in to a subdirectory, all of the formatting and visual effects are lost and the standard text layout is shown. Is there a way I can get ALL subdirectories in the root directory to take on the visual and layout effects from the root directory?

I know it works if I manually copy each of the files to each of the subdirectories which would be fine, but the subdirectories are created dynamically and new ones are added regularly.

View 1 Replies View Related

Cant Access Apache Update In WHM

Jul 10, 2008

Can't access apache update in WHM I get an http 500 error page.

View 4 Replies View Related

Update Apache And Php In Plesk

Jun 21, 2008

How can I update my apache and php to latest version in PLESK?

I need to install GD and Zend Optimizer too.

View 0 Replies View Related

Apache Update Problems (yum)

Sep 14, 2007

Just started running a new VPS and have tried to update apache through WHM and I get this error :

Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed.

Someone told me to check out yum so I ran a command that he told me too and got this output :

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 381, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
return base.updatePkgs(extcmds)
File "/usr/share/yum-cli/cli.py", line 672, in updatePkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 109, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 338, in doSackSetup
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 200, in populateSack
sack.populate(repo, with, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 91, in populate
dobj = repo.cacheHandler.getPrimary(xml, csum)
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 100, in getPrimary
return self._getbase(location, checksum, 'primary')
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 93, in _getbase
self.updateSqliteCache(db, parser, checksum, metadatatype)
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 382, in updateSqliteCache
cur.execute("DELETE FROM "+table+ " where pkgKey in %s" % delpkgs)
File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute
self.rs = self.con.db.execute(SQL)
_sqlite.DatabaseError: unable to open database file

Its the database error that worries me, can anyone help me out with how to fix this?

Running WHM 11.2.0 cPanel 11.11.0-S16999

CENTOS Enterprise 5 i686 - WHM X v3.1.0

View 2 Replies View Related

Apache :: How To Update Openssl

Apr 5, 2013

we need to upgrade the openssl modules, we have apache 2.2 installed and openssl version is 1.0.0,apache and openssl are in solaris9 SPARC.

View 4 Replies View Related

Error When Trying To Run Apache Update (cPanel)

Feb 16, 2008

I got a new server online today with a fresh installation of centos and cPanel:

WHM 11.15.0 cPanel 11.18.1-R20683
CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0

I have done the initial setup (ip's nameservers etc..) but when I try and run apache update I get the following:

Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.

I look in the log file but it just repeatse the above error and doesnt supply any additional info.

View 14 Replies View Related

POP Server Error After Apache Update

Jul 2, 2007

I run a dedicated server with WHM/cPanel (10.8.0).

I was recently supposed to update the Apache installation to add a module, but instead of clicking "load previous config" I clicked on "start build" by mistake. This brought the installation back to default.

I waited till the build was finished and then added all the modules I could remember having installed earlier. This made Apache not wanting to start. I went back to the default and then recompiled apache over and over again, adding 1 o 2 modules every time. Apache booted up fine, but for some reason my mail is suddenly acting up.

I keep getting the following error on one of my domain in my client:

Code:
Unable to connect to POP server mail.example.com.
Error sending password: -ERR Maildir invalid (no 'cur' directory)
When I click OK, I get:

Code:
Unable to connect to POP server mail.example.com.
Error sending password: Operation now in progress
I have a couple of other accounts in the mail client. None of them are receiving mails, even though I can see that there are new mails present in the mailbox via webmail.

My exim is configured to use mbox as far as I know. So I don't understand why I'm getting an invalid maildir message.

View 2 Replies View Related







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