EduGeek Joomla 1.0 Package Thread, Optimise PHP & Apache Configuration in Projects:; Hi
Some of you may know my Edugeek Joomla site is running slow. Someone suggested it could be the PHP ...
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 09: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 05:37 PM.
Reason: correction
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 off.
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
Hi
most of that means nothing to me
as for the images, it downloads them fast once its started. It seems to be the initial reading of the php file.
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:
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?
I *think* the username and password only matter if you want to use the cache administration console wigget so just set them to what ever I think. I assume it is installed by default but I'm not sure because I use a WAMP stack built from scratch.
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:
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?
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)
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 07: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.
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??
Its very fast when i got to htpp://localhost on the Server.
i have attached to apache config, please help
Originally Posted by DMcCoy
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.
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.