Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Php problem with apache and mythweb [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Wed Oct 11, 2006 1:39 am    Post subject: Php problem with apache and mythweb [SOLVED] Reply with quote

Hi All,

I am trying to get mythweb going again after an upgrade of both apache and php. I am getting the following error when I try to access my mythweb
page:

Code:

Error at /var/www/localhost/htdocs/mythweb/includes/init.php, line 98:
require_once(includes/db.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required 'includes/db.php' (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/localhost/htdocs/mythweb/includes/init.php on line 98


It seems to be a php issue, but I am not sure what to do next.

Thanks,
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....


Last edited by ebike on Thu Oct 12, 2006 9:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Wed Oct 11, 2006 1:46 am    Post subject: Reply with quote

edit /var/www/localhost/htdocs/mythweb/includes/init.php
Change line 98 into "require_once("db.php");"
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Wed Oct 11, 2006 3:47 am    Post subject: Reply with quote

Wasn't any help I'm afraid .. the error is now:

Code:

Error at /var/www/localhost/htdocs/mythweb/includes/init.php, line 99:
require_once(db.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required 'db.php' (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/localhost/htdocs/mythweb/includes/init.php on line 99


I had a look in the /usr/share/php5 path, and there is nothing.
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Wed Oct 11, 2006 12:01 pm    Post subject: Reply with quote

well if db.php isn't part of mythweb then you'll have to get it somewhere else.
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Wed Oct 11, 2006 8:43 pm    Post subject: Reply with quote

Strange .... it should be a dependancy of mythweb then .. I had a search of portage, and there is no
such animal .. surely someone else has had this problem if that is the case?
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Wed Oct 11, 2006 9:25 pm    Post subject: Reply with quote

Which version are you using?
I've been looking at it but the latest version doesn't even mention a db.php
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Thu Oct 12, 2006 12:41 am    Post subject: Reply with quote

Version is www-apps/mythweb-0.20_p11329, what version are you using?
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Thu Oct 12, 2006 1:29 am    Post subject: Reply with quote

The same one.

Have you tried to remerge it yet?
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Thu Oct 12, 2006 4:25 am    Post subject: Reply with quote

Ok, I think I have found the issue. I had an older version of apache, I re-emerged a newer version and I don't get that error any more. However I now have a new error:
Code:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at 192.168.0.3 Port 80


My relevant section of the /etc/apache2/http.conf file is this:
Code:

<Directory /var/www/localhost/htdocs/mythweb>
    Options FollowSymLinks
    AllowOverride All
</Directory>


That is the only mod I did in that file. Is there anything else I had to do?I changed "AllowOverride none" to "All" as per
the mythweb howto, and set the directory path.

Many Thanks.
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
drvik
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2004
Posts: 110
Location: Adelaide, South Australia

PostPosted: Thu Oct 12, 2006 4:55 am    Post subject: Reply with quote

I was having similar issues last night and followed the instructions from the gentoo wiki to successfully get mythweb running...

http://gentoo-wiki.com/HOWTO_Setup_MythTV#mythweb

also don't forget to restart the apache server everytime you make a change....

drvik
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Thu Oct 12, 2006 7:20 am    Post subject: Reply with quote

what use flags did you use for php? There is one use flag in the example that doesn't seem to be used now, it is "dba"
When I have a look at the available useflags there is a "dbase" one, I wonder if this replaces "dba".

I followed the instructions and am back to the original error. I am now trying to compile php with the "dbase" useflag to
see if that does the trick.

And yes, I allways restart apache2 after every change I make.
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
drvik
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2004
Posts: 110
Location: Adelaide, South Australia

PostPosted: Thu Oct 12, 2006 12:32 pm    Post subject: Reply with quote

Quote:
bigfoot ~ # emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] dev-lang/php-5.1.6-r6 USE="apache apache2 berkdb bzip2 cli crypt doc gd gdbm ipv6 mysql ncurses nls pcre posix readline reflection session spl ssl threads truetype unicode xml zlib (-adabas) -bcmath (-birdstep) -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path (-empress) (-empress-bcs) (-esoob) -exif -fastbuild (-fdftk) (-filepro) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp -gd-external -gmp -hardenedphp -hash -hyperwave-api -iconv -imap (-informix) -inifile -interbase -iodbc -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql -mysqli -oci8 (-oci8-instant-client) -odbc -pcntl -pdo -pdo-external -pic -postgres -qdbm -recode -sapdb -sasl -sharedext -sharedmem -simplexml -snmp -soap -sockets (-solid) -spell -sqlite (-sybase) (-sybase-ct) -sysvipc -tidy -tokenizer -vm-goto -vm-switch -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip" 0 kB


this is the package currently working in my system... rechecked it while i was at work today....

drvik
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Thu Oct 12, 2006 7:37 pm    Post subject: Reply with quote

Hi,

Apart from unicode, I have the same flags as you. Looks like the problem is elsewhere.

I will try recompiling apache and mythweb to see if that makes any difference.

Cheers,
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Thu Oct 12, 2006 9:04 pm    Post subject: Reply with quote

Ok, it is working now. The recompile of apache and mythweb after playing with the php settings did the trick.
I had to modify the .htaccess with permissions for my database, but once that was done it was all sweet.

Nice to have mythweb access from work again!
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
drvik
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2004
Posts: 110
Location: Adelaide, South Australia

PostPosted: Fri Oct 13, 2006 7:22 am    Post subject: Reply with quote

Don't you just love mythweb! It's nice to see the look on peoples faces when you show the concept of remotely administering your multimedia centre...

drvik
Back to top
View user's profile Send private message
GlenCollins
n00b
n00b


Joined: 11 Apr 2006
Posts: 53
Location: Australia

PostPosted: Tue Dec 18, 2007 10:25 am    Post subject: Reply with quote

I concur,

I had the same issue, and I think I did the same thing as you ebike (wasn't quite sure from your post exactly what you did, so just confirming for others) and that was changing dba to the dbase USE flag for PHP.

The How To WIKI has been adjusted also.

Thanks for tracking down the issue ebike.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum