how can i make the apache to be able to read .css and .js file from .php file?
Apache doesn't read the files as such. You just link to your CSS and JS files as normal (you don't need to change anything). This is an HTML issue. Whether the page is .html or .php doesn't make a difference.