Results 51 to 75 of 266
-
03-03-2011, 08:15 PM #51Newbie
- Join Date
- Mar 2011
- Posts
- 29
I'm using custom components for Joomla and I remember when I was trying PHP 5.3.x then I had a lot of errors especially with sessions and quotes. So you are saying by default debian 5 using php 5.2.x? Would you say Debian 5 would be even better for 256mb-512mb ram for VPS? I found a good link tutorial and would that work just by changing to PHP instead of mysql? http://www.robo47.net/blog/193-Insta...an-6.0-Squeeze
Last edited by startera; 03-03-2011 at 08:20 PM.
-
03-03-2011, 08:35 PM #52Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
Yep Debian 5 uses PHP5.2. The packages in Deb5 are a little old now for my liking, but if you just need a straight up LAMP stack it should do just fine. Personally I would just fix the custom Joomla code for PHP 5.3 as more and more platforms are defaulting to it now.
BTW, the link you provided shows the installation for mysql-workbench, not PHP.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-03-2011, 10:59 PM #53Newbie
- Join Date
- Mar 2011
- Posts
- 26
Lovely script. This is proving to be invaluable.
However, I did run in an obstacle.
PHPmyadmin gives me the following error:
phpMyAdmin -
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
What I've done is the next steps on a fresh Debian 6.0 box:
lampworker
optimizelamp
tmpfs
varnish on
add mydomain.com ip
addip ip
phpmyadmin on
I thought the error could be related to this: wiki.phpmyadmin.n*t/pma/session.save_path
but it's not. I checked my session.save_path and it's correctly /tmp and the script on that site works fine. It's not related to session.save_path, the problem I mean.
Do you have any pointers what could be behind this? I've been googling like crazy and really haven't come up with an answer.
For what's it worth, when I restart apache, I get the following errors, but I think they are not in relation to my phpmyadmin -error.
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
[Thu Mar 03 20:43:31 2011] [warn] NameVirtualHost xxx.xxx.xxx.xxx:8080 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
[Thu Mar 03 20:43:32 2011] [warn] NameVirtualHost xxx.xxx.xxx.xxx has no VirtualHosts
Anyway, even if you don't have any ideas, thanks anyway for this script.
-
03-03-2011, 10:59 PM #54Newbie
- Join Date
- Mar 2011
- Posts
- 29
I tested my joomla cms again and it is working under 5.3. Thanks to your script and hard work I probably saved at least 20-30 hours. I installed webmin and it looks like it disabled phpmyadmin but anyway I'd like to confirm with you a few steps I've done and what I'm missing?
./serversetup.sh lampworker
installed webmin
transferred my website to www folder and created database. Ran ./serversetup.sh optimizelamp. Changed passwords for root admin. Seems to be too easy with your script. What else m'I missing? Do I need to setup firewall or secure any folders with 512mb ram vps?
-
03-03-2011, 11:10 PM #55Newbie
- Join Date
- Mar 2011
- Posts
- 26
I fixed my phpmyadmin problem by: dpkg-reconfigure -plow phpmyadmin
Ran the install wizard again and now it works. Beats me.
-
03-03-2011, 11:22 PM #56Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
For your phpmyadmin error. The optimizelamp function forces phpmyadmin to only accept secure connections. If you access phpmyadmin without HTTPS it sometimes throw out the errors. So to avoid that problem just use https://domain.com/p
Or you can remove the "FORCESSL" line at the end of /etc/phpmyadmin/config.inc.php
For the [warn] NameVirtualHost xxx.xxx.xxx.xxx has no VirtualHosts, those warnings are normal. Its a little hard to describe why here, but read up a little on virtualhost blocks and namevirtualhosts and you'll see what I mean.
Also, you seem to have forgotten to edit the script variables, therefore your hostname isn't set correctly. Edit them then run "basic" function.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-03-2011, 11:34 PM #57Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
Its dead easy because its meant to do all the configuration for you . Think of it as a one click installer for all the LAMP setup guides. I've not tested my script with webmin so I'm not sure how it'll work together, no clue why it disabled phpmyadmin there.
But for starters, this is my usual sequence.
./serversetup.sh basic
./serversetup.sh add "normal_user"
./serversetup.sh lampworker (or lampfpm)
./serversetup.sh optimizelamp
./serversetup.sh tmpfs
If you have a strong password and you're the only user, you should be fairly safe without a firewall. Otherwise look into installing fail2ban, denyhosts, CSF etc.Last edited by Scientist; 03-03-2011 at 11:37 PM.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-03-2011, 11:40 PM #58Newbie
- Join Date
- Mar 2011
- Posts
- 29
I'll be the only user running my future vps. After checking what webmin can do and now I'm thinking do I really even need one since your script have done all the work? I'm just guessing once everything is setup do I even need to check/touch my vps server? I was thinking to do all backups from my home PC just downloading database and www folder.
-
03-03-2011, 11:50 PM #59Newbie
- Join Date
- Mar 2011
- Posts
- 26
Yeah, I tried to edit my post with this, but the 15min limit had expired:
Interesting though. If I go to htxp://mydomain.com/p, phpmyadmin gives the error I described in my previous post.
I mean, when you go to htxp://mydomain.com/p, the address is automatically changed to htxps://mydomain.com/p?collation_connection=utf8_general_ci&token=aada80e4d45315ba322e7aa69d7f6d55&phpMyAdmin=ii243osn1jiba9fucra3nnlpqq8v3obf, but still gives the error. If you refresh, it keeps giving that error.
Only if i manually type in the url bar htxps://mydomain.com/p, phpmyadmin works fine.
Why does it break if forgetting that https and only typing http... the redirect for some reason don't work.
And yeah, hostname problems got fixed.
Will report back if I figure out why the http -> https redirect doesn't work. And even when I have removed the ForceSSL line from phpmyadmin's config, why does it force it to go to https.
But dear goodness these scripts save a lot of time. Thanks again =)
-
03-03-2011, 11:53 PM #60Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
I suppose it'll be a matter of preference if you prefer a graphical interface to manage apache/mysql etc. I don't use it myself because I like to keep my servers lean and clean.
Your only duty would be to ensure packages are updated, basically run this command every now and then.
aptitude update && aptitude -y safe-upgrade
Once you've installed denyhosts and made sure files in the "www" folder are owned by "www-data", theres probably nothing else that needs doing.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-04-2011, 12:02 AM #61Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
I'm guessing its picking up the domain redirect from your browser's cache or perhaps varnish is caching it. Try clearing browser cache and disabling varnish to see if it behaves. In Debian 5 this wasn't an issue but I've noticed the redirect problem myself in Deb6. Sometimes I forget to use https too Regardless, the domainsetup script should have given a reminder about the use of HTTPS with phpmyadmin.
However, glad you found them scripts usefulLast edited by Scientist; 03-04-2011 at 12:05 AM.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-04-2011, 12:12 AM #62New Member
- Join Date
- Mar 2011
- Posts
- 1
and
P.S. Sorry for choosing your site to leave a message about
-
03-04-2011, 12:20 AM #63Newbie
- Join Date
- Mar 2011
- Posts
- 26
Nope, disabling varnish didn't help. Neither clearing browser cache.
It looks like there's some kind of a rewrite rule somewhere, the http -> https change is so instant.
Actually, I would prefer that http -> https redirect in case of phpmyadmin if phpmyadmin worked in that way, but it gives that weird error...
What happens in that http -> https redirect that breaks phpmyadmin (which works fine when accessed directly with https...)
It'll be interesting to see whether or not my other web apps work fine or will I encounter some other problems. This is the first time I'm using fcgi, usually used mod_php. And first time using Varnish for that matter.
Oh well, gotta get some sleep... >
-
03-04-2011, 12:47 AM #64Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
Mine works without https, just tested after removing the forcessl value. There aren't any redirect rules for phpmyadmin so its probably the cache still. I know Chrome annoyingly keeps cache for a while even after I've cleared them.
Also I figured out why its error-ing out during the redirect. If you change your virtualhost blocks in /etc/apache2/sites-available/domain.com so they look like *:80 and *:443 the redirect will go smoothly. Alternatively just add your domains without providing an IP.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-04-2011, 01:05 PM #65Newbie
- Join Date
- Mar 2011
- Posts
- 26
Thanks mate,
changing the virtualhost blocks to *: fixed that redirect: no more errors.
However, I think I do need to specify the IPs in the future when I have more than one IP and more than one domain setup (one IP per domain). The redirect will probably break then again and need to figure out why, or is it even possible to have the redirect working at the same time as having IPs specified in the virtualhost blocks.
but hey, you should really make a small website for these scripts, with changelogs etc. these really do have great potential.
for example I have a bit more powerful dedicated server which I got dirt cheap so I'm not really sure if the optimizations in the script are really the most optimal optimizations for my a bit more powerful than the usual VPS. but maybe they are, things are looking really fast and pages loading quickly. I'm not complaining. - but maybe a few different versions of the script (with different optimizations, or one script with a few possible optimization settings, for vps, for dedi etc...)
over and out, thanks once again, I love the fact that there really are helpful guys like you aroundLast edited by mixture; 03-04-2011 at 01:09 PM.
-
03-04-2011, 07:00 PM #66Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
The *:80 mismatch issue is something I decided on because its much easier to get Varnish enabled that way. Though it does cause a slight annoyance with accessing phpmyadmin as you already know. For now its probably the cleanest approach but I'll look into updating the script slightly to work around it.
I have a list of changelog and a README which I've requested a post edit for, but the mods are surely taking their time in responding back. Might just host it on a website when I find the time to do it
With a dedicated server you can definitely tune the LAMP stack for much higher traffic. Have a look at the optimizelamp function to see the sort of configs to tweak.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-04-2011, 07:53 PM #67Newbie
- Join Date
- Mar 2011
- Posts
- 29
I'm just curious for some reason if I use command ./serversetup.sh basic, it just makes webmin to work very slow. It takes about 30-40 seconds just to load the page. webmin is running on perl and I'm running a server over my lan using vmware. Could it be a hostname?
-
03-04-2011, 08:05 PM #68Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
It may well be the case if its trying to resolve to an invalid hostname. Not sure how webmin does things but that "basic" function doesn't do anything else apart from what it says on the description.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-05-2011, 12:20 AM #69Web Hosting Guru
- Join Date
- Mar 2010
- Location
- Dallas
- Posts
- 331
It appears there is something wrong with the domain setup script.
Is anyone else having an issue? I am unable to download it with my server.
-
03-05-2011, 12:40 AM #70Web Hosting Guru
- Join Date
- Mar 2010
- Location
- Dallas
- Posts
- 331
Fixed my first error.
I have another one now.
When trying to access phpmyadmin (http://testing.clardyhost.com), I get an error.
Code:Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
Here are the steps that I have ran:
basic
add
lampworker
optimizelamp
tmpddd
Domain script:
add domain testing.clardyhost.com
wordpress testing.clardyhost.com
**Edit**
It appears that it is the redirect issue as well. Accessing it correctly, solves the problem.Last edited by dclardy; 03-05-2011 at 12:46 AM.
-
03-05-2011, 01:20 AM #71Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
Looks like you've figured it out now.
I think its fair to say the domainsetup script needs a one line README that recommends users to add domains without entering an IP
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-05-2011, 01:24 AM #72Web Hosting Guru
- Join Date
- Mar 2010
- Location
- Dallas
- Posts
- 331
Well. I did not enter an IP.
Maybe the issue is somewhere else?
-
03-05-2011, 07:14 AM #73Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
Try using the addip function to sort out your namevirtualhost to see if it helps.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
-
03-06-2011, 11:45 AM #74New Member
- Join Date
- Mar 2011
- Posts
- 3
How to auto install FTP?
How to auto install FTP?
use
apt-get install vsftp ??
-
03-06-2011, 01:44 PM #75Web Hosting Master
- Join Date
- Oct 2008
- Posts
- 637
Yep that will do.
Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.
Similar Threads
-
CentOS or Ubuntu or Debian
By Host4Geeks in forum Hosting Software and Control PanelsReplies: 26Last Post: 08-24-2010, 04:50 AM -
Seems Debian BETTER than CentOS for LNMP VPS?
By 21andy in forum VPS HostingReplies: 8Last Post: 02-24-2010, 03:20 AM -
Debian Server - Professional LAMP Setup, Optimization + Hardening Needed
By Netarch in forum Systems Management RequestsReplies: 5Last Post: 07-16-2008, 11:49 AM -
Any decent guides for chrooting apache2 in ubuntu lamp installation?
By Georgecooldude in forum Hosting Security and TechnologyReplies: 2Last Post: 05-12-2008, 06:42 PM -
Hassle Free CentOS/Ubuntu LAMP install disc?
By RobinWrit in forum Colocation, Data Centers, IP Space and NetworksReplies: 2Last Post: 03-05-2008, 01:58 PM