Jump to content

Apache

Go to solution Solved by PorkishPig,
44 minutes ago, Vernw3 said:

i have been trying for an hour on how to get this to work when i try and open a php file i get

 24a3561b9b7e5bddcef0a6d24af155b3.png

 

i have tried changing these but it still wont work 

 

 

Directory />
    AllowOverride all
    Require all granted
    Allow from all
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    AllowOverride all
    Require all granted
    Allow from all
</Directory>

#<Directory /srv/>
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>
 

I would assume this is an issue with your permissions for the actual file. Try using the following command:

sudo chmod 775 /var/www/html/*

 

i have been trying for an hour on how to get this to work when i try and open a php file i get

 24a3561b9b7e5bddcef0a6d24af155b3.png

 

i have tried changing these but it still wont work 

 

 

Directory />
    AllowOverride all
    Require all granted
    Allow from all
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    AllowOverride all
    Require all granted
    Allow from all
</Directory>

#<Directory /srv/>
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>
 

My Personal Computer

 

CPU: AMD - Ryzen 5 1600 3.2GHz (OC 3.8) 6-Core Processor

Cpu cooler DEEPCOOL Gamer Storm CAPTAIN 240EX WHITE 
Motherboard: MSI - B350 TOMAHAWK ARCTIC ATX AM4 Motherboard 
Memory: Corsair Vengeance DDR4 3000MHz RAM 8x3

Storage: SAMSUNG 850 PRO 2.5" 256GB SATA III

Storage:SAMSUNG 850 PRO 2.5" 500GB SATA III
Video Card: RTX 2060
Case: NZXT - S340 Elite (White) ATX Mid Tower Case 
Power Supply: EVGA 550 B3 550W

Peripherals

Monitor: Acer XF240H 24" TN Free-Sync ,144 Hz 

Keyboard: Corsair k95 RGB platinum

Mouse: Razer basilisk

Headset: Hyperx cloud alpha pro

Link to comment
Share on other sites

Link to post
Share on other sites

44 minutes ago, Vernw3 said:

i have been trying for an hour on how to get this to work when i try and open a php file i get

 24a3561b9b7e5bddcef0a6d24af155b3.png

 

i have tried changing these but it still wont work 

 

 

Directory />
    AllowOverride all
    Require all granted
    Allow from all
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    AllowOverride all
    Require all granted
    Allow from all
</Directory>

#<Directory /srv/>
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>
 

I would assume this is an issue with your permissions for the actual file. Try using the following command:

sudo chmod 775 /var/www/html/*

 

Make sure to quote me or use @PorkishPig to notify me that you replied!

 

 

Desktop

CPU - Ryzen 9 3900X | Cooler - Noctua NH-D15 | Motherboard - ASUS TUF X570-PLUS RAM - Corsair Vengeance LPX DDR4-3200 32GB Case - Meshify C

GPU - RTX 3080 FE PSU - Straight Power 11 850W Platinum Storage - 980 PRO 1TB, 960 EVO 500GB, S31 1TB, MX500 500GB | OS - Windows 11 Pro

 

Homelab

CPU - Core i5-11400 | Cooler - Noctua NH-U12S | Motherboard - ASRock Z590M-ITX RAM - G.Skill Ripjaws V DDR4-3600 32GB (2x16)  | Case - Node 304

PSU - EVGA B3 650W | Storage - 860 EVO 256GB, Sabrent Rocket 4.0 1TB, WD Red 4TB (x6 in RAIDZ1 w/ LSI 9207-8i) | OS - TrueNAS Scale (Debian)

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Homeless Pineapple said:

I would assume this is an issue with your permissions for the actual file. Try using the following command:


sudo chmod 775 /var/www/html/*

 

This caused me such a headache and it was this simple thanks

My Personal Computer

 

CPU: AMD - Ryzen 5 1600 3.2GHz (OC 3.8) 6-Core Processor

Cpu cooler DEEPCOOL Gamer Storm CAPTAIN 240EX WHITE 
Motherboard: MSI - B350 TOMAHAWK ARCTIC ATX AM4 Motherboard 
Memory: Corsair Vengeance DDR4 3000MHz RAM 8x3

Storage: SAMSUNG 850 PRO 2.5" 256GB SATA III

Storage:SAMSUNG 850 PRO 2.5" 500GB SATA III
Video Card: RTX 2060
Case: NZXT - S340 Elite (White) ATX Mid Tower Case 
Power Supply: EVGA 550 B3 550W

Peripherals

Monitor: Acer XF240H 24" TN Free-Sync ,144 Hz 

Keyboard: Corsair k95 RGB platinum

Mouse: Razer basilisk

Headset: Hyperx cloud alpha pro

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×