Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to emerge apache
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
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 1:01 pm    Post subject: Unable to emerge apache Reply with quote

I can seem to emerge apache, with the following message. Is there any other ways to install it ?

=============================Error Message================================

>>> Downloading http://dev.gentoo.org/~vericgar/dist/apache/gentoo-apache-2.0.58-20060515.tar.bz2
--20:59:07-- http://dev.gentoo.org/~vericgar/dist/apache/gentoo-apache-2.0.58-20060515.tar.bz2
=> `/usr/portage/distfiles/gentoo-apache-2.0.58-20060515.tar.bz2'
Resolving dev.gentoo.org... 140.211.166.183
Connecting to dev.gentoo.org|140.211.166.183|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
20:59:07 ERROR 404: Not Found.

=======================================================================

Please help :(
Back to top
View user's profile Send private message
Pestlett
n00b
n00b


Joined: 26 Nov 2003
Posts: 19
Location: Liverpool, UK

PostPosted: Thu Apr 05, 2007 1:10 pm    Post subject: Reply with quote

Can't you try using another mirror I always use

ftp://mirrors.blueyonder.co.uk/mirrors/gentoo

it always works for me. Sorry I couldn't be of any more help.
_________________
"Well ---- me, A ---- ing wizard. I hate ---- ing wizards!"
"You shouldn't ---- them, then."
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 1:12 pm    Post subject: Reply with quote

Pestlett wrote:
Can't you try using another mirror I always use

ftp://mirrors.blueyonder.co.uk/mirrors/gentoo

it always works for me. Sorry I couldn't be of any more help.


How can i tell emerge to use other mirror..?
Back to top
View user's profile Send private message
Pestlett
n00b
n00b


Joined: 26 Nov 2003
Posts: 19
Location: Liverpool, UK

PostPosted: Thu Apr 05, 2007 1:28 pm    Post subject: Reply with quote

In make.conf put GENTOO_MIRRORS="insert a list of mirrors here" that should do the trick
_________________
"Well ---- me, A ---- ing wizard. I hate ---- ing wizards!"
"You shouldn't ---- them, then."
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 3:01 pm    Post subject: Reply with quote

Pestlett wrote:
In make.conf put GENTOO_MIRRORS="insert a list of mirrors here" that should do the trick


Thanks man...
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 3:09 pm    Post subject: Reply with quote

Dear all,

I have emerge all necessary for setting up squirrelmail, those are PHP and Apache.

I have run "./configure" in "/var/www/localhost/htdocs/squirrelmail/".

After saved all the configuration, a message :

==============message===================

You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!

=======================================

The at my browser, i type http://xxx.xxx.xxx.xxx/squirrelmail/src/configtest.php, and the following appear in my browser.

====================================browser===================================
<?php

/**
* SquirrelMail configtest script
*
* @copyright &copy; 2003-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: configtest.php,v 1.9.2.24 2006/10/07 11:58:42 tokul Exp $
* @package squirrelmail
* @subpackage config
*/

/************************************************************
* NOTE: you do not need to change this script! *
* If it throws errors you need to adjust your config. *
************************************************************/

function do_err($str, $exit = TRUE) {
global $IND;
echo '<p>'.$IND.'<font color="red"><b>ERROR:</b></font> ' .$str. "</p>\n";
if($exit) {
echo '</body></html>';
exit;
}
}

ob_implicit_flush();
/** @ignore */
define('SM_PATH', '../');

/*
* Load config before output begins.

"bla, bla bla and bla"

"untill"

do_err($dbtype.' database support not present!');
}
}
} else {
do_err('Required PHP PEAR DB support is not available. Is PEAR installed and is the
include path set correctly to find <tt>DB.php</tt>? The include path is now:
"<tt>' . ini_get('include_path') . '</tt>".');
}
} else {
echo $IND."not using database functionality.<br />\n";
}
?>

<p>Congratulations, your SquirrelMail setup looks fine to me!</p>

<p><a href="login.php">Login now</a></p>

</body>
</html>
<?php
// vim: et ts=4
?>

==============================End Browser================================

I suppose my browser should view it as a page, but why is this happened..??

May i know what should i look for to correct this...?
Back to top
View user's profile Send private message
Pestlett
n00b
n00b


Joined: 26 Nov 2003
Posts: 19
Location: Liverpool, UK

PostPosted: Thu Apr 05, 2007 3:38 pm    Post subject: Reply with quote

I know it's a silly question, but is the PHP module enabled in the Apache http.conf file? I'm not near MY computer at the moment(and too busy to google it), but it should be near the top of that file. Just remove the commenting character which is a semi-colon.
_________________
"Well ---- me, A ---- ing wizard. I hate ---- ing wizards!"
"You shouldn't ---- them, then."


Last edited by Pestlett on Thu Apr 05, 2007 3:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
matze_na
n00b
n00b


Joined: 04 Apr 2007
Posts: 54
Location: Germany

PostPosted: Thu Apr 05, 2007 3:41 pm    Post subject: Reply with quote

Did you emerge php with apache2-useflag?
Had the same problem a few weeks ago, turned out that php was compiled without the apache2-flag after an update.. dunno why.

Try "emerge -pv php" or use "equery uses php" if you have gentoolkit installed, if the apache2-flag isn't in red color, you'll have to re-emerge php.

Just put this in your /etc/portage/package.use: "dev-lang/php apache2" and re-emerge with "emerge -av php".
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 3:57 pm    Post subject: Reply with quote

Pestlett wrote:
I know it's a silly question, but is the PHP module enabled in the Apache http.conf file? I'm not near MY computer at the moment(and too busy to google it), but it should be near the top of that file. Just remove the commenting character which is a semi-colon.


I just found the httpd.conf in "/etc/apache2/"

Use "more" to browse it but seem there is no php module in it...
i even use "more httpd.conf | grep php"

haha...sorry for bothering you....
Back to top
View user's profile Send private message
matze_na
n00b
n00b


Joined: 04 Apr 2007
Posts: 54
Location: Germany

PostPosted: Thu Apr 05, 2007 4:11 pm    Post subject: Reply with quote

Try "grep -i php" ;)

The only result, though, is the following:

Code:
# Extra Modules
#
# We Include extra .conf files from /etc/apache2/modules.d
# This is used to load things like PHP and mod_ssl.
#
Include /etc/apache2/modules.d/*.conf


So you should have a "/etc/apache2/modules.d/70_mod_php5.conf" or something like that, but there's nothing to enable in the httpd.conf.
If you have that file, or something named similar with php in it, check your php use-flags for apache2, as mentioned above.
Back to top
View user's profile Send private message
Pestlett
n00b
n00b


Joined: 26 Nov 2003
Posts: 19
Location: Liverpool, UK

PostPosted: Thu Apr 05, 2007 4:15 pm    Post subject: Reply with quote

Sorry, I'm not at my computer yet. I'll have a look when I get back home but it might be a while, I am sure it is in there I can't see it being anywhere else. Try matze_na's sugguestion first, from the start that's actually a more logical aproach than mine. If not I'm sure that there will be an Apache and PHP tutorial somewhere on the net, if you just google it, they'll have a section where you can edit the apache conf files that you can just copy and paste that into your source code. I'm sure there is a tutorial in the Gentoo Documentation, if all else fails then I'll have a look when I get back home and give you a definate answer. I'm pretty sure you'll get an answer before then.
_________________
"Well ---- me, A ---- ing wizard. I hate ---- ing wizards!"
"You shouldn't ---- them, then."
Back to top
View user's profile Send private message
Pestlett
n00b
n00b


Joined: 26 Nov 2003
Posts: 19
Location: Liverpool, UK

PostPosted: Thu Apr 05, 2007 4:17 pm    Post subject: Reply with quote

matze_na wrote:
Try "grep -i php" ;)

The only result, though, is the following:

Code:
# Extra Modules
#
# We Include extra .conf files from /etc/apache2/modules.d
# This is used to load things like PHP and mod_ssl.
#
Include /etc/apache2/modules.d/*.conf


So you should have a "/etc/apache2/modules.d/70_mod_php5.conf" or something like that, but there's nothing to enable in the httpd.conf.
If you have that file, or something named similar with php in it, check your php use-flags for apache2, as mentioned above.


Yeah listen to matze_na, it's been a while since I've done any major setting up like that. Great thing about linux once it works, it works...usually. I can't remember enabling php in one file though....
_________________
"Well ---- me, A ---- ing wizard. I hate ---- ing wizards!"
"You shouldn't ---- them, then."
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 4:31 pm    Post subject: Reply with quote

matze_na wrote:
Try "grep -i php" ;)

The only result, though, is the following:

Code:
# Extra Modules
#
# We Include extra .conf files from /etc/apache2/modules.d
# This is used to load things like PHP and mod_ssl.
#
Include /etc/apache2/modules.d/*.conf


So you should have a "/etc/apache2/modules.d/70_mod_php5.conf" or something like that, but there's nothing to enable in the httpd.conf.
If you have that file, or something named similar with php in it, check your php use-flags for apache2, as mentioned above.


For now...i really can not see any thing named similar with php in it, but ssl and ldap....I am emerging the php now with "USE=apache2"
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Thu Apr 05, 2007 4:51 pm    Post subject: Reply with quote

now i finished emerge and get this :

==============================Emerge===================================
To enable php, you need to edit your /etc/conf.d/apache2 file and
* add '-D PHP5' to APACHE2_OPTS.
*
*
* Configuration file installed as
* /etc/apache2/modules.d/70_mod_php5.conf
* You may want to edit it before turning the module on in /etc/conf.d/apache2
*
Apache conf.d file updated. For this change to take effect, you
must restart the Apache webserver using this command:

/etc/init.d/apache2 restart
===========================End Emerge====================================


The i edited the /etc/conf.d/apache2 and is this correct ?

APACHE2_OPTS="-D PHP5"
APACHE2_OPTS="-D DEFAULT_VHOST"


Please advice...although it's a silly thing...
hahaha
Back to top
View user's profile Send private message
seifn06
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2004
Posts: 90
Location: Lowell, Michigan

PostPosted: Thu Apr 05, 2007 7:31 pm    Post subject: Reply with quote

ariesow - you should be able to combine those Apache options into one line like:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP5"


Start or restart Apache with
Code:
# /etc/init.d/apache2 restart


To see if you have PHP working on your system add a file (like "info.php") to your htdocs directory (i.e. /var/www/localhost/htdocs/):
Code:
<?php phpinfo(); ?>


Then point your web browser to that page. You should see a bunch of information about PHP and your system.
Back to top
View user's profile Send private message
matze_na
n00b
n00b


Joined: 04 Apr 2007
Posts: 54
Location: Germany

PostPosted: Thu Apr 05, 2007 7:39 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-551488-highlight-.html

We should concentrate on one thread :D
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Fri Apr 06, 2007 5:30 am    Post subject: Reply with quote

thanks for all the feedback and advice... :P

This topic whall continue in

https://forums.gentoo.org/viewtopic-t-551488-highlight-.html

hehe
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Fri Apr 06, 2007 6:02 am    Post subject: Reply with quote

ariesow wrote:
Pestlett wrote:
Can't you try using another mirror I always use

ftp://mirrors.blueyonder.co.uk/mirrors/gentoo

it always works for me. Sorry I couldn't be of any more help.


How can i tell emerge to use other mirror..?


i get this when emerge :

===================================EMERGE=======================================

Calculating dependencies... done!
>>> Emerging (1 of 2) net-www/apache-2.0.58 to /
>>> Downloading ftp://mirrors.blueyonder.co.uk/mirrors/gentoo/distfiles/gentoo-apache-2.0.58-20060515.tar.bz2
--13:59:51-- ftp://mirrors.blueyonder.co.uk/mirrors/gentoo/distfiles/gentoo-apache-2.0.58-20060515.tar.bz2
=> `/usr/portage/distfiles/gentoo-apache-2.0.58-20060515.tar.bz2'
Resolving mirrors.blueyonder.co.uk... 194.117.143.71, 194.117.143.72, 194.117.143.69, ...
Connecting to mirrors.blueyonder.co.uk|194.117.143.71|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /mirrors/gentoo/distfiles ... done.
==> PASV ... done. ==> RETR gentoo-apache-2.0.58-20060515.tar.bz2 ...
No such file `gentoo-apache-2.0.58-20060515.tar.bz2'.

>>> Downloading http://dev.gentoo.org/~vericgar/dist/apache/gentoo-apache-2.0.58-20060515.tar.bz2
--13:59:56-- http://dev.gentoo.org/~vericgar/dist/apache/gentoo-apache-2.0.58-20060515.tar.bz2
=> `/usr/portage/distfiles/gentoo-apache-2.0.58-20060515.tar.bz2'
Resolving dev.gentoo.org... 140.211.166.183
Connecting to dev.gentoo.org|140.211.166.183|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:59:57 ERROR 404: Not Found.

!!! Couldn't download gentoo-apache-2.0.58-20060515.tar.bz2. Aborting.

====================================END Emerge====================================


Is this comething to do that my office firewall that block the connection ?
Back to top
View user's profile Send private message
Pestlett
n00b
n00b


Joined: 26 Nov 2003
Posts: 19
Location: Liverpool, UK

PostPosted: Fri Apr 06, 2007 11:27 am    Post subject: Reply with quote

No it's probably not your firewall gentoo-apache-2.0.58-20060515.tar.bz2 does not exist on the servers. Try an emerge -sync then try again. Or you could have mistyped the date suffix if you put it in portage.use or something, if so the one below exists.

gentoo-apache-2.0.58-r2-20060726.tar.bz2
_________________
"Well ---- me, A ---- ing wizard. I hate ---- ing wizards!"
"You shouldn't ---- them, then."
Back to top
View user's profile Send private message
ariesow
n00b
n00b


Joined: 29 Mar 2007
Posts: 65
Location: Malaysia

PostPosted: Sat Apr 07, 2007 2:45 am    Post subject: Reply with quote

Pestlett wrote:
No it's probably not your firewall gentoo-apache-2.0.58-20060515.tar.bz2 does not exist on the servers. Try an emerge -sync then try again. Or you could have mistyped the date suffix if you put it in portage.use or something, if so the one below exists.

gentoo-apache-2.0.58-r2-20060726.tar.bz2


Actually forgot to metion that i am not able to run "emerge --sync"...

It will end with "retry timeout"...This is why...
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