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:
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 )
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:
Posts: 6690
34708 credits Members referred : 374
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:
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)
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:
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)