View previous topic :: View next topic |
Author |
Message |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
|
Back to top |
|
 |
Pestlett n00b


Joined: 26 Nov 2003 Posts: 19 Location: Liverpool, UK
|
Posted: Thu Apr 05, 2007 1:10 pm Post subject: |
|
|
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 |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Thu Apr 05, 2007 1:12 pm Post subject: |
|
|
How can i tell emerge to use other mirror..? |
|
Back to top |
|
 |
Pestlett n00b


Joined: 26 Nov 2003 Posts: 19 Location: Liverpool, UK
|
Posted: Thu Apr 05, 2007 1:28 pm Post subject: |
|
|
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 |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Thu Apr 05, 2007 3:01 pm Post subject: |
|
|
Pestlett wrote: | In make.conf put GENTOO_MIRRORS="insert a list of mirrors here" that should do the trick |
Thanks man... |
|
Back to top |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Thu Apr 05, 2007 3:09 pm Post subject: |
|
|
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 © 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 |
|
 |
Pestlett n00b


Joined: 26 Nov 2003 Posts: 19 Location: Liverpool, UK
|
Posted: Thu Apr 05, 2007 3:38 pm Post subject: |
|
|
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 |
|
 |
matze_na n00b

Joined: 04 Apr 2007 Posts: 54 Location: Germany
|
Posted: Thu Apr 05, 2007 3:41 pm Post subject: |
|
|
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 |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Thu Apr 05, 2007 3:57 pm Post subject: |
|
|
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 |
|
 |
matze_na n00b

Joined: 04 Apr 2007 Posts: 54 Location: Germany
|
Posted: Thu Apr 05, 2007 4:11 pm Post subject: |
|
|
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 |
|
 |
Pestlett n00b


Joined: 26 Nov 2003 Posts: 19 Location: Liverpool, UK
|
Posted: Thu Apr 05, 2007 4:15 pm Post subject: |
|
|
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 |
|
 |
Pestlett n00b


Joined: 26 Nov 2003 Posts: 19 Location: Liverpool, UK
|
Posted: Thu Apr 05, 2007 4:17 pm Post subject: |
|
|
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 |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Thu Apr 05, 2007 4:31 pm Post subject: |
|
|
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 |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Thu Apr 05, 2007 4:51 pm Post subject: |
|
|
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 |
|
 |
seifn06 Tux's lil' helper


Joined: 19 Sep 2004 Posts: 90 Location: Lowell, Michigan
|
Posted: Thu Apr 05, 2007 7:31 pm Post subject: |
|
|
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 |
|
 |
matze_na n00b

Joined: 04 Apr 2007 Posts: 54 Location: Germany
|
|
Back to top |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
|
Back to top |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
|
Back to top |
|
 |
Pestlett n00b


Joined: 26 Nov 2003 Posts: 19 Location: Liverpool, UK
|
Posted: Fri Apr 06, 2007 11:27 am Post subject: |
|
|
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 |
|
 |
ariesow n00b

Joined: 29 Mar 2007 Posts: 65 Location: Malaysia
|
Posted: Sat Apr 07, 2007 2:45 am Post subject: |
|
|
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 |
|
 |
|