Nginx and php question
#1
I'm going to allow my friend to host his website on my VPS, but he needs some requirements to get his site going properly.
If this is not allowed please tell me.

The VPS is running nginx as a web server and I need to install DOM/XML support to it. I've read that it is a php extension but there isn't any guidance on how to install it. Does anyone here know how?

Thanks
Chris
chris@freevps.us
#2
I don't really know what OS you are using right now but try this:

Code:
yum install php-xml


or

Code:
apt-get install php-xml



After you installed it restart the service nginx and php-fpm with the following commends and see if it works:

Code:
service nginx restart


and

Code:
service php-fpm restart

#3
The correct command to restart php-fpm is

Code:
service php-fpm restart


You don't need to restart nginx after installing php modules or editing your php.ini.

#4
Oh, well Smile.

I'm not really familiar with Nginx and PHP-FPM and I corrected the mistake Wink.

How does it come that mbstring is not working?
#5
I'm using centOS

when I typed in the yum command you gave me, I got this

[nopoints]

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.i386 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-32.el5 for package: php-xml
--> Processing Dependency: libexslt.so.0 for package: php-xml
--> Processing Dependency: libxslt.so.1 for package: php-xml
--> Running transaction check
---> Package libxslt.i386 0:1.1.17-2.el5_2.2 set to be updated
---> Package php-xml.i386 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-32.el5 for package: php-xml
--> Finished Dependency Resolution
php-xml-5.1.6-32.el5.i386 from base has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-32.el5 is needed by package php-xml-5.1.6-32.el5.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-32.el5 is needed by package php-xml-5.1.6-32.el5.i386 (base)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

[/nopoints]

Chris
chris@freevps.us
#6
CentOS 5 with my nginx setup script? If so, use

Code:
yum install php-xml --enablerepo=webtatic

#7
Yes, I used your script. It's great!

What about DOM, is it included in the XML package.

Never mind it works! Smile

Another error came up during the installation of his site. This,

Code:
date.timezone error 
reason - not set or not valid


What would be a valid time zone for London or GMT+0?

Could I have an example?
Thanks


[nopoints] This is what it is currently at in the php.ini file

Code:
 {Date}
; Defines the default timezone used by the date functions
;date.timezone =


[/nopoints]

Chris
chris@freevps.us
#8
(04-24-2012, 02:28 AM)cwilkinson1998 Wrote: [nopoints] This is what it is currently at in the php.ini file

Code:
 {Date}
; Defines the default timezone used by the date functions
;date.timezone =


[/nopoints]


Set it to:

Code:
date.timezone = Capital of your country/Country


As an example, for me it would be like this;

Code:
date.timezone = Oslo/Norway

#9
Thanks, I had it! but I just had to take away the ';' Silly me
Chris
chris@freevps.us


Forum Jump:


Users browsing this thread: 1 Guest(s)

Sponsors: FuzzyHosts - WeLoveServers - Ftpit - ZXPlay - BoneVM - GalaxyHostPlus - Kwicero LTD - Verelox- HostUS - HostingBox - HostMada


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo