This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
436
Off-topic / Re: Help with apache2
« on June 7th, 2012, 12:40 AM »You must have a lot of traffic on your server?
piloalbertelli.it:
49,649 total requests - 2.5 GB total bandwidth - 1,555 Unique visitors - 7,928 Page views
compagniaoltreconfine.com:
1,256 total requests - 16.7 MB total bandwidth - 29 Unique visitors - 205 Page views
danielamandolini.it:
2,746 total requests - 8.3 MB total bandwidth - 19 Unique visitors - 281 Page views
heystella.it:
4,973 total requests - 100.3 MB total bandwidth - 163 Unique visitors - 377 Page views
lorenzoraffio.com:
7,573 total requests - 34.9 MB total bandwidth - 454 Unique visitors - 1,566 Page views
multiformeingegno.it:
40,954 total requests - 677.3 MB total bandwidth - 2,070 Unique visitors - 8,311 Page views
rockciclopedia.com:
175,211 total requests - 2.0 GB total bandwidth - 4,591 Unique visitors - 34,670 Page views
studioassociatogema.it:
57 total requests - 750.0 KB total bandwidth - 4 Unique visitors - 8 Page views
As you can see there are 3 or 4 websites with "important" load but the others are semi-insignificant..
438
Off-topic / Re: Help with apache2
« on June 6th, 2012, 10:20 PM »
Ok, I pointed my websites back to my VPS.. Let's see if now it handles RAM better. :)
After a few minutes...
Posted: June 6th, 2012, 10:18 PM
After a few minutes...
439
Off-topic / Re: Help with apache2
« on June 6th, 2012, 10:01 PM »Those aren't per-host declarations, they're for the entire server. You don't declare .php files for each virtual host, for example.
Add it to the main httpd.conf or similar.
http://heystella.it/test.php
Posted: June 6th, 2012, 09:56 PM
Does the use of sockets instead of TCP/IP connections help? :)
440
Off-topic / Re: Help with apache2
« on June 6th, 2012, 09:45 PM »
Here's happening something strange.. 1 website works, others don't.. if I attach:
FastCgiExternalServer /home/www/php5.external -host 127.0.0.1:9000
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
Alias /usr/lib/cgi-bin/ /home/www/
to more than 1 site I get the error:
Syntax error on line 24 of /etc/apache2/sites-enabled/SITENAME:
FastCgiExternalServer: redefinition of previously defined class "/home/www/php5.external"
Action 'configtest' failed.
I'm thinking that this method maybe works only if you have 1 website and not multiple..
This seems to tell I'm right..:
http://redmine.froxlor.org/issues/1048
In apache log:
[Wed Jun 06 21:41:19 2012] [alert] FastCGI: read() from pipe failed (0)
[Wed Jun 06 21:41:19 2012] [alert] FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
FastCgiExternalServer /home/www/php5.external -host 127.0.0.1:9000
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
Alias /usr/lib/cgi-bin/ /home/www/
to more than 1 site I get the error:
Syntax error on line 24 of /etc/apache2/sites-enabled/SITENAME:
FastCgiExternalServer: redefinition of previously defined class "/home/www/php5.external"
Action 'configtest' failed.
I'm thinking that this method maybe works only if you have 1 website and not multiple..
This seems to tell I'm right..:
http://redmine.froxlor.org/issues/1048
In apache log:
[Wed Jun 06 21:41:19 2012] [alert] FastCGI: read() from pipe failed (0)
[Wed Jun 06 21:41:19 2012] [alert] FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
441
Off-topic / Re: Help with apache2
« on June 6th, 2012, 09:36 PM »
Uhm.. now I'm getting a:
Syntax error on line 24 of /etc/apache2/sites-enabled/heystella.it:
FastCgiExternalServer: redefinition of previously defined class "/home/www/php5.external"
Action 'configtest' failed.
Syntax error on line 24 of /etc/apache2/sites-enabled/heystella.it:
FastCgiExternalServer: redefinition of previously defined class "/home/www/php5.external"
Action 'configtest' failed.
442
Off-topic / Re: Help with apache2
« on June 6th, 2012, 09:27 PM »
What if I add:
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
<Location "/usr/lib/cgi-bin/php5.external">
Order deny,allow
Deny from all
Allow from env=REDIRECT_STATUS
</Location>
to fastcgi.conf (as explained here)?
EDIT: No, I get a 500 Server error..
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
<Location "/usr/lib/cgi-bin/php5.external">
Order deny,allow
Deny from all
Allow from env=REDIRECT_STATUS
</Location>
to fastcgi.conf (as explained here)?
EDIT: No, I get a 500 Server error..
443
Off-topic / Re: Help with apache2
« on June 6th, 2012, 09:17 PM »I used this guide to install FCGI + PHP-FPM on an Ubuntu 12.04 server, this should be fine.
I'm trying with the website heystella.it (located in /home/www/heystella.it/htdocs), here's my site Vhost with the lines added:
<VirtualHost *:80>
ServerAdmin xxxx@xxx.com
ServerName heystella.it
ServerAlias [url=http://www.heystella.it][url=http://www.heystella.it]www.heystella.it[/url][/url]
# Indexes + Directory Root.
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
DocumentRoot /home/www/heystella.it/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /home/www/heystella.it/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /home/www/heystella.it/logs/error.log
CustomLog /home/www/heystella.it/logs/access.log combined
FastCgiExternalServer /home/www/php5.external -host 127.0.0.1:9000
AddHandler php5-fcgi .php
Action php5-fcgi /usr/lib/cgi-bin/php5.external
Alias /usr/lib/cgi-bin/ /home/www/
</VirtualHost>But if I visit the website I get:
Not Found
The requested URL /usr/lib/cgi-bin/php5.external/index.php was not found on this server.
EDIT: Don't know why now it seems to work... http://heystella.it/test.php
444
Off-topic / Re: Help with apache2
« on June 5th, 2012, 08:43 PM »
I restarted the server and now I'm getting this mail every 10 min ~:
Subject:
Cron <smmsp@ts100561> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
Text:
/usr/share/sendmail/sendmail: 899: /usr/share/sendmail/sendmail: /usr/sbin/sendmail-msp: not found
Subject:
Cron <smmsp@ts100561> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
Text:
/usr/share/sendmail/sendmail: 899: /usr/share/sendmail/sendmail: /usr/sbin/sendmail-msp: not found
445
Off-topic / Re: Old layout vs new layout?
« on June 4th, 2012, 09:46 PM »
Like it! :cool:
One thing I noticed: http://bazaarshotdeals.com/browse/categories doesn't have vertical scrollbar. I suggest you to add a overflow-y:scroll to body to be sure the layout is the same for pages with scrollbar and pages without. ;)
One thing I noticed: http://bazaarshotdeals.com/browse/categories doesn't have vertical scrollbar. I suggest you to add a overflow-y:scroll to body to be sure the layout is the same for pages with scrollbar and pages without. ;)
447
Off-topic / Re: Help with apache2
« on June 4th, 2012, 05:00 PM »Quick fix would be to move the Alias to VHost declaration.
448
Off-topic / Re: Help with apache2
« on June 4th, 2012, 04:27 PM »How is it installed?
Here's apache.conf:
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>
Maybe changing the line Alias /phpmyadmin /usr/share/phpmyadmin ..?
449
Off-topic / Re: Help with apache2
« on June 4th, 2012, 03:49 PM »
Another question ( :whistle: ): I have phpmyadmin installed. For every website I host on my VPS (thanks to virtual hosts) I noticed I can access phpmyadmin simply going to website.tld/phpmyadmin.
I'd like to avoid this.. is there a way to only have hostname/phpmyadmin accessible (and not for every website)..?
I'd like to avoid this.. is there a way to only have hostname/phpmyadmin accessible (and not for every website)..?
450
Off-topic / Re: Help with apache2
« on June 4th, 2012, 12:41 AM »
eheh :lol:
All my /home/www subdirs (so also /cache, /attachments, etc) have 'root' as group and 'ftp_user' as owner (at least this is what WinSCP is telling me). I did this to be sure that the ftp user could only access /home/www and not also the other directories.
Anyway the problem is (as you said) that owner of apache is root..
All my /home/www subdirs (so also /cache, /attachments, etc) have 'root' as group and 'ftp_user' as owner (at least this is what WinSCP is telling me). I did this to be sure that the ftp user could only access /home/www and not also the other directories.
Anyway the problem is (as you said) that owner of apache is root..