FN-GM (11th July 2008)

Hi
Some of you may know my Edugeek Joomla site is running slow. Someone suggested it could be the PHP configuration. I have attached out PHP.ini file, what changes can i make so speed my site up please? The site url is:
Thanks
Z
Edit: please see below for apache config
Last edited by FN-GM; 22nd August 2008 at 10:19 PM.
Maybe install some caching - both APC and eaccelerator have commented sections in your config so might already be installed, worth having a read up and turning one of them on.
You could turn off some of your php extentions if your not using them. Apart from that nothing that should especially affect performance.
You could turn on gzip compression in apache for your images, etc.
Cheers
Jona
Last edited by Jona; 11th July 2008 at 06:37 PM. Reason: correction
FN-GM (11th July 2008)
is this any help
: A HOWTO on Optimizing PHP with tips and methodologies
FN-GM (11th July 2008)

Caching -
See: eAccelerator - Trac
To enable it (if it's installed) uncomment this block in your php.ini
Additionally you should be able to comment some of the extentions in the [Extentions] block of your php.ini that your not using an example is:PHP Code:[eAccelerator]
;extension=eaccelerator.dll
;eaccelerator.shm_size = "0"
;eaccelerator.cache_dir = "C:\xampp\tmp"
;eaccelerator.enable = "1"
;eaccelerator.optimizer = "0"
;eaccelerator.debug = "0"
;eaccelerator.check_mtime = "1"
;eaccelerator.filter = ""
;eaccelerator.shm_max = "0"
;eaccelerator.shm_ttl = "0"
;eaccelerator.shm_prune_period = "0"
;eaccelerator.shm_only = "0"
;eaccelerator.compress = "1"
;eaccelerator.compress_level = "9"
;eaccelerator.keys = "shm_and_disk"
;eaccelerator.sessions = "shm_and_disk"
;eaccelerator.content = "shm_and_disk"
;eaccelerator.admin.name =
;eaccelerator.admin.password =
extension=php_mssql.dll which if your not using a ms-sql database you can turn off. But this shouldn't have that much affect. I'm still slightly at a loose to know why your install is so slow are you sure it's php? Does the php load fast locally?
Jona
FN-GM (11th July 2008)

What do you do about username and password?
also is it installed with xampp by default?
thanks

We use Xcache here and it gets very good write ups.


Are you sure it's PHP execution time holding up proceedings? It seems like it may be something else to me, as when I've viewed your site once each subsequent refresh is very fast, but it would be re-generating the page each time I press refresh, so if it were a PHP problem I'd expect it to take ages every time.
I would possibly look at your apache configuration, and how the server is configured, as it could be the webserver delaying things, and not PHP.
Just out of interest if you load the page on the server itself after clearing your cache, is it the same speed as viewing it externally??
Mike.
Edit: you might like to try inserting some code in your template to time PHP execution.
Back up your template first of course!
Then put this at the top of the main template PHP code.
$time_start = microtime(true);
<<<<Rest of template code here>>>
Put this at the end after everything else (inside the PHP identifier of course)
$time_end = microtime(true);
$time = $time_end - $time_start;
echo "Page generated in $time seconds\n";
It should give you a time that PHP took to generate the page right at the bottom of every page. I would have used the code boxes, but they seem to have disappeared!
Mike.
Last edited by maniac; 11th July 2008 at 08:18 PM.
I did post on the other thread but it got eaten by farsehosts.
If the speed is ok locally and on the same network then it's not a php issue. You say it's on another network. You aren't using ISA to publish the server are you as that has been unbelievebally awful when I used it with a php site in the past, often it would just halt on images.

Its very fast when i got to htpp://localhost on the Server.Just out of interest if you load the page on the server itself after clearing your cache, is it the same speed as viewing it externally??
i have attached to apache config, please help
To be honest i am not 100% but i don’t think it is, i don’t handle that side. We are on a network with our local CLC and the guy there looks after the DMZ. The webserver has been put directly exposed to the internet in front of all the firewalls etc and the same thing happens.
Last edited by FN-GM; 11th July 2008 at 08:23 PM.
ServerName localhost:80
You could try changing this to the servers IP that may help.

There are currently 1 users browsing this thread. (0 members and 1 guests)