IIS Aid issue

Hi,
I installed IIS Aid on my server. my server is Windows 2003 and IIS6.
I try to run Joomla CMS on my server but it give me some errors, and I don't know what should I do to sove them.
you can visit this site and see the PHP errors, http://portal.thepersianmodel.com/PHP/installation/index.php
Please help me to fix that.

Average rating
(0 votes)
Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Hi Hamid,

The first error is to do with where PHP saves your session data. The IIS Aid PHP Installer places this in the "sessions" directory in your PHP root directory. Open you php.ini file and look for the following value;

Session.save_path

Make sure the path specified here is valid and exists. If that does not work then it might be a file permission issue. let me know how you get on here.

The other two issues should not be anything to worry about. The display_errors setting is set to off as recommended by PHP as it can be a security issue, and the magic_quotes_gpc value is off to improve performance. You might need to set magic_quotes_gpc back to on if you have issues with Joomla, as the magic_quotes_gpc is usually set to on to support legacy code.

hkhanzadeh's picture

Location: IRAN

Joined: Mar 2007

Send PM

hkhanzadeh said:

Hello Dear BRASHQUIDO
With your help first error solved, I changed
display_errors and magic_quotes_gpc to
display_errors = On
magic_quotes_gpc = On
but if you see again this link: Error
you can see steal it give me error on this setting is OFF
You can see my php.ini in text format and please let me know my problem.
Thanks

Persian Men Model

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Hi Hamid,

The only setting that really sticks out at me as being incorrect is your session.save_handler value. Your session.save_handler is set like this;

session.save_handler ="C:\PHP-IIS\php4\sessions"

It should be set something like this;

session.save_handler = files

Did you set this yourself? If not then you may have come across a small bug in my installer.

hkhanzadeh's picture

Location: IRAN

Joined: Mar 2007

Send PM

hkhanzadeh said:

Hi,BRASHQUIDO
Really I don't changed the session.save_handler it is default settings,
I only changed session.save_path and magic_quotes_gpc and display_errors
but after change GPC and Display steal I have error on setup joomla.

hkhanzadeh's picture

Location: IRAN

Joined: Mar 2007

Send PM

hkhanzadeh said:

Dear Mr. BRASHQUIDO
after I changed session.save_handler to same as you say all error completed, and I don't have any error on this server.
But I installed IIS-Aid on other server with same installtion and php.ini file configuration is same as first server but when I try to setup mambo it give me error, could you please check this URL for see errors and you can see php.ini file here

Please help me what should I do to solve this server issue.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Is the "C:\PHP-IIS\php4\sessions" value set in your session.save_path value correct? If so then try turning your magic_quotes_gpc to on.

Thanks for reporting your issues. I do all the testing myself, and there is only so much I can do. So feedback from people like yourself is very valuable. Also, just a word of warning. I've found the APC extension to be rather unstable with FastCGI (which my installer uses) because of the memory mapping it uses. As of the next version I'll be using eAccelerator rather than APC. I've done a lot of testing of eAccerator with FastCGI and have found it to be very stable. I'd recommend finding this line in you php.ini file;

extension=php_apc.dll

and change it to this;

;extension=php_apc.dll

Then restart IIS and the APC extension will be unloaded

hkhanzadeh's picture

Location: IRAN

Joined: Mar 2007

Send PM

hkhanzadeh said:

Hi,
Really session.save_path value set ok, and magic_quotes_gpc is on you can see in the befor post in txt file format but any change in php.ini file not show any effect on PHP and steal I have same problem.
Thanks for your APP and installtion and your help and support.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Did you restart IIS after saving the changes to php.ini?

hkhanzadeh's picture

Location: IRAN

Joined: Mar 2007

Send PM

hkhanzadeh said:

Yes, I restarted IIS and then restarted server

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

I see you have changed your session.save_path value to D:\Webspace\hkhanzadeh\Image\joomla,. I've never tried having the session directory outside the PHP root, so it may not work. At any rate having the comma (,) at the end of the string will almost certainly break it. Try setting your sessions directory back to the default and then restart IIS. You can restart IIS easily from the command line using this command;

iisreset /restart