I am having a hard time setting this programme up... I installed RH7 with apache and it looks like perl5 and php3 and php4 are running/installed. but when i browse to the index.phtml page but going http://server.com/phpix/index.phtml i get this
\n"; $colcounter++; } for ($x = $start ; $x < $start+$items_per_page and $filelist[$x] ; $x++)
this is only the beginning, it goes on for a page or two... What am i missing????
Thanks in advance.
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sounds like you don't have apache setup to recognize phtml files as html and not php.
In your etc/httpd/conf/httpd.conf (at least I think its that for RH7.0) check for this line in your config (back it up before you edit it..)
AddType application/x-httpd-php .phtml
if it isn't there add it under the addtype section and restart your httpd daemon
also add the entry index.phtml on the end of the DirectoryIndex line.
If THAT doesn't work make sure php is running at all by creating a test file called test.php and in it add this one line:
<?phpinfo()?>
save it in your web path and browse to it. It should spew out all sorts of good stuff about your php setup. If it justs shows <?phpinfo()?> printed then something is wrong with your php install..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks like i have no php or perl for that matter.... i dont get a response from using test.php . my httpd.conf has these lines :-
<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>
<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
/*********************/
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
# The following is for PHP3:
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
# The following is for PHP/FI (PHP2):
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
I cannot find any other HAVE_PHP or any HAVE_??? variables(???) in httpd.conf.... I think i need some line that 2enables HAVE_PHP but I am not an apache guru and dont know much about how apache modules work.
If you could supply the lines that enable PHP I should be able to get the rest of it going.
I would really like to get this photo pix going because it does exactly what I want it to.
Ta.
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
search your system to see if you have the libphp4.so module. if you have apache installed from an RH rpm then it should be in the /usr/lib/apache folder. This is the big kahuna module file. No module No Workie.(at least for php4)
BACKUP your http.conf
if the module is there then add this line to the extra modules list:
LoadModule php4_module modules/libphp4.so
add this to the AddModule List:
AddModule mod_php4.c
Finally you need to add the following lines to the AddType Section (By default there should already be a tar entry here...). Add these lines below the tar entry
Thanks for the insight of what i have to do....
It looks like i need to install mod_perl and php support.
Once I have this figured out I will come back here and try the suggestions above.
Many thanks for tracing down what was missing.
P.S. If you are able to supply me with easy to follow instructions on how to install mod_perl and libphp4,etc , then update apache 1.3.12 (what im using) for this to work it would be appreciated.
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I finally managed to get php installed and mysql and apxs... oh my god, what a hassle. but anyway .....
I get the photo album page, BUT.... I get in the album border this nice little snippet :-
convert: Unable to open file (/var/www/html/phpix/albums/Sample Album/A-10__scaled_120.jpg) [Permission denied].
Warning: Unable to open /var/www/html/phpix/albums/Sample Album/A-10__scaled_120.jpg in /var/www/html/phpix/index.phtml on line 103
My idea is that convert isn't saving/working ( I have no A-10__scaled.120.jpg file in sample dir).
Line 103 has:
$thumbsize = GetImageSize($thumbfile);
OR GetImageSize function is not available.
I am soooo very eager to get this going now.
Thanks fer alll ya help
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sounds like (and I've been wrong everytime so far.. :0-> ..
your permissions are wrong on the album folder. phpix needs to have rights to write to the album folder to create the thumbnails:
you need to change the owner and group of your albums folder. If you are running apache then the default owner is nobody try this
cd to phpix (whatever your phpix root dir is called)
chgrp -R nobody albums (or the name of your pic folder)
chown -R nobody albums
make sure the folders when you do a ls -la have as owner and group nobody.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That part confused me alittle bit. In that httpd.conf file it tell apache what extensions to use for php. As a default it looks for .php and .php3. With phpix it uses a weird extension (have no idea why) so you have to add a line in that file that says use PHP for .phtml files. My section looks like this:
That fixed it so you Apache knows how to process the html files but now you have to make it so apache will load index.phtml as a default. Below is the line I have in my file.
I am having a hard time setting this programme up... I installed RH7 with apache and it looks like perl5 and php3 and php4 are running/installed. but when i browse to the index.phtml page but going http://server.com/phpix/index.phtml i get this
\n"; $colcounter++; } for ($x = $start ; $x < $start+$items_per_page and $filelist[$x] ; $x++)
this is only the beginning, it goes on for a page or two... What am i missing????
Thanks in advance.
Mark
note:: this is not the actual address. I am testing on home machine. :)
sounds like you don't have apache setup to recognize phtml files as html and not php.
In your etc/httpd/conf/httpd.conf (at least I think its that for RH7.0) check for this line in your config (back it up before you edit it..)
AddType application/x-httpd-php .phtml
if it isn't there add it under the addtype section and restart your httpd daemon
also add the entry index.phtml on the end of the DirectoryIndex line.
If THAT doesn't work make sure php is running at all by creating a test file called test.php and in it add this one line:
<?phpinfo()?>
save it in your web path and browse to it. It should spew out all sorts of good stuff about your php setup. If it justs shows <?phpinfo()?> printed then something is wrong with your php install..
It looks like i have no php or perl for that matter.... i dont get a response from using test.php . my httpd.conf has these lines :-
<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>
<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
/*********************/
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
# The following is for PHP3:
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
# The following is for PHP/FI (PHP2):
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
I cannot find any other HAVE_PHP or any HAVE_??? variables(???) in httpd.conf.... I think i need some line that 2enables HAVE_PHP but I am not an apache guru and dont know much about how apache modules work.
If you could supply the lines that enable PHP I should be able to get the rest of it going.
I would really like to get this photo pix going because it does exactly what I want it to.
Ta.
Mark
search your system to see if you have the libphp4.so module. if you have apache installed from an RH rpm then it should be in the /usr/lib/apache folder. This is the big kahuna module file. No module No Workie.(at least for php4)
BACKUP your http.conf
if the module is there then add this line to the extra modules list:
LoadModule php4_module modules/libphp4.so
add this to the AddModule List:
AddModule mod_php4.c
Finally you need to add the following lines to the AddType Section (By default there should already be a tar entry here...). Add these lines below the tar entry
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
save the file and restart the apache daemon and life should be good (or you will get a heinous error message saying the apache server won't start...)
hope this helps.
Thanks for the insight of what i have to do....
It looks like i need to install mod_perl and php support.
Once I have this figured out I will come back here and try the suggestions above.
Many thanks for tracing down what was missing.
P.S. If you are able to supply me with easy to follow instructions on how to install mod_perl and libphp4,etc , then update apache 1.3.12 (what im using) for this to work it would be appreciated.
Mark
You might try this...
Already had everything working but for the price and your experience level this might do the trick for you...
http://www.abriasoft.com/
I finally managed to get php installed and mysql and apxs... oh my god, what a hassle. but anyway .....
I get the photo album page, BUT.... I get in the album border this nice little snippet :-
convert: Unable to open file (/var/www/html/phpix/albums/Sample Album/A-10__scaled_120.jpg) [Permission denied].
Warning: Unable to open /var/www/html/phpix/albums/Sample Album/A-10__scaled_120.jpg in /var/www/html/phpix/index.phtml on line 103
My idea is that convert isn't saving/working ( I have no A-10__scaled.120.jpg file in sample dir).
Line 103 has:
$thumbsize = GetImageSize($thumbfile);
OR GetImageSize function is not available.
I am soooo very eager to get this going now.
Thanks fer alll ya help
Mark
sounds like (and I've been wrong everytime so far.. :0-> ..
your permissions are wrong on the album folder. phpix needs to have rights to write to the album folder to create the thumbnails:
you need to change the owner and group of your albums folder. If you are running apache then the default owner is nobody try this
cd to phpix (whatever your phpix root dir is called)
chgrp -R nobody albums (or the name of your pic folder)
chown -R nobody albums
make sure the folders when you do a ls -la have as owner and group nobody.
Sweet as ...
All working.. was some rights issue with the folder I just need to fine tune it now.
thanks alot.
It's a great piece of software.
Mark :)
I have someone using the phpix prog now.
@ http://www.rotornz.com
Thanks all.
That part confused me alittle bit. In that httpd.conf file it tell apache what extensions to use for php. As a default it looks for .php and .php3. With phpix it uses a weird extension (have no idea why) so you have to add a line in that file that says use PHP for .phtml files. My section looks like this:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .inc
AddType application/x-httpd-php .phtml
That fixed it so you Apache knows how to process the html files but now you have to make it so apache will load index.phtml as a default. Below is the line I have in my file.
DirectoryIndex index.html index.html index.php index.php3 index.phtml
I don't know what your using to edit your file by it's a pretty big file so use something that has search ability or you'll be there all day.
Good Luck