Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 02-16-2005, 07:38 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
installation blues

Hi

i'm having some installation problems

- my servver supports PHP and MYSQL
- i uploaded the content of the zip file which i downloaded in to the "public_html" folder of my server
- i edited the file pixelpost.php in the admin-directory and entered the informations for the database/user/password
- i set the attributes for the image- and the thumbnail-directory to 777

BUT when i go to http://www.mywebpage/admin

i am asked for my user name and password which i enter to login but nothing happens!!!

did i miss something?

Regards

dua_tao
Reply With Quote
  #2  
Old 02-16-2005, 07:11 PM
Connie
Guest
 
Posts: n/a
please tell us the URL of your installation that we can check;=)
Reply With Quote
  #3  
Old 02-16-2005, 09:21 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Re: installation blues

Quote:
Originally Posted by dua_tao
BUT when i go to http://www.mywebpage/admin
i am asked for my user name and password which i enter to login but nothing happens!!!
That's the exact problem I faced when I was trying to install a pixelpost on my localhost with windows NT os. My problem was with cookies which pixelpost was not able to set them. If you did not permit the pixelpost to set cookies at your website you would not be able to login. In fact I don't like this behavior but that's what it is.
to see if that's your problem too you could check permission to set cookies in your browser in the privacy section. OR you can change the admin/index.php TEMPORARY at about line 274 which says

Code:
if($login == "true") {
    ?>
    <div id="caption">
    Welcome to Pixelpost Admin - You need to login.
    </div>
    <div id='jcaption'>
    Login sets a cookie
    </div>
    <div id="content">
by modifying the firs line to
Code:
/* temporary commented */ // if($login == "true") {
if($login == "false") {
    ?>
    <div id="caption">
    Welcome to Pixelpost Admin - You need to login.
    </div>
    <div id='jcaption'>
    Login sets a cookie
    </div>
    <div id="content">
Then if you log on safely and all is ok there is a problem with setcookie. all about you browser settings. (hopefully)
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 02-17-2005, 12:35 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
Raminia - thanks for your help!

but now that i've changed that line, i don't have to log in at all! it just goes atright to the admin table, i also seem to have some problems uploading my photos as an error msg about tables shows up.

Connie - here is the url http://www.ahpooi.com/main/admin/index.php


thanks for the quick replies
Reply With Quote
  #5  
Old 02-17-2005, 06:40 AM
Connie
Guest
 
Posts: n/a
Quote:
Warning: Cannot modify header information - headers already sent by (output started at /home/ahpooi2/public_html/main/admin/pixelpost.php:47) in /home/ahpooi2/public_html/main/admin/index.php on line 41
please have a look first at the admin/index.php

the message above shows that there is an error in the script, this message comes when there are some empty lines sent before the webpage is "really" startet

there must be something really wrong in the pixelpost.php; please show us this file (with database information empty for sure)
Reply With Quote
  #6  
Old 02-17-2005, 08:25 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
hi connie here is the pixelpost.php file

Quote:
<script language="php">

/*

Pixelpost version 1.3
admin/pixelpost.php version 1.4

Pixelpost www: http://www.pixelpunk.se/software/
Contact: pixelpost@pixelpunk.se
Copyright (c) 2004 shapestyle graphic design + code<http://www.shapestyle.se>
License: http://www.gnu.org/copyleft/gpl.html

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

*/

// database variables - this is info you've received from you hosting service
// those are needed for the script to connect and use MySQL

$pixelpost_db_host = "localhost"; // database host, often "localhost"
$pixelpost_db_user = "ahpooi2_ahpooi2"; // database user
$pixelpost_db_pass = " "; // database user password
$pixelpost_db_pixelpost = " "; // database

$pixelpost_db_prefix = "pixelpost_"; // table prefix, leave as is unless you want to install multiple blogs on the same database

// pixelpost version
$version = "WW91IGFyZSBydW5uaW5nIHZlcnNpb24gPGI+MS4zPC9iPiBvZ iBQaXhlbHBvc3QuIFJlbGVhc2VkIDE2IG5vdmVtYmVyIDIwMDQ u";

</script>
i've just removed the database password and the name of the database.

Regards

dua_tao
Reply With Quote
  #7  
Old 02-17-2005, 04:10 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Hi! I have solution for you. read this to end.

I forgot to mention that by that change I've mentioned the login page is eliminated and that was the reason that I told you to remove it temporary.

the warning message
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/ahpooi2/public_html/main/admin/pixelpost.php:48) in /home/ahpooi2/public_html/main/admin/index.php on line 41
is not something very wrong but it is a bug in the admin/index.php file! I've search the web deeply for this warning when I was installing my local pixelpost. I found two main causes for this
1) issuing echo or some other function before <header> tag of the produced html. (it says " Cannot modify header information - headers already sent " )

2) some other error in the code that is not directly related to it.

BTW, for php code to be functional in the on the website and not at the developing stage you should add
Code:
error_reporting(0);
at the top of admin/index.php and admin/pixelpost.php . main index.php has this code on the top already.

I've done this and it's all ok on my local server. you can find my long struggle for finding out the problem here:
http://www.pixelpost.org/forum/viewt...amp;highlight=
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:06 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs