Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Problems with Apache
New Posts  All Forums:Forum Nav:

Problems with Apache

post #1 of 42
Thread Starter 
I recently set up my own simple web server using Apache.

I wanted to add a phpbb forum to it but I had to install php 5.3 instead of 5.4 because of phpbb having a problem with the strict standards in 5.4.

so I have a folder with my index.html file in it and a root folder, but now I can't access the root folder anymore through my browser.

I can see the webpage when I go to myhost.blabla but when I try myhost.blabla/root I get a 403 Forbidden...

I have no clue whats going on because besides the other version of php everything is the same...
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
post #2 of 42
Quote:
Originally Posted by Shinhidora View Post

I recently set up my own simple web server using Apache.
I wanted to add a phpbb forum to it but I had to install php 5.3 instead of 5.4 because of phpbb having a problem with the strict standards in 5.4.
so I have a folder with my index.html file in it and a root folder, but now I can't access the root folder anymore through my browser.
I can see the webpage when I go to myhost.blabla but when I try myhost.blabla/root I get a 403 Forbidden...
I have no clue whats going on because besides the other version of php everything is the same...

Does /root have read permissions for your apache / http user and group?
post #3 of 42
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Does /root have read permissions for your apache / http user and group?

I'm using a copy of the apache-development.ini so just the standard user daemon, group daemon it has as default...

edit: yes, I am ridiculously new at this tongue.gif
edit2: and it used to work with all the same user settings I have now but with the newer php...
Edited by Shinhidora - 4/30/12 at 3:43am
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
post #4 of 42
Quote:
Originally Posted by Shinhidora View Post

I'm using a copy of the apache-development.ini so just the standard user daemon, group daemon it has as default...
edit: yes, I am ridiculously new at this tongue.gif
edit2: and it used to work with all the same user settings I have now but with the newer php...

I really can't make head nor tails of your bit in bold.

What's the underlying OS?
post #5 of 42
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

I really can't make head nor tails of your bit in bold.
What's the underlying OS?

Omg -.- I mixed up php.ini and httpd.conf tongue.gif

so I'm using the standard httpd.conf

user daemon
group daemon

Windows 7 (yes, I know)
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
post #6 of 42
Ahh, ok. Someone else would have to advice then as I've only ever had to maintain existing installs of Apache on Windows (and even that was more Windows administration than I care for).

Sorry mate
post #7 of 42
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Ahh, ok. Someone else would have to advice then as I've only ever had to maintain existing installs of Apache on Windows (and even that was more Windows administration than I care for).
Sorry mate

Thanks though! Do you happen to know how to create a new "admin" user that has all the rights in the httpd.conf file? I think that might solve the problem..
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
post #8 of 42
is the error something like directory listing is forbiden?

or something like this
http://www.deborahclerkin.co.uk/alexsite/

if so you may have a
Options -Indexes

in one of your confs smile.gif
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
post #9 of 42
right click on the folder containing the config files and the actual web files and go to the permissions tab. You should be able to edit and/or add the users needed to the folders there.

Although in my experience with Apache, it is much easier to set up and maintain in Linux. I just made a simply Ubuntu Virtual Machine in VMWare and it works flawlessly. If you decide to go that route let me know by PM or on here and I can help you out with guides, tips, etc.
CHILZ - Lan Rig
(17 items)
 
CANARY - Main Rig
(16 items)
 
CADILLAC - HTPC
(14 items)
 
CPUMotherboardGraphicsRAM
Intel i5-4570s Asus H97M-Plus AMD R9 280 G.Skill RipjawsX 16 GB (2x8) 
Hard DriveHard DriveHard DriveCooling
250 GB Samsung 840 240 GB Kingston 3 TB USB 3.0 Drive Custom Loop 
OSMonitorKeyboardPower
Windows 10 Preview BenQ GL2450 Filco MajesTouch2 Ninja PC P&C Silencer Mk III 600 W 
CaseMouseMouse PadAudio
Fractal Design Core 1000 Mionix Castor Monoprice XXL JL Amps + Custom Morel Bookshelf speakers 
Other
Scythe Kama-Panel 3 
CPUMotherboardGraphicsRAM
FX-8150 @ 4.6 GHz Fatal1ty 990FX Pro 9800 GTX+ 512 MB G.Skill Ripjaws X 1866 CL9 
Hard DriveHard DriveCoolingOS
120 GB OCZ Vertex 3 1 TB WD Black 5x 120mm + MCP350 + EK Supreme HF + MicroRes Windows 8 Consumer Preview 
MonitorKeyboardPowerCase
2x Dell U2212HM Logitech G110 Cooler Master 850W Silent Pro Cooler Master 690 II Adv. 
MouseMouse PadAudio
Razer Death Adder 3.5G Staples Gel Cushion Asus Xonar DG + Senn. PC333D 
CPUMotherboardGraphicsRAM
Q6600 Acer X1800 ATI 5670 2 GB Kingston 
Hard DriveOptical DriveOSMonitor
2 TB WD Green Asus BD-R Windows 7 Home Premium Sony 50" LCD 
KeyboardPowerCaseMouse
Acer Media 220 W SFF Acer X1800 Acer Optical 
Mouse PadAudio
The TV cabinet Denon 2808 7.1 AVR + Dahlquist 350W 8" Sub + Kl... 
  hide details  
Reply
CHILZ - Lan Rig
(17 items)
 
CANARY - Main Rig
(16 items)
 
CADILLAC - HTPC
(14 items)
 
CPUMotherboardGraphicsRAM
Intel i5-4570s Asus H97M-Plus AMD R9 280 G.Skill RipjawsX 16 GB (2x8) 
Hard DriveHard DriveHard DriveCooling
250 GB Samsung 840 240 GB Kingston 3 TB USB 3.0 Drive Custom Loop 
OSMonitorKeyboardPower
Windows 10 Preview BenQ GL2450 Filco MajesTouch2 Ninja PC P&C Silencer Mk III 600 W 
CaseMouseMouse PadAudio
Fractal Design Core 1000 Mionix Castor Monoprice XXL JL Amps + Custom Morel Bookshelf speakers 
Other
Scythe Kama-Panel 3 
CPUMotherboardGraphicsRAM
FX-8150 @ 4.6 GHz Fatal1ty 990FX Pro 9800 GTX+ 512 MB G.Skill Ripjaws X 1866 CL9 
Hard DriveHard DriveCoolingOS
120 GB OCZ Vertex 3 1 TB WD Black 5x 120mm + MCP350 + EK Supreme HF + MicroRes Windows 8 Consumer Preview 
MonitorKeyboardPowerCase
2x Dell U2212HM Logitech G110 Cooler Master 850W Silent Pro Cooler Master 690 II Adv. 
MouseMouse PadAudio
Razer Death Adder 3.5G Staples Gel Cushion Asus Xonar DG + Senn. PC333D 
CPUMotherboardGraphicsRAM
Q6600 Acer X1800 ATI 5670 2 GB Kingston 
Hard DriveOptical DriveOSMonitor
2 TB WD Green Asus BD-R Windows 7 Home Premium Sony 50" LCD 
KeyboardPowerCaseMouse
Acer Media 220 W SFF Acer X1800 Acer Optical 
Mouse PadAudio
The TV cabinet Denon 2808 7.1 AVR + Dahlquist 350W 8" Sub + Kl... 
  hide details  
Reply
post #10 of 42
Thread Starter 
Quote:
Originally Posted by Ulquiorra View Post

is the error something like directory listing is forbiden?
or something like this
http://www.deborahclerkin.co.uk/alexsite/
if so you may have a
Options -Indexes
in one of your confs smile.gif

Like the second one tongue.gif so I need to get rid of Options - Indexes if I have them or edit them? Don't have time to check it right now, but Ill have a look at it in an hour or so).
Quote:
Originally Posted by Axipher 
right click on the folder containing the config files and the actual web files and go to the permissions tab. You should be able to edit and/or add the users needed to the folders there.

Although in my experience with Apache, it is much easier to set up and maintain in Linux. I just made a simply Ubuntu Virtual Machine in VMWare and it works flawlessly. If you decide to go that route let me know by PM or on here and I can help you out with guides, tips, etc.

In Windows itself, all the permissions are as they're supposed to be (I got all permissions for the folder in question).
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Problems with Apache