Go Back   Neko-Sentai » General Discussion Forums » General Random Topics forum

Notices

Reply
 
Thread Tools
Old 09-25-2006, 03:23 AM   #1
Gulkeeva
Mithra Ero-Sensei
The hentai is out there...
 
Join Date: May 2006
Location: Near Mithra
Posts: 21,818
Thanks: 1,898
Thanked 6,213 Times in 3,294 Posts

Default Ok need someone knowledgable in PHP, SSH etc

Ok, my host says I can edit it by making my own php.ini and running it formy site as they cannot alter the one on the server that has a 7MB limit.. but however I can create one on my site in a CGI bin and run it.

This requires some knowledge in linux which I don't really know so...
if anyone has some info on this subject, contact me in PM sometime.

The host doses have basic info but beyond that like how to use a program to run shell scripts etc or even what would be best to use I don't know.

Most I ever used linux for was running a shell for IRC which was pretty mindless using BitchX ^^;;;; Sorry have nonexistant knowledge of linux... do have some of dos, which it soorta seemed like...
Gulkeeva is offline  
Reply With Quote
Old 09-26-2006, 10:56 PM   #2
Gulkeeva
Mithra Ero-Sensei
The hentai is out there...
 
Join Date: May 2006
Location: Near Mithra
Posts: 21,818
Thanks: 1,898
Thanked 6,213 Times in 3,294 Posts

Default

Ok I went rhough and made a cgi-bin etc
made a random file up and put in it

Code:
#/bin/sh

CGIFILE="$HOME/neko-sentai.com/cgi-bin/php.cgi"
INIFILE="$HOME/neko-sentai.com/cgi-bin/php.ini"

cp /usr/local/bin/php "$CGIFILE"
cp /etc/php/php.ini "$INIFILE"

perl -p -i -e '
s/.*post_max_size.*/post_max_size = 51M/;
s/.*upload_max_filesize.*/upload_max_filesize = 51M/;
' "$INIFILE"
then did

Code:
chmod +x myrandomfile
./my random file
no errors ran correctly as it copied my servers php.ini etc over

then did
Code:
crontab -e
@weekly /home/myrandomusername/myrandomfile
saved and exited

then I created .htaccess files in the root directory and the "attachment mod" dirrectory with the following

Code:
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
this didn't seem to work with my host though.. so next step is installing php >.>
Gulkeeva is offline  
Reply With Quote
Old 09-27-2006, 07:03 PM   #3
Undeadhunter
Regular Forum User
Forum Member
 
Join Date: Jun 2006
Posts: 401
Thanks: 0
Thanked 2 Times in 2 Posts

Default

google ftw

running scripts usualy is
./name.sh ^^

I fail at linux too tho
Undeadhunter is offline  
Reply With Quote
Old 09-27-2006, 10:15 PM   #4
Gulkeeva
Mithra Ero-Sensei
The hentai is out there...
 
Join Date: May 2006
Location: Near Mithra
Posts: 21,818
Thanks: 1,898
Thanked 6,213 Times in 3,294 Posts

Default

Quote:
Originally Posted by Undeadhunter
google ftw

running scripts usualy is
./name.sh ^^

I fail at linux too tho
yeah it all ran jsut fine but its not working like its supposed to, figuring how to remotely install PHP now O_o
Gulkeeva is offline  
Reply With Quote
Reply

Lower Navigation
Go Back   Neko-Sentai » General Discussion Forums » General Random Topics forum

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 01:05 PM.

design by: Themes by Design


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
punch-dnaAll company, product, system names and/or company logos and marks are the registered trademarks or trademarks of their respective owners. If you are the copyright holder of any material found on this site and believe it has been used unfairly please contact one of the forum administrators.