Re: Failed opening 'mysql.inc' for inclusion (include_path
- From: Bob <jeep@xxxxxxxxx>
- Date: Thu, 20 Mar 2008 09:52:19 -0700 (PDT)
On Mar 20, 3:46 am, "Álvaro G. Vicario"
<webmasterNOSPAMTHA...@xxxxxxxxxxxxxx> wrote:
*** Bob escribió/wrote (Wed, 19 Mar 2008 11:09:21 -0700 (PDT)):
Im setting up a fedora core 8 web server. Im currently running
everything on another fedora core 6 server (working fine). Ive
installed php 5.2.5 and apache 2.0.63
Im getting the following:
Warning: include_once() [function.include]: Failed opening 'mysql.inc'
for inclusion (include_path='/home/jeff/src/soccer/php_inc') in /home/
http/soc/show.php on line 13
the file, file.inc exists in my include path[...]
180 ROOT fedora /home/jeff/src/soccer/php_inc ls -l
total 20
drwxr-xr-x 2 root root 4096 Mar 19 07:13 ./
drwxr-xr-x 5 root root 4096 Mar 19 07:16 ../
Files and directories under /home/jeff should belong to jeff, not root.
Change their ownership with the chown command (it has a swith to make it
recursive, find it with "man chown").
BTW, Fedora implements a security system called SELinux that can be a pain
in the ass. Just to be sure, disable it (there's a graphical tool for it if
I recall correctly) and try again. But it'd say it's just a simple
permissions issue.
Actually I had to disable selinux because I couldnt log into ssh
several days ago (/etc/selinux/config), so that issue has been taken
care of already (and yes I rebooted too). I dont know what the
selinux
gui name is either, would be good to know for future.
I chown'd all the files to jeff, still no luck. I did check for
permissions problems immediately and thought it was going to be as
simple as that (and maybe I missed something and it will be in the
end,
just havent found it yet).
I added the following to see if php even thought it could get there:
if (!file_exists('/home/jeff/src/soccer/php_inc/mysql.inc'))
{
print "ERROR file_exists issue with PHP<br>";
exit(0);
}
But it doesnt, it prints the ERROR line.
I noticed that php 5.2.4 is installed on my machine, but I also have
built a later version (5.2.5) seperately. I compiled apache with --
enable-so
and I have the correct LoadModule path for libphp. This should not
be a problem if my LoadModule is correct Im assuming. I did try
not configuring apache with --enable-so with no luck either. Its
possible in trying these several things I didnt clean something up
100% and got bad results, but I think I did it right.
I know Im going to find out its something really stupid too. These
things generally are.
.
- Follow-Ups:
- References:
- Failed opening 'mysql.inc' for inclusion (include_path
- From: Bob
- Re: Failed opening 'mysql.inc' for inclusion (include_path
- From: Álvaro G. Vicario
- Failed opening 'mysql.inc' for inclusion (include_path
- Prev by Date: Re: Simple PHP code works with browser - not with command line
- Next by Date: Re: Failed opening 'mysql.inc' for inclusion (include_path
- Previous by thread: Re: Failed opening 'mysql.inc' for inclusion (include_path
- Next by thread: Re: Failed opening 'mysql.inc' for inclusion (include_path
- Index(es):
Relevant Pages
|