DreamHost Discussion Board http://discussion.dreamhost.com/postlist.pl?Board=forum_programming Posts in the "forum_programming" forum at the DreamHost Discussion Board! Sat, 07 Nov 2009 06:35:03 -0800 http://discussion.dreamhost.com/ en Re: Dreamhost PS Manager (version 0.2.6) http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123792&page=0&view=collapsed&sb=5&o=14&vc=1#Post123792 Fri, 06 Nov 2009 12:01:19 -0800 tekfrank forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123792&page=0&view=collapsed&sb=5&o=14&vc=1#Post123792 Post Reply?

I am trying the new version, and it seems to work perfectly.
Thanks again.


]]> Post Reply?

I am trying the new version, and it seems to work perfectly.
Thanks again.


]]> PHP gallery problems http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123754&page=0&view=collapsed&sb=5&o=14&vc=1#Post123754 Thu, 05 Nov 2009 16:18:04 -0800 Sebastiang forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123754&page=0&view=collapsed&sb=5&o=14&vc=1#Post123754 Post Reply?

So im trying to create a PHP gallery. And I want the thumbnail (links) to display the actual image beside it. Now so far I have that part working. But the issue is when I go that page in the first place. I want the first image to already be displayed and then I can continue clicking the others. But it simply doesn't work. I've tried a number of different variations and I get a number of different problems...

Heres my code:

<ul>
<li> <a href="?pic=Album" ><img src="Images/Album.jpg" alt="Album Cover" title="Album Cover" height="75px" width="75px" /></a></li>
<li> <a href="?pic=AlbumCD"><img src="Images/AlbumCD.jpg" alt="AlbumCD" title="AlbumCD" height="75px" width="75px" /></a></li>
<li> <a href="?pic=Logos"><img src="Images/Logos.jpg" alt="Logo Designs" title="Logo Designs" height="75px" width="75px" /></a></li>
<li> <a href="?pic=SnowboardDeck"><img src="Images/SnowboardDeck.jpg" alt="Snowboard Deck" title="Snowboard Deck" height="75px" width="75px" /></a></li>
</ul>

<?php
$pic = $HTTP_GET_VARS['pic'];
if(!$pic) {$pic='Album';}?>

<p id="imgs"><img src="Images/<?php echo $pic; ?>.jpg" alt="example" title="example" height="450px" width="450px"/></p>



Its been really frustrating me and I would appreciate any help!

Edited by Sebastiang on 11/05/09 04:19 PM (server time).

]]>
Post Reply?

So im trying to create a PHP gallery. And I want the thumbnail (links) to display the actual image beside it. Now so far I have that part working. But the issue is when I go that page in the first place. I want the first image to already be displayed and then I can continue clicking the others. But it simply doesn't work. I've tried a number of different variations and I get a number of different problems...

Heres my code:

<ul>
<li> <a href="?pic=Album" ><img src="Images/Album.jpg" alt="Album Cover" title="Album Cover" height="75px" width="75px" /></a></li>
<li> <a href="?pic=AlbumCD"><img src="Images/AlbumCD.jpg" alt="AlbumCD" title="AlbumCD" height="75px" width="75px" /></a></li>
<li> <a href="?pic=Logos"><img src="Images/Logos.jpg" alt="Logo Designs" title="Logo Designs" height="75px" width="75px" /></a></li>
<li> <a href="?pic=SnowboardDeck"><img src="Images/SnowboardDeck.jpg" alt="Snowboard Deck" title="Snowboard Deck" height="75px" width="75px" /></a></li>
</ul>

<?php
$pic = $HTTP_GET_VARS['pic'];
if(!$pic) {$pic='Album';}?>

<p id="imgs"><img src="Images/<?php echo $pic; ?>.jpg" alt="example" title="example" height="450px" width="450px"/></p>



Its been really frustrating me and I would appreciate any help!

Edited by Sebastiang on 11/05/09 04:19 PM (server time).

]]>
Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123734&page=0&view=collapsed&sb=5&o=14&vc=1#Post123734 Thu, 05 Nov 2009 05:50:25 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123734&page=0&view=collapsed&sb=5&o=14&vc=1#Post123734 Post Reply?

Thank you very much sXi, the script worked.

Very good!!!!

]]> Post Reply?

Thank you very much sXi, the script worked.

Very good!!!!

]]> Re: PHP BBCode http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123733&page=0&view=collapsed&sb=5&o=14&vc=1#Post123733 Thu, 05 Nov 2009 05:46:45 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123733&page=0&view=collapsed&sb=5&o=14&vc=1#Post123733 Post Reply?

Hi Chris,

Adding the PECL version into your own PHP is *really easy* on DreamHost


After compiling PHP, (pseudocode):

wget $bbcode.tgz
tar -xzf $bbcode.tgz
cd $bbcode
$bindir/phpize
./configure --enable-bbcode
make install
cp $libdir/php/extensions/no-debug-non-zts-20060613/bbcode.so $extdir

Add to your php.ini:

extension_dir = " [ $extdir ] "
extension=bbcode.so

Key for the mess above:

$bbcode = bbCode package version
$bindir = your bin directory
$libdir = your library directory
$extdir = your extensions directory

Big props for investigating the secure route straight up as well. Being security conscious is of paramount importance and will always eradicate any "tangles" that might crop up, rather than "create" them




Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

Hi Chris,

Adding the PECL version into your own PHP is *really easy* on DreamHost


After compiling PHP, (pseudocode):

wget $bbcode.tgz
tar -xzf $bbcode.tgz
cd $bbcode
$bindir/phpize
./configure --enable-bbcode
make install
cp $libdir/php/extensions/no-debug-non-zts-20060613/bbcode.so $extdir

Add to your php.ini:

extension_dir = " [ $extdir ] "
extension=bbcode.so

Key for the mess above:

$bbcode = bbCode package version
$bindir = your bin directory
$libdir = your library directory
$extdir = your extensions directory

Big props for investigating the secure route straight up as well. Being security conscious is of paramount importance and will always eradicate any "tangles" that might crop up, rather than "create" them




Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: PHP BBCode http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123721&page=0&view=collapsed&sb=5&o=14&vc=1#Post123721 Thu, 05 Nov 2009 00:02:43 -0800 ichsie forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123721&page=0&view=collapsed&sb=5&o=14&vc=1#Post123721 Post Reply?

Give up before you get tangled into the more issues that you will have created for yourself.

DreamHost Promotion Codes
Make a Website ]]> Post Reply?

Give up before you get tangled into the more issues that you will have created for yourself.

DreamHost Promotion Codes
Make a Website ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123698&page=0&view=collapsed&sb=5&o=14&vc=1#Post123698 Wed, 04 Nov 2009 18:58:03 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123698&page=0&view=collapsed&sb=5&o=14&vc=1#Post123698 Post Reply?

It appears the script wasn't in UNIX format on your server



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

It appears the script wasn't in UNIX format on your server



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123695&page=0&view=collapsed&sb=5&o=14&vc=1#Post123695 Wed, 04 Nov 2009 18:07:48 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123695&page=0&view=collapsed&sb=5&o=14&vc=1#Post123695 Post Reply?

my account type is
Shell account - allows SFTP/FTP plus ssh access.

in putty session add kurumimhost.com and port 22, connection type: SSH


]]> Post Reply?

my account type is
Shell account - allows SFTP/FTP plus ssh access.

in putty session add kurumimhost.com and port 22, connection type: SSH


]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123689&page=0&view=collapsed&sb=5&o=14&vc=1#Post123689 Wed, 04 Nov 2009 17:39:34 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123689&page=0&view=collapsed&sb=5&o=14&vc=1#Post123689 Post Reply?

You didn't do anything wrong - you don't need to upload anything but the 1k script btw.

From the errors it looks like the shell is messed up or the user doesn't have shell privileges.. which can't be the case if you're actually logged in to shell in the first place.

Check the user in Panel and take a look at it's settings to see what shell type you're using.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

You didn't do anything wrong - you don't need to upload anything but the 1k script btw.

From the errors it looks like the shell is messed up or the user doesn't have shell privileges.. which can't be the case if you're actually logged in to shell in the first place.

Check the user in Panel and take a look at it's settings to see what shell type you're using.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123686&page=0&view=collapsed&sb=5&o=14&vc=1#Post123686 Wed, 04 Nov 2009 17:18:06 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123686&page=0&view=collapsed&sb=5&o=14&vc=1#Post123686 Post Reply?

Thank you for the script!!!

I did upload the files
home/edmar_gomes/ZendFramework-1.9.5-minimal.tar.gz
and
home/edmar_gomes/dh-shzf.sh

but when I typed 'sh dh-shzf.sh' show this message
: invalid shell option name expand_aliases
: command not found: echo
Installing...
: No such file or directoryome/edmar_gomes/.env
tar: ZendFramework-1.9.5-minimal\r.tar.gz: Cannot open: No such file or diretory
tar: Error is not recoverable: exiting now
...

what did I do wrong?




]]> Post Reply?

Thank you for the script!!!

I did upload the files
home/edmar_gomes/ZendFramework-1.9.5-minimal.tar.gz
and
home/edmar_gomes/dh-shzf.sh

but when I typed 'sh dh-shzf.sh' show this message
: invalid shell option name expand_aliases
: command not found: echo
Installing...
: No such file or directoryome/edmar_gomes/.env
tar: ZendFramework-1.9.5-minimal\r.tar.gz: Cannot open: No such file or diretory
tar: Error is not recoverable: exiting now
...

what did I do wrong?




]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123675&page=0&view=collapsed&sb=5&o=14&vc=1#Post123675 Wed, 04 Nov 2009 04:54:22 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123675&page=0&view=collapsed&sb=5&o=14&vc=1#Post123675 Post Reply?

sxi@sabrextreme.com

http://sxi.sabrextreme.com under Shell-scripts.

You can sling me the million once you've become a super rich Java game developer



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

sxi@sabrextreme.com

http://sxi.sabrextreme.com under Shell-scripts.

You can sling me the million once you've become a super rich Java game developer



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123674&page=0&view=collapsed&sb=5&o=14&vc=1#Post123674 Wed, 04 Nov 2009 04:38:02 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123674&page=0&view=collapsed&sb=5&o=14&vc=1#Post123674 Post Reply?

ONE MILLION DOLLARS!!!!!!!!!!!!!!!
I will count the coins in my pocket...
hum...
35 cents, I can pay in installments?? rsrsrs

Thank you sXi, do you have messenger?

]]> Post Reply?

ONE MILLION DOLLARS!!!!!!!!!!!!!!!
I will count the coins in my pocket...
hum...
35 cents, I can pay in installments?? rsrsrs

Thank you sXi, do you have messenger?

]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123668&page=0&view=collapsed&sb=5&o=14&vc=1#Post123668 Tue, 03 Nov 2009 18:25:06 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123668&page=0&view=collapsed&sb=5&o=14&vc=1#Post123668 Post Reply?

ONE MILLION DOLLARS

I haven't had time to look at the Wiki copy/pasta yet but I'll make a special effort to check it out today.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

ONE MILLION DOLLARS

I haven't had time to look at the Wiki copy/pasta yet but I'll make a special effort to check it out today.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123653&page=0&view=collapsed&sb=5&o=14&vc=1#Post123653 Tue, 03 Nov 2009 11:39:19 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123653&page=0&view=collapsed&sb=5&o=14&vc=1#Post123653 Post Reply?

I deleted all and I tried again, but showed the same error.

I 'm Brazilian and study digital games in universaty. I need the Zend for a college and I'm worried.

sXi, How much do you charge to set up?
I pay by paypal.

]]> Post Reply?

I deleted all and I tried again, but showed the same error.

I 'm Brazilian and study digital games in universaty. I need the Zend for a college and I'm worried.

sXi, How much do you charge to set up?
I pay by paypal.

]]> PHP BBCode http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123635&page=0&view=collapsed&sb=5&o=14&vc=1#Post123635 Mon, 02 Nov 2009 17:35:45 -0800 chaseler forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123635&page=0&view=collapsed&sb=5&o=14&vc=1#Post123635 Post Reply?

Hey Guys,

I've been with Dreamhost for a few months now, and it's been great. I've recently come across a problem though; I am trying to implement BBCode into my blog, in the comments. I want to use this because it is secure and works well. I have a custom BBCode class, but this has many security loopholes, and I wish to use the official one. Does any one know how to set this up on my dreamhost account?


Regards,
Chris Haseler ]]> Post Reply?

Hey Guys,

I've been with Dreamhost for a few months now, and it's been great. I've recently come across a problem though; I am trying to implement BBCode into my blog, in the comments. I want to use this because it is secure and works well. I have a custom BBCode class, but this has many security loopholes, and I wish to use the official one. Does any one know how to set this up on my dreamhost account?


Regards,
Chris Haseler ]]> Re: Rails application error after Copenhagen crash http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123625&page=0&view=collapsed&sb=5&o=14&vc=1#Post123625 Mon, 02 Nov 2009 10:09:28 -0800 nwillis forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123625&page=0&view=collapsed&sb=5&o=14&vc=1#Post123625 Post Reply?

I have looked; the logfiles are empty....

n

]]> Post Reply?

I have looked; the logfiles are empty....

n

]]> Re: Rails application error after Copenhagen crash http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123624&page=0&view=collapsed&sb=5&o=14&vc=1#Post123624 Mon, 02 Nov 2009 10:05:23 -0800 andrewf forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123624&page=0&view=collapsed&sb=5&o=14&vc=1#Post123624 Post Reply?

Have you looked in /home/yourusername/logs/yourdomain.net/http/error.log yet? Chances are there's an error message getting dumped into there.

]]> Post Reply?

Have you looked in /home/yourusername/logs/yourdomain.net/http/error.log yet? Chances are there's an error message getting dumped into there.

]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123608&page=0&view=collapsed&sb=5&o=14&vc=1#Post123608 Sun, 01 Nov 2009 12:26:43 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123608&page=0&view=collapsed&sb=5&o=14&vc=1#Post123608 Post Reply?

No, it's a good thing.. just ruling it out as a possible reason for your problem.

I'd suggest you undo the changes you've made and start again fresh now that you've learned a bit about shell. If I get time later I'll run through a Wiki copy/pasta and see if I get the same results as you.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

No, it's a good thing.. just ruling it out as a possible reason for your problem.

I'd suggest you undo the changes you've made and start again fresh now that you've learned a bit about shell. If I get time later I'll run through a Wiki copy/pasta and see if I get the same results as you.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Passenger (mod_rails) and RAILS_ENV http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123603&page=0&view=collapsed&sb=5&o=14&vc=1#Post123603 Sun, 01 Nov 2009 07:47:28 -0800 dennisstevens forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123603&page=0&view=collapsed&sb=5&o=14&vc=1#Post123603 Post Reply?

This is great. I am having the same issue. It looks like you have the right answer. But how did you set RAILS_ENV instead of ENV['RAILS_ENV']. I can't figure it out.



]]> Post Reply?

This is great. I am having the same issue. It looks like you have the right answer. But how did you set RAILS_ENV instead of ENV['RAILS_ENV']. I can't figure it out.



]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123602&page=0&view=collapsed&sb=5&o=14&vc=1#Post123602 Sun, 01 Nov 2009 07:07:29 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123602&page=0&view=collapsed&sb=5&o=14&vc=1#Post123602 Post Reply?

I try
$ ls /usr/local/dh/apache/template/phpext/zend_optimizer5/

show
ZendOptimizer.so

but the PHP info not show the param --enable-versioning.
look: http://kurumimhost.com/info.php

is this the problem?

]]> Post Reply?

I try
$ ls /usr/local/dh/apache/template/phpext/zend_optimizer5/

show
ZendOptimizer.so

but the PHP info not show the param --enable-versioning.
look: http://kurumimhost.com/info.php

is this the problem?

]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123591&page=0&view=collapsed&sb=5&o=14&vc=1#Post123591 Sat, 31 Oct 2009 17:51:19 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123591&page=0&view=collapsed&sb=5&o=14&vc=1#Post123591 Post Reply?

The optimizer path looks good. Maybe something changed on the newer systems tho.

Try: $ ls /usr/local/dh/apache/template/phpext/zend_optimizer5/ just to make sure it's there (it will be, but let's be sure). Another longshot is check phpinfo() at your hosted site and see if PHP was compiled with --enable-versioning - it shouldn't be but let's get that out of the way too.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

The optimizer path looks good. Maybe something changed on the newer systems tho.

Try: $ ls /usr/local/dh/apache/template/phpext/zend_optimizer5/ just to make sure it's there (it will be, but let's be sure). Another longshot is check phpinfo() at your hosted site and see if PHP was compiled with --enable-versioning - it shouldn't be but let's get that out of the way too.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123589&page=0&view=collapsed&sb=5&o=14&vc=1#Post123589 Sat, 31 Oct 2009 17:38:36 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123589&page=0&view=collapsed&sb=5&o=14&vc=1#Post123589 Post Reply?

at the command line, after write zf show version

Edited by edmargomes on 10/31/09 05:40 PM (server time).

]]>
Post Reply?

at the command line, after write zf show version

Edited by edmargomes on 10/31/09 05:40 PM (server time).

]]>
Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123584&page=0&view=collapsed&sb=5&o=14&vc=1#Post123584 Sat, 31 Oct 2009 13:56:50 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123584&page=0&view=collapsed&sb=5&o=14&vc=1#Post123584 Post Reply?

Are you seeing the error at the command line or in a web page?



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

Are you seeing the error at the command line or in a web page?



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Rails application error after Copenhagen crash http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123581&page=0&view=collapsed&sb=5&o=14&vc=1#Post123581 Sat, 31 Oct 2009 13:16:39 -0800 nwillis forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123581&page=0&view=collapsed&sb=5&o=14&vc=1#Post123581 Post Reply?

Hi,
I run a Rails app on one of my domains -- "Tracks" -- just for my own private amusement. Unfortunately, my domain was on Copenhagen, which crashed and burned for two days earlier this week. Well, since it came back up, I haven't been able to get the Rails app up and running again, and I just don't know enough about it to diagnose the problem. I'm a Rails user, not a Rails hacker.

The app just displays a 500 error: "Application error (Apache)" .... I can clear the cookies and the app login screen appears to be working fine so I know the app is running, but once I log in it's 500.html all the way down.

This just started after the crash, yet I can't figure out where to look for the problem. Any advice?

n

]]> Post Reply?

Hi,
I run a Rails app on one of my domains -- "Tracks" -- just for my own private amusement. Unfortunately, my domain was on Copenhagen, which crashed and burned for two days earlier this week. Well, since it came back up, I haven't been able to get the Rails app up and running again, and I just don't know enough about it to diagnose the problem. I'm a Rails user, not a Rails hacker.

The app just displays a 500 error: "Application error (Apache)" .... I can clear the cookies and the app login screen appears to be working fine so I know the app is running, but once I log in it's 500.html all the way down.

This just started after the crash, yet I can't figure out where to look for the problem. Any advice?

n

]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123579&page=0&view=collapsed&sb=5&o=14&vc=1#Post123579 Sat, 31 Oct 2009 08:32:24 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123579&page=0&view=collapsed&sb=5&o=14&vc=1#Post123579 Post Reply?

Thanks for help

My .bash_profile:

alias zf=/home/edmar_gomes/ZEND_framework/bin/zf.sh
unmask 002
PS1='[\h]$'



but show the same error

Edited by edmargomes on 10/31/09 08:32 AM (server time).

]]>
Post Reply?

Thanks for help

My .bash_profile:

alias zf=/home/edmar_gomes/ZEND_framework/bin/zf.sh
unmask 002
PS1='[\h]$'



but show the same error

Edited by edmargomes on 10/31/09 08:32 AM (server time).

]]>
Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123571&page=0&view=collapsed&sb=5&o=14&vc=1#Post123571 Fri, 30 Oct 2009 17:42:31 -0800 masterwebmonkey forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123571&page=0&view=collapsed&sb=5&o=14&vc=1#Post123571 Post Reply?

STEP 6 you type at the command line

chmod +x $HOME/ZEND_framework/bin/zf.sh

STEP 7 you need to use an editor (a program that edits text) the default command line editor is VI the file you need to edit is named .bash_profile an alias is like a "short cut" to tell the dreamhost computer where to find the zf.sh script

the thing you need to add to your .bash_profile is
alias zf=/home/(YOUR_USER_NAME_HERE)/ZEND_framework/bin/zf.sh

put it on the last line of your .bash_profile
once that is done and saved

the command to get the dreamhost computer to start using the new alias or "short cut" is
source .bash_profile
Then Type
zf show version

IF all went well You should see
Zend Framework Version: 1.8.4


]]> Post Reply?

STEP 6 you type at the command line

chmod +x $HOME/ZEND_framework/bin/zf.sh

STEP 7 you need to use an editor (a program that edits text) the default command line editor is VI the file you need to edit is named .bash_profile an alias is like a "short cut" to tell the dreamhost computer where to find the zf.sh script

the thing you need to add to your .bash_profile is
alias zf=/home/(YOUR_USER_NAME_HERE)/ZEND_framework/bin/zf.sh

put it on the last line of your .bash_profile
once that is done and saved

the command to get the dreamhost computer to start using the new alias or "short cut" is
source .bash_profile
Then Type
zf show version

IF all went well You should see
Zend Framework Version: 1.8.4


]]> Re: Authing Django Patches on DreamHost http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123554&page=0&view=collapsed&sb=5&o=14&vc=1#Post123554 Thu, 29 Oct 2009 16:33:31 -0800 andrewf forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123554&page=0&view=collapsed&sb=5&o=14&vc=1#Post123554 Post Reply?

Yep, "pkill python" away!

Incidentally, if you aren't already using Passenger, we have a new procedure written up for using it to serve Django applications, detailed at http://wiki.dreamhost.com/Django. The instructions are geared at new-application setups, but it shouldn't be too hard to drop an existing application into them.

]]> Post Reply?

Yep, "pkill python" away!

Incidentally, if you aren't already using Passenger, we have a new procedure written up for using it to serve Django applications, detailed at http://wiki.dreamhost.com/Django. The instructions are geared at new-application setups, but it shouldn't be too hard to drop an existing application into them.

]]> Re: Authing Django Patches on DreamHost http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123552&page=0&view=collapsed&sb=5&o=14&vc=1#Post123552 Thu, 29 Oct 2009 15:59:06 -0800 tdowns12 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123552&page=0&view=collapsed&sb=5&o=14&vc=1#Post123552 Post Reply?

I'm assuming by forcing a complete reload you mean running "pkill python" or "pkill dispatch.fcgi". Correct?

Thanks for the help!

]]> Post Reply?

I'm assuming by forcing a complete reload you mean running "pkill python" or "pkill dispatch.fcgi". Correct?

Thanks for the help!

]]> Re: Authing Django Patches on DreamHost http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123551&page=0&view=collapsed&sb=5&o=14&vc=1#Post123551 Thu, 29 Oct 2009 15:05:58 -0800 andrewf forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123551&page=0&view=collapsed&sb=5&o=14&vc=1#Post123551 Post Reply?

1. Make sure you're forcing a complete reload when you make changes. Python doesn't check for changes to source files, so the original code will keep running until it's killed (either for inactivity or manually).

2. We recently installed Django 1.1.1 in the system Python directory. If you have your own copy, make sure that it's being added to sys.path before the default entries. (Easiest way to do this is with sys.path.insert(1, "/home/username/mystuff") instead of sys.path += "..." or sys.path.append("...") in dispatch.fcgi or passenger_wsgi.py.)

]]> Post Reply?

1. Make sure you're forcing a complete reload when you make changes. Python doesn't check for changes to source files, so the original code will keep running until it's killed (either for inactivity or manually).

2. We recently installed Django 1.1.1 in the system Python directory. If you have your own copy, make sure that it's being added to sys.path before the default entries. (Easiest way to do this is with sys.path.insert(1, "/home/username/mystuff") instead of sys.path += "..." or sys.path.append("...") in dispatch.fcgi or passenger_wsgi.py.)

]]> Authing Django Patches on DreamHost http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123549&page=0&view=collapsed&sb=5&o=14&vc=1#Post123549 Thu, 29 Oct 2009 13:52:40 -0800 tdowns12 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123549&page=0&view=collapsed&sb=5&o=14&vc=1#Post123549 Post Reply?

Hi all,

Has anyone authored patches to Django on DreamHost? I'm having trouble getting Django to recognize the changes to my classes, any pointers?

]]> Post Reply?

Hi all,

Has anyone authored patches to Django on DreamHost? I'm having trouble getting Django to recognize the changes to my classes, any pointers?

]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123535&page=0&view=collapsed&sb=5&o=14&vc=1#Post123535 Wed, 28 Oct 2009 21:09:14 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123535&page=0&view=collapsed&sb=5&o=14&vc=1#Post123535 Post Reply?

thank you very much!!!

I had used wordpad.

Now show this error:
Failed loading /usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so: /usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so undefined symbol: zend_opcode_handlers

config the zend is hard rsrs

]]> Post Reply?

thank you very much!!!

I had used wordpad.

Now show this error:
Failed loading /usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so: /usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so undefined symbol: zend_opcode_handlers

config the zend is hard rsrs

]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123533&page=0&view=collapsed&sb=5&o=14&vc=1#Post123533 Wed, 28 Oct 2009 20:33:08 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123533&page=0&view=collapsed&sb=5&o=14&vc=1#Post123533 Post Reply?

Did you copy/pasta things into Microsoft Word or something?

When writing programs or scripts always use a text editor like Notepad



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

Did you copy/pasta things into Microsoft Word or something?

When writing programs or scripts always use a text editor like Notepad



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Re: Zend Framework Install http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123532&page=0&view=collapsed&sb=5&o=14&vc=1#Post123532 Wed, 28 Oct 2009 19:51:41 -0800 edmargomes forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123532&page=0&view=collapsed&sb=5&o=14&vc=1#Post123532 Post Reply?

Hi,

I trying in differents diretorys, but all return this error after digit "zf show version":

-bash: /home/edmar_gomes/ZEND_framework/bin/zf.sh: /bin/sh^M: bad interpreter: No o such file or directory

the path /home/edmar_gomes/ZEND_framework/bin/zf.sh is correct, the files are there.

thanks

]]> Post Reply?

Hi,

I trying in differents diretorys, but all return this error after digit "zf show version":

-bash: /home/edmar_gomes/ZEND_framework/bin/zf.sh: /bin/sh^M: bad interpreter: No o such file or directory

the path /home/edmar_gomes/ZEND_framework/bin/zf.sh is correct, the files are there.

thanks

]]> Re: Web Panel API http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123518&page=0&view=collapsed&sb=5&o=14&vc=1#Post123518 Wed, 28 Oct 2009 12:46:30 -0800 Atropos7 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123518&page=0&view=collapsed&sb=5&o=14&vc=1#Post123518 Post Reply?

In reply to:

I continue to receive "Invalid Name" after making the call. Thanks for any help you can provide.


If you are using GET or POST /w application/x-www-form-urlencoded make sure the encoding is being done properly.

Customer since 2000 openvein.org | Please don't feed the trolls. ]]> Post Reply?

In reply to:

I continue to receive "Invalid Name" after making the call. Thanks for any help you can provide.


If you are using GET or POST /w application/x-www-form-urlencoded make sure the encoding is being done properly.

Customer since 2000 openvein.org | Please don't feed the trolls. ]]> Re: Web Panel API http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123515&page=0&view=collapsed&sb=5&o=14&vc=1#Post123515 Wed, 28 Oct 2009 12:11:49 -0800 sXi forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123515&page=0&view=collapsed&sb=5&o=14&vc=1#Post123515 Post Reply?

Wiki says you have it right.

name : the name for the list to use, like: "list name" <list@domain.com>

If all other fields are correct and you get that error you may need to send in a ticket.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Post Reply?

Wiki says you have it right.

name : the name for the list to use, like: "list name" <list@domain.com>

If all other fields are correct and you get that error you may need to send in a ticket.



Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost ]]> Web Panel API http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123514&page=0&view=collapsed&sb=5&o=14&vc=1#Post123514 Wed, 28 Oct 2009 12:02:59 -0800 fitzgerl forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123514&page=0&view=collapsed&sb=5&o=14&vc=1#Post123514 Post Reply?

Can anyone help me with the proper format of the value of the "&name=" value for the announcement_list-post_announcement command API call?

My list name (as shown in the Web Panel) is:

"Crushing Day" <info@crushingday.com>

I continue to receive "Invalid Name" after making the call. Thanks for any help you can provide.


]]> Post Reply?

Can anyone help me with the proper format of the value of the "&name=" value for the announcement_list-post_announcement command API call?

My list name (as shown in the Web Panel) is:

"Crushing Day" <info@crushingday.com>

I continue to receive "Invalid Name" after making the call. Thanks for any help you can provide.


]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123498&page=0&view=collapsed&sb=5&o=14&vc=1#Post123498 Tue, 27 Oct 2009 15:02:37 -0800 MajorGeek forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123498&page=0&view=collapsed&sb=5&o=14&vc=1#Post123498 Post Reply?

Thanks. It worked off the site but not off the forum but I can't see the difference.

This signature line intentionally blank. ]]> Post Reply?

Thanks. It worked off the site but not off the forum but I can't see the difference.

This signature line intentionally blank. ]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123497&page=0&view=collapsed&sb=5&o=14&vc=1#Post123497 Tue, 27 Oct 2009 13:52:34 -0800 vicm3 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123497&page=0&view=collapsed&sb=5&o=14&vc=1#Post123497 Post Reply?

Maybe a typo or filtered by forum, anyway I find the one liner on this site

---
Dark and difficult times lie ahead... Now is the time that we must choose between what is right, and what is easy. A.D ]]> Post Reply?

Maybe a typo or filtered by forum, anyway I find the one liner on this site

---
Dark and difficult times lie ahead... Now is the time that we must choose between what is right, and what is easy. A.D ]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123496&page=0&view=collapsed&sb=5&o=14&vc=1#Post123496 Tue, 27 Oct 2009 13:36:48 -0800 MajorGeek forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123496&page=0&view=collapsed&sb=5&o=14&vc=1#Post123496 Post Reply?

I tried your grep|xargs line but it din't seem to remove anything. The part before the pipe finds all the files with the iframes with davtraff.com, but is there a typo in the sed part?

This signature line intentionally blank. ]]> Post Reply?

I tried your grep|xargs line but it din't seem to remove anything. The part before the pipe finds all the files with the iframes with davtraff.com, but is there a typo in the sed part?

This signature line intentionally blank. ]]> Re: Dreamhost PS Manager http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123494&page=0&view=collapsed&sb=5&o=14&vc=1#Post123494 Tue, 27 Oct 2009 12:16:10 -0800 FreemanNg forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123494&page=0&view=collapsed&sb=5&o=14&vc=1#Post123494 Post Reply?

fyi to everybody: I've created a Dreamhost suggestion to extend the Web Panel API to set memory levels MySQL private servers as well.

You can vote for it here:

https://panel.dreamhost.com/index.cgi?tree=home.sugg&category=_all&search=extend web panel api


]]> Post Reply?

fyi to everybody: I've created a Dreamhost suggestion to extend the Web Panel API to set memory levels MySQL private servers as well.

You can vote for it here:

https://panel.dreamhost.com/index.cgi?tree=home.sugg&category=_all&search=extend web panel api


]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123493&page=0&view=collapsed&sb=5&o=14&vc=1#Post123493 Tue, 27 Oct 2009 12:01:04 -0800 vicm3 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123493&page=0&view=collapsed&sb=5&o=14&vc=1#Post123493 Post Reply?

I'm not totally sure, but I taking special attention on the logs from a gallery 1.5.x series...

---
Dark and difficult times lie ahead... Now is the time that we must choose between what is right, and what is easy. A.D ]]> Post Reply?

I'm not totally sure, but I taking special attention on the logs from a gallery 1.5.x series...

---
Dark and difficult times lie ahead... Now is the time that we must choose between what is right, and what is easy. A.D ]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123492&page=0&view=collapsed&sb=5&o=14&vc=1#Post123492 Tue, 27 Oct 2009 11:59:02 -0800 MajorGeek forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123492&page=0&view=collapsed&sb=5&o=14&vc=1#Post123492 Post Reply?

That's a good trick. My college just started doing something like that in windows on his part of the site.

Where do you suppose we got this infection? I admit I had an installation of the one-click gallery and forum that I hadn't used or upgraded for a couple years. I dumped them both.

This signature line intentionally blank. ]]> Post Reply?

That's a good trick. My college just started doing something like that in windows on his part of the site.

Where do you suppose we got this infection? I admit I had an installation of the one-click gallery and forum that I hadn't used or upgraded for a couple years. I dumped them both.

This signature line intentionally blank. ]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123491&page=0&view=collapsed&sb=5&o=14&vc=1#Post123491 Tue, 27 Oct 2009 11:42:43 -0800 vicm3 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123491&page=0&view=collapsed&sb=5&o=14&vc=1#Post123491 Post Reply?

even better if you have a iframe injection this one can help (I just found one of my sites attacked with the same URL.)

grep -lr -e '<iframe src="http://.*</iframe>' * | xargs sed -i 's/<iframe> src="http:\/\/.*<\/iframe>//g'

Just make sure you are not using iframes yourself ;D

---
Dark and difficult times lie ahead... Now is the time that we must choose between what is right, and what is easy. A.D ]]> Post Reply?

even better if you have a iframe injection this one can help (I just found one of my sites attacked with the same URL.)

grep -lr -e '<iframe src="http://.*</iframe>' * | xargs sed -i 's/<iframe> src="http:\/\/.*<\/iframe>//g'

Just make sure you are not using iframes yourself ;D

---
Dark and difficult times lie ahead... Now is the time that we must choose between what is right, and what is easy. A.D ]]> Re: greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123489&page=0&view=collapsed&sb=5&o=14&vc=1#Post123489 Tue, 27 Oct 2009 11:32:29 -0800 andrewf forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123489&page=0&view=collapsed&sb=5&o=14&vc=1#Post123489 Post Reply?

Even easier than you think:

grep -r PATTERN DIRECTORY


]]> Post Reply?

Even easier than you think:

grep -r PATTERN DIRECTORY


]]> greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123486&page=0&view=collapsed&sb=5&o=14&vc=1#Post123486 Tue, 27 Oct 2009 10:24:24 -0800 MajorGeek forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123486&page=0&view=collapsed&sb=5&o=14&vc=1#Post123486 Post Reply?

I'm cleaning up my site after a hack. grep was able to find a call to davtraff.com in one directory. Isn't there a trick to get grep to search for a pattern down into subdirectories too? sed or perl?

This signature line intentionally blank. ]]> Post Reply?

I'm cleaning up my site after a hack. grep was able to find a call to davtraff.com in one directory. Isn't there a trick to get grep to search for a pattern down into subdirectories too? sed or perl?

This signature line intentionally blank. ]]>