21, March 2010

doc_root - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: doc_root
« previous next »
Pages: [1] 2 Print

Author Topic: doc_root  (Read 1094 times)
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« on: May 22, 2009, 01:17:59 pm »

Hello all,

I'm currently developing a site that has to map to the document root.  I've configured the DocumentRoot to point to my root.  I've checked my phpinfo() to make sure the changes are ok and they are.

I've noticed a tag in my PHP.ini file called 'doc_root'.  This isn't set to the root of my folder.  I've changed this to match but nothing happens.  In-order for the site to work it has to point to my root folder, (www).

The site generates URLs on-the-fly.  Everything else is fine.  I've un-commented the mod_rewrite rule and everything connected to this is fine.  Am I missing something?  Maybe some tags may be set incorrectly.

Jim.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: May 22, 2009, 01:39:16 pm »

I leave that value as it is, apache's doc_root is what you need.

Think about virt. servers on apache, then your have more than one doc_root on the same machine

(install a virt. client with ubuntu on your windows server and check how it works on Linux Wink)


Last blog : A new Wordpress theme for our blog
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #2 on: May 22, 2009, 01:44:56 pm »

I'm not using a virtual server now.  I'm simply using the <Directory "C:......">.  It must be a physical problem, or is it?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 22, 2009, 01:47:42 pm »

I'm not using a virtual server now.  I'm simply using the <Directory "C:......">.  It must be a physical problem, or is it?

maybe you forgot to enable PHP? Smiley

what tutorial do you used for the WAMP setup?


Last blog : A new Wordpress theme for our blog
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #4 on: May 22, 2009, 01:57:07 pm »

Sorry.  I'm new to the whole server process.  I've installed Apache, MySql and Apache.  I've tested a couple of scripts to check everything works fine, (mysql connection tests etc), and everything is fine but this site simply doesn't work. 

Jim.
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #5 on: May 22, 2009, 02:09:12 pm »

I used a tutorial from a book a couple of months ago. It connects to a database fine and all my other scripts work fine too, but this site simply won't work.  Do I need to look at an advanced tutorial?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: May 22, 2009, 02:17:15 pm »

maybe it's the port? what is in your log files?


Last blog : A new Wordpress theme for our blog
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #7 on: May 22, 2009, 02:33:42 pm »

My access log states:

192.168.0.6 - - [22/May/2009:12:17:50 +0100] "GET /index.php HTTP/1.1" 200 537
192.168.0.6 - - [22/May/2009:12:17:50 +0100] "GET /favicon.ico HTTP/1.1" 302 220
192.168.0.6 - - [22/May/2009:12:17:50 +0100] "GET /favicon.ico/ HTTP/1.1" 200 537
192.168.0.6 - - [22/May/2009:12:21:54 +0100] "GET /index.php HTTP/1.1" 200 537
192.168.0.6 - - [22/May/2009:12:21:54 +0100] "GET /favicon.ico HTTP/1.1" 302 220
192.168.0.6 - - [22/May/2009:12:21:54 +0100] "GET /favicon.ico/ HTTP/1.1" 200 537
192.168.0.6 - - [22/May/2009:12:27:47 +0100] "GET /index.php HTTP/1.1" 200 537
192.168.0.6 - - [22/May/2009:12:27:47 +0100] "GET /favicon.ico HTTP/1.1" 302 220
192.168.0.6 - - [22/May/2009:12:27:48 +0100] "GET /favicon.ico/ HTTP/1.1" 200 537

I've looked up favicon.ico.  It states that when a browser is enabled it looks for an icon at its root.  I've found a website that generates favicon.ico called favicon CC.  If I create an icon where exactly in my site does it go?

My error log states errors relating to the code and nothing else.

Jim
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #8 on: May 22, 2009, 02:40:00 pm »

The reason why the code is generating errors is because the site needs to be in the root, which it is.  So any help will be most usefull.

Jim.
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #9 on: May 22, 2009, 02:54:25 pm »

Scrub the last request regarding favicon icons as I've just generated one, copied it into my root directory.  The only thing that's changes in my access log is that it only states it obce. I'm guessing it must look for it in the browser first then looks at the root directory.

To remind you all again.  My site will only work if it's in the root directory.  Due to the way it maps its own folders and generates URLs on-the-fly.  It's in the root of my site.  I've checked my phpinfo and everything matches. Does anyone know what might be the problem?

Jim.
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #10 on: May 22, 2009, 03:09:52 pm »

I need GD support on my server.  Does anyone know how I do this?  I'm using Apache 2.2 and PHP5.

Jim.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: May 22, 2009, 03:16:20 pm »

Jim,

I don't think that will work for you.
Each server config is different and actually I can't see what's wrong after all you have posted.

I remember me some time ago that I tried to run a WAMp config and must say I tried several how-to articles and one of them worked.
GD is enabled by default PHP (just enable the extension)

but maybe you should start over with a clean install check one of these links:
http://www.google.com/search?source=ig&hl=en&rlz=&=&q=how-to+install+a+wamp+server&btnG=Google+Search&aq=f&oq=

Your previous problem was solved by installing mod_rewrite, while people looking here after your code (you get my point here?)


Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5660
45593 credits
Members referred : 3



« Reply #12 on: May 22, 2009, 03:34:46 pm »

What error you get from php?

if you create a php file and run this:

Code:
<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>


you get the correct value?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #13 on: May 22, 2009, 04:09:27 pm »

Olaf,

I installed WAMP, however, when I install it and attempt to turn it on an error appears stating:

'This application has failed to start because OCI.dll was not found.  Reinstalling the application may fix this problem' Re-instaling the application may fix this problem.

I also get a variety of similiar error messages: libcs.dll, DB2CLI.dll, isqlt09a.dll, iilibapi.dll, libSQLDBC_C.dll, libmonetra.dll, lcrzo.dll all the same.

I've installed it again but the same error message comes up. I've uninstalled Apache 2.2 but not PHP5 and Mysql5.  Do I need to uninstall them?  Silly question but I have a lot of work saved to mysql and I don't want to uninstall it.

Jim.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: May 22, 2009, 04:23:06 pm »

JIm,

WAMP = Windows, Apache, MySQL, PHP

don't use the wamp install program (use one of the how-to's instead)


Last blog : A new Wordpress theme for our blog
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: May 22, 2009, 04:23:58 pm »

btw. we can't debug your errors. Most PHP developer using Linux or Mac computers Wink


Last blog : A new Wordpress theme for our blog
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #16 on: May 22, 2009, 05:19:06 pm »

Olaf,

I've re-installed Apache and PHP etc and There are different errors.  If you know what they are can you tell me?

One error is:

[Fri May 22 15:12:34 2009] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '1' (include_path='.;C:\\php5\\pear') in Unknown on line 0

I did get another error earlier on stating:

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.6 for ServerName

Could this be the problem?

Jim
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #17 on: May 22, 2009, 05:23:37 pm »

I've just checked that it may be because something else is using that port.  Do you know how I can find what is blocking it and then disconnect it?

Jim.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #18 on: May 22, 2009, 05:28:59 pm »

don't configure that this before your machine is not running:

Unknown: Failed opening required '1' (include_path='.;C:\\php5\\pear') in Unknown on line 0

Quote
I've just checked that it may be because something else is using that port.  Do you know how I can find what is blocking it and then disconnect it?

just don't use the different port, default port for apache is 80


Last blog : A new Wordpress theme for our blog
Sandwich Artist
*
Posts: 24
152 credits
Members referred : 0


« Reply #19 on: May 22, 2009, 06:44:05 pm »

Hello all,

Just a quick query.  I've looked at my error file and found that it doesn't like my .inc.php files.

I've added the line:

AddType application/x-httpd-php .inc

In my httpd file.  However when I've looked at my phpinfo() page it doesn't show up. Is this normal?

Jim.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=8795
Tags : <> Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] 2 Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: doc_root
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Mar 21, 2010, 06:07:59 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 44.235
Total Topics: 8.624
Total Members: 8.242
Tutorials : 58
Resources : 929
Designs : 361
Latest Member: crystalbox

32 Guests, 4 Users online :

13 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2010 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.