Same prob as WinXP but with FreeBSD

Having trouble installing serendipity?
Post Reply
genux
Regular
Posts: 5
Joined: Wed Mar 17, 2004 10:34 am
Location: Antwerp, Belgium

Same prob as WinXP but with FreeBSD

Post by genux »

Hello,

I'm running into the same problem as Kylix but with Freebsd.

I extracted the archive, try to install but all i get is:

"Serendipity installation"

I tried to hit stop with mozilla and IE but i don't get any script output.
I have apache 1.3.26 / php4.2.3 / mysql 3.23.52 / freebsd 4.6.2

When I create .htaccess in the root with Overide all i get an error about incorrect permissions.

Anyone any idea?

Thanks

-benny
genux
Regular
Posts: 5
Joined: Wed Mar 17, 2004 10:34 am
Location: Antwerp, Belgium

Post by genux »

Tried the latest CVS version, still doesn't work

Should I upgrade apache or something?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

genux wrote:Tried the latest CVS version, still doesn't work

Should I upgrade apache or something?
AllowOverride does not work in .htaccess context - it needs to be set in httpd.conf

Please try to edit your serendipity_admin_installer.inc.php file. Look for

Code: Select all

function serendipity_printConfigTemplate($t, $from = false) {
    global $serendipity;

    // If not yet installed, do some magic:
    $abort = false;
    if (IS_installed !== true) {
and replace it with

Code: Select all

function serendipity_printConfigTemplate($t, $from = false) {
    global $serendipity;

    // If not yet installed, do some magic:
    $abort = false;
    if (1 == 2) {
This will bypass the rewrite-detection. If it works after that, please report back as I would like to debug the reason why it's not working for you. Please also give your PHP and Apache version you are using.

Regards,
Garvin.
genux
Regular
Posts: 5
Joined: Wed Mar 17, 2004 10:34 am
Location: Antwerp, Belgium

Post by genux »

Thanks for the reply

I changed the code you suggested and now I can get into the installer.

I also tried with the unchanged code and with
<Directory "/path/to/blog">
AllowOverride
</Directory>
but that gives the same problem.

I'm currently using 1.3.29 and php 4.2.3

I'll try to install it with the code you suggested

-benny
genux
Regular
Posts: 5
Joined: Wed Mar 17, 2004 10:34 am
Location: Antwerp, Belgium

Post by genux »

Tried to install, filled everything in correctly.

Database is ok, but it hangs on
Attemping to write .htaccess file...

Tried every possible owner/permission... still does nothing

Any idea?
genux
Regular
Posts: 5
Joined: Wed Mar 17, 2004 10:34 am
Location: Antwerp, Belgium

Post by genux »

Don't really know how i did it but it's fixed

I installed apache 1.3.29 / php4.3.4
Changed the permissions to 777 www.www on the directory
and it could create the .htaccess file

The cause was maybe something of both worlds...
I'm happy now! Thanks
luke256
Posts: 1
Joined: Fri Mar 19, 2004 11:59 pm

Redhat 9 + apache 2 also

Post by luke256 »

I get this error also ..
:cry:
Im running Redhat 9 with apache 2.
I have had loads of other stuff working on my server. If there was an error message I could prob fix it, but it just hangs. I did the fix to get into the install page, but now it hangs on writing .htaccess. Any one got any ideas.
schnoebe
Posts: 4
Joined: Sun Apr 04, 2004 6:11 am
Location: D/FW US
Contact:

Seeing much the same problem on NetBSD/alpha

Post by schnoebe »

I'm seeing much the same problem on NetBSD. I did try the code change suggested, and got much further, but now it appears to get upset while trying to create the .htaccess file. The last thing in the browser is ``trying to create .htaccess'', and then the box ends.. .htaccess is never created.

Useful information:
NetBSD/alpha 1.6.1
apache 1.3.27
modssl 2.8.12
PHP 4.2.3
(actual text from apache restart: Apache/1.3.27 (Unix) mod_ssl/2.8.12 OpenSSL/0.9.6g FrontPage/5.0.2.2623 mod_throttle/3.1.2 PHP/4.2.3 configured -- resuming normal operations)
PostgreSQL 7.3.1
schnoebe
Posts: 4
Joined: Sun Apr 04, 2004 6:11 am
Location: D/FW US
Contact:

Re: Seeing much the same problem on NetBSD/alpha

Post by schnoebe »

Ok, Using the current CVS snapshot got me going.

As a guess, it might have been something with the re-write engine... Leaving the configuration using ApacheErrors (I think that's what it's called) got me going.
insane66
Regular
Posts: 7
Joined: Sun Apr 04, 2004 7:34 am
Location: Knoxville, TN

Timely Solution

Post by insane66 »

I was trying to figure out why it didnt work for the last couple hours and all the sudden the solution appears....

VERY TIMELY!! THANKS

using RH 9.0

I had updated PHP and MySQL and was about to give up...
insane66
Regular
Posts: 7
Joined: Sun Apr 04, 2004 7:34 am
Location: Knoxville, TN

still have a problem

Post by insane66 »

Ok, so i spoke too soon...

I get into the setup screen when I fill out the form and click the check & save buttton
nothing seems to happen.. just get the blue serendipity installtion screen

I have Apache 2.0.40, PHP 4.3.5, MySQL 4.0.18 on a RH 9.0 system, and the serendipity off the CVS (the "stable" version did nothing)

I have the directory with chmod -R 777 permissions for everything..

No error shows up normally... but in playing with it I occasionally get the first config screen to show back up with this warning at the top...
"Warning: unlink() failed (No such file or directory) in /var/www/html/s9y/serendipity_admin_installer.inc.php on line 187"

and in the apache error_log I occasionally get
"[Sun Apr 04 11:04:51 2004] [error] [client 127.0.0.1] File does not exist: /var/www/html/s9y/serendipity_admin.phpnonexistant"

I dont know anything about PHP soo let me know how I can help you help me fix it ...
Post Reply